blob: 33335e1f99e866c87daad1f4140e960b7cb8d976 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v7em_hard_ok } */
/* { dg-skip-if "-mslow-flash-data and -mword-relocations incompatible" { *-*-* } { "-mword-relocations" } } */
/* { dg-options "-O2 -mslow-flash-data" } */
/* { dg-add-options arm_arch_v7em_hard } */
double __attribute__ ((target ("fpu=fpv5-d16")))
foo (void)
{
return 1.0f;
}
float __attribute__ ((target ("fpu=fpv5-d16")))
bar (void)
{
return 1.0f;
}
float __attribute__ ((target ("fpu=fpv5-sp-d16")))
baz (void)
{
return 1.0f;
}
/* { dg-final { scan-assembler-times "#1\\.0e\\+0" 3 } } */
|