Imported Upstream version 4.7.3
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.target / arm / pr52006.c
1 /* PR target/52006 */
2 /* { dg-do compile } */
3 /* { dg-skip-if "avoid conflicts with multilib flags" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=hard" } } */
4 /* { dg-skip-if "no support for hard-float VFP ABI" { arm_thumb1 } { "-march=*" } { "" } } */
5 /* { dg-options "-march=armv7-a -mfloat-abi=hard -O2 -fPIC" } */
6
7 unsigned long a;
8 static int b;
9
10 void
11 foo (void)
12 {
13   asm volatile ("" : "=r" (b));
14 }
15
16 void
17 bar (float f)
18 {
19   if (f < b / 100.0)
20     a = 1;
21 }