No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gcc4 / gcc / testsuite / gcc.dg / tree-ssa / ifc-20040816-1.c
blob9f8491f1dbf4d058466d1ac1992bf69349ac6f8a
1 /* { dg-do compile } */
2 /* { dg-options "-c -O2 -ftree-vectorize -fdump-tree-ifcvt-stats" { target *-*-* } } */
4 #include <stdarg.h>
5 #include <signal.h>
7 #define N 16
8 #define MAX 42
10 extern void abort(void);
12 int main1 ()
14 int A[N] = {36,39,42,45,43,32,21,12,23,34,45,56,67,78,89,11};
16 int i, j;
18 for (i = 0; i < N; i++)
20 j = A[i];
21 A[i] = ( j >= MAX ? MAX : 0);
24 /* check results: */
25 for (i = 0; i < N; i++)
27 if (A[i] > MAX)
28 abort ();
31 return 0;
36 /* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */
37 /* { dg-final { cleanup-tree-dump "ifcvt" } } */