2018-01-16 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr52091.c
blob33bc7aa8dd2305f21fdd43aeae9439a65f7fcc69
1 /* { dg-require-effective-target vect_int } */
3 /* PR tree-optimization/52091 */
5 #include "tree-vect.h"
7 int b, c, d, f;
8 unsigned h;
9 extern void abort (void);
11 int
12 main ()
14 check_vect ();
15 d = -1;
16 h = 65;
17 asm volatile ("" : : : "memory");
18 for (f = 0; f < 4; f++)
20 h &= (unsigned short) d;
21 for (b = 0; b <= 1; b++)
23 c = 0;
24 d &= 1;
27 asm volatile ("" : : : "memory");
28 if (b != 2 || c != 0 || d != 1 || f != 4 || h != 1)
29 abort ();
30 return 0;