Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr52006.c
blobdbbcfe06f782650169345d3cf66a9187f42daa64
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+fp -mfloat-abi=hard -O2 -fPIC" } */
7 unsigned long a;
8 static int b;
10 void
11 foo (void)
13 asm volatile ("" : "=r" (b));
16 void
17 bar (float f)
19 if (f < b / 100.0)
20 a = 1;