| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-require-effective-target arm_arch_v7em_hard_ok } */ |
| 3 |
/* { dg-skip-if "-mslow-flash-data and -mword-relocations incompatible" { *-*-* } { "-mword-relocations" } } */ |
| 4 |
/* { dg-options "-O2 -mslow-flash-data" } */ |
| 5 |
/* { dg-add-options arm_arch_v7em_hard } */ |
| 6 |
|
| 7 |
float f (float); |
| 8 |
|
| 9 |
const float max = 0.01f; |
| 10 |
|
| 11 |
int |
| 12 |
g (float in) |
| 13 |
{ |
| 14 |
if (f (in) + f (in) < max) |
| 15 |
return 0; |
| 16 |
return 1; |
| 17 |
} |
| 18 |
|
| 19 |
double foo (void) |
| 20 |
{ |
| 21 |
return 0xF1EC7A5239123AF; |
| 22 |
} |
| 23 |
|
| 24 |
double bar (void) |
| 25 |
{ |
| 26 |
return 0.0f; |
| 27 |
} |