summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr52006.c
blob: 249470ad51684ac6e3ac7bad9dab084835853eb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR target/52006 */
/* { dg-do compile } */
/* { dg-options "-march=armv7-a -mfloat-abi=hard -O2 -fPIC" } */

unsigned long a;
static int b;

void
foo (void)
{
  asm volatile ("" : "=r" (b));
}

void
bar (float f)
{
  if (f < b / 100.0)
    a = 1;
}