summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/cond-asm.c
blob: 450bd9d6a82f5b7b64f64ff77fb06b698d6bc85a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* Check that %? in inline asm expands to nothing.  */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-require-effective-target arm32 } */
int b;
int foo(int a)
{
  if (a)
    b = 42;
  asm ("test%?me":"=r"(a):"0"(a));
  return a;
}
/* { dg-final { scan-assembler "testme" } } */