* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / visium / bit_test.c
blob8fbb87ec971d1fed0c78655295e913605df06dc5
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 extern void bar (void);
6 void foo1 (unsigned int i)
8 if (i & 4)
9 bar ();
12 void foo2 (unsigned int i)
14 if (i & 0x80000000)
15 bar ();
18 void foo3 (unsigned char c)
20 if (c & 4)
21 bar ();
24 void foo4 (unsigned char c)
26 if (c & 0x80)
27 bar ();
30 /* { dg-final { scan-assembler-times "lsr" 2 } } */
31 /* { dg-final { scan-assembler-times "cmp" 2 } } */