blob: ff583b299a8b1db8d4f2ce7b67920f015cb2d411 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* { dg-require-effective-target vect_int } */
/* PR tree-optimization/52091 */
int b, c, d, f;
unsigned h;
extern void abort (void);
int
main ()
{
d = -1;
h = 65;
asm volatile ("" : : : "memory");
for (f = 0; f < 4; f++)
{
h &= (unsigned short) d;
for (b = 0; b <= 1; b++)
{
c = 0;
d &= 1;
}
}
asm volatile ("" : : : "memory");
if (b != 2 || c != 0 || d != 1 || f != 4 || h != 1)
abort ();
return 0;
}
/* { dg-final { cleanup-tree-dump "vect" } } */
|