Update concepts branch to revision 131834
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / no-trapping-math-vect-ifcvt-13.c
bloba5a59366bdce0376e768138179648603f1b7c1b1
1 /* { dg-require-effective-target vect_condition } */
2 /* { dg-require-effective-target vect_float } */
4 #include <stdarg.h>
5 #include <signal.h>
6 #include "tree-vect.h"
8 #define N 16
9 #define MAX 42
11 extern void abort(void);
13 int main ()
15 float A[N] = {36,39,42,45,43,32,21,12,23,34,45,56,67,78,89,11};
16 float B[N] = {42,42,42,0,0,42,42,42,42,42,0,0,0,0,0,42};
17 int i, j;
19 check_vect ();
21 for (i = 0; i < 16; i++)
22 A[i] = ( A[i] <= MAX ? MAX : 0);
24 /* check results: */
25 for (i = 0; i < N; i++)
26 if (A[i] != B[i])
27 abort ();
29 return 0;
32 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
33 /* { dg-final { cleanup-tree-dump "vect" } } */