Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.target / i386 / pr46865-2.c
blob4a91f7c962bebbc425e3f74d3e8530c7b1cf385d
1 /* PR rtl-optimization/46865 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -save-temps" } */
5 extern unsigned long f;
7 #define m1(f) \
8 if (f & 1) \
9 asm volatile ("nop /* asmnop */\n"); \
10 else \
11 asm volatile ("nop /* asmnop */\n");
13 #define m2(f) \
14 if (f & 1) \
15 asm volatile ("nop /* asmnop */\n" : : "i" (6) : "cx"); \
16 else \
17 asm volatile ("nop /* asmnop */\n" : : "i" (6) : "cx");
19 void
20 foo (void)
22 m1 (f);
25 void
26 bar (void)
28 m2 (f);
31 /* { dg-final { scan-assembler-times "asmnop" 2 } } */
32 /* { dg-final { cleanup-saved-temps } } */