1 /* PR inline-asm/8832 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -dP" } */
4 
5 /* Verify that GCC doesn't optimize
6    old style asm instructions.  */
7 
foo(int v)8 void foo(int v)
9 {
10   if (v)
11     asm ("dummy1");
12 
13   asm ("dummy2");
14 
15   if (v)
16     asm ("dummy3");
17 }
18 
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\\)"} } */
24