PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / old-style-asm-1.c
blob8af007795a72302f4f29ae65e32221bb8f268f73
1 /* PR inline-asm/8832 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -dP" } */
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\\)"} } */