2016-12-21 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr70799-1.c
blob44c795ccab45a8a5864e563729946688eaefa3c1
1 /* PR target/pr70799 */
2 /* { dg-do compile { target { ia32 } } } */
3 /* { dg-options "-O2 -march=slm -mno-stackrealign" } */
4 /* { dg-final { scan-assembler "pxor" } } */
5 /* { dg-final { scan-assembler "pcmpeqd" } } */
6 /* { dg-final { scan-assembler "movdqa\[ \\t\]+.?\[lL\]C0" } } */
8 long long a, b, c;
10 void test1 (void)
12 long long t;
13 if (a)
14 t = 0LL;
15 else
16 t = b;
17 a = c & t;
18 b = c | t;
21 void test2 (void)
23 long long t;
24 if (a)
25 t = -1LL;
26 else
27 t = b;
28 a = c & t;
29 b = c | t;
32 void test3 (void)
34 long long t;
35 if (a)
36 t = 0xf0f0f0f0f0f0f0f0LL;
37 else
38 t = b;
39 a = c & t;
40 b = c | t;