Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.dg / old-style-asm-1.c
blobc8fb668ff2999c4c51226f258d0e4950cee9a7d1
1 /* PR inline-asm/8832 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -dP -fno-thread-jumps" } */
5 /* Verify that GCC doesn't optimize
6 old style asm instructions. */
8 void foo(int v)
10 if (v)
11 asm ("dummy1");
13 asm ("dummy2");
15 if (v)
16 asm ("dummy3");
19 /* The purpose of the test below is to check that there are two branches
20 in the generated code, supposedly corresponding to the if-statements.
21 It tries to check for jump_insn (set (pc) pattern, so that jump_insns
22 corresponding to return are not taken into account. */
23 /* { dg-final { scan-assembler "jump_insn.*set \\(pc\\).*jump_insn.*set \\(pc\\)"} } */