| 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 |
double __attribute__ ((target ("fpu=fpv5-d16"))) |
| 8 |
foo (void) |
| 9 |
{ |
| 10 |
return 1.0f; |
| 11 |
} |
| 12 |
|
| 13 |
float __attribute__ ((target ("fpu=fpv5-d16"))) |
| 14 |
bar (void) |
| 15 |
{ |
| 16 |
return 1.0f; |
| 17 |
} |
| 18 |
|
| 19 |
float __attribute__ ((target ("fpu=fpv5-sp-d16"))) |
| 20 |
baz (void) |
| 21 |
{ |
| 22 |
return 1.0f; |
| 23 |
} |
| 24 |
|
| 25 |
/* { dg-final { scan-assembler-times "#1\\.0e\\+0" 3 } } */ |