aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/arm/pr55642.c
blob: 10f2daa252dd8594b99f2acfe02cce5f9a3c0cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-options "-mthumb -O2" }  */
/* { dg-do compile } */
/* { dg-require-effective-target arm_thumb2_ok } */

int
foo (int v)
{
  register int i asm ("r0");
  register int j asm ("r1");
  if (v > 1)
    i = abs (j);

  return i;
}