Enable auto-vectorization for PowerPC 750CL paired-single instructions
[gcc.git] / gcc / testsuite / gcc.dg / vect / vect-ifcvt-16.c
1 /* { dg-require-effective-target vect_condition } */
2 /* { dg-require-effective-target vect_float } */
3
4 #include <stdarg.h>
5 #include <signal.h>
6 #include "tree-vect.h"
7
8 #define N 16
9 #define MAX 42
10
11 extern void abort(void);
12
13 int main ()
14 {
15 float A[N] = {36,39,42,45,43,32,21,42,23,34,45,56,67,42,89,11};
16 float B[N] = {42,42,0,42,42,42,42,0,42,42,42,42,42,0,42,42};
17 int i, j;
18
19 check_vect ();
20
21 for (i = 0; i < 16; i++)
22 A[i] = ( A[i] != MAX ? MAX : 0);
23
24 /* check results: */
25 for (i = 0; i < N; i++)
26 if (A[i] != B[i])
27 abort ();
28
29 return 0;
30 }
31
32 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
33 /* { dg-final { cleanup-tree-dump "vect" } } */