Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/restrict-3.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O -fno-strict-aliasing -fdump-tree-lim2-details" } */ void f(int * __restrict__ r, int a[__restrict__ 16][16], int b[__restrict__ 16][16], int i, int j) { int x; *r = 0; for (x = 1; x < 16; ++x) *r = *r + a[i][x] * b[x][j]; } /* We should apply store motion to the store to *r. */ /* { dg-final { scan-tree-dump "Executing store motion of \\\*r" "lim2" } } */