PR tree-optimization/33562
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ifc-20040816-1.c
blob7a8e7a5a796563803dca9022f387f715a6c56a81
1 /* { dg-do compile } */
2 /* { dg-options "-c -O2 -ftree-vectorize -fdump-tree-ifcvt-stats" { target *-*-* } } */
4 #include <stdarg.h>
6 #define N 16
7 #define MAX 42
9 int A[N] = {36,39,42,45,43,32,21,12,23,34,45,56,67,78,89,11};
11 extern void abort(void);
13 int main1 ()
15 int i, j;
17 for (i = 0; i < N; i++)
19 j = A[i];
20 A[i] = ( j >= MAX ? MAX : 0);
23 /* check results: */
24 for (i = 0; i < N; i++)
26 if (A[i] > MAX)
27 abort ();
30 return 0;
35 /* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */