i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / bb-slp-bool-1.c
blobbf39b21b4e1ab6c13fa47deb7f54047783fd9f35
1 #include "tree-vect.h"
3 void __attribute__ ((noipa))
4 f1 (_Bool *x, unsigned short *y)
6 x[0] = (y[0] == 1);
7 x[1] = (y[1] == 1);
10 void __attribute__ ((noipa))
11 f2 (_Bool *x, unsigned short *y)
13 x[0] = (y[0] == 1);
14 x[1] = (y[1] == 1);
15 x[2] = (y[2] == 1);
16 x[3] = (y[3] == 1);
17 x[4] = (y[4] == 1);
18 x[5] = (y[5] == 1);
19 x[6] = (y[6] == 1);
20 x[7] = (y[7] == 1);
23 _Bool x[8];
24 unsigned short y[8] = { 11, 1, 9, 5, 1, 44, 1, 1 };
26 int
27 main (void)
29 check_vect ();
31 f1 (x, y);
33 if (x[0] || !x[1])
34 __builtin_abort ();
36 x[1] = 0;
38 f2 (x, y);
40 if (x[0] || !x[1] || x[2] | x[3] || !x[4] || x[5] || !x[6] || !x[7])
41 __builtin_abort ();
43 return 0;