aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/old-style-asm-1.c
blob: 006cf0949b088ec1592274284f93dc082326f664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR inline-asm/8832 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

/* Verify that GCC doesn't optimize
   old style asm instructions.  */

void foo(int v)
{
  if (v)
    asm ("dummy1");

  asm ("dummy2");

  if (v)
    asm ("dummy3");
}

/* { dg-final { scan-assembler "L2" } } */