PR c/64856
[official-gcc.git] / gcc / testsuite / gcc.dg / pr64434.c
blob60fc80615de383ee5c1cde785aba1786e17a4771
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-rtl-expand-details" } */
4 #define N 256
5 int a1[N], a2[N], a3[N], a4[N];
7 void foo ()
9 int i;
10 for (i=0; i<N; i++) {
11 int c;
12 c = a3[i] + (a1[i] * a2[i]);
13 a4[i] = c + 1;
14 a1[i] = a2[i] - 1;
18 /* { dg-final { scan-rtl-dump-times "Swap operands" 1 "expand" } } */
19 /* { dg-final { cleanup-rtl-dump "expand" } } */