2016-09-01 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr64434.c
blob699687136fd6e3a9dc949cfcc355642beeb8fd90
1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-rtl-expand-details" } */
3 /* { dg-skip-if "PR64886" { hppa*-*-hpux* } { "*" } { "" } } */
5 #define N 256
6 int a1[N], a2[N], a3[N], a4[N];
8 void foo ()
10 int i;
11 for (i=0; i<N; i++) {
12 int c;
13 c = a3[i] + (a1[i] * a2[i]);
14 a4[i] = c + 1;
15 a1[i] = a2[i] - 1;
19 /* { dg-final { scan-rtl-dump-times "Swap operands" 1 "expand" } } */