LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-ifcvt-7.c
blobc0c7a3cdb2baafa5702a7fcf80b7198175ecc4f2
1 /* { dg-require-effective-target vect_condition } */
2 /* { dg-require-effective-target vect_int } */
4 #include <stdarg.h>
5 #include "tree-vect.h"
7 #define N 16
8 #define MAX 42
10 int A[N] = {36,39,42,45,43,32,21,12,23,34,45,56,42,78,89,11};
11 int B[N] = {42,42,0,42,42,42,42,42,42,42,42,42,0,42,42,42};
13 extern void abort(void);
15 int main ()
17 int i, j;
19 check_vect ();
21 for (i = 0; i < 16; i++)
22 A[i] = ( A[i] == MAX ? 0 : MAX);
24 /* check results: */
25 for (i = 0; i < N; i++)
26 if (A[i] != B[i])
27 abort ();
29 return 0;
34 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */