aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/thumb2-slow-flash-data-5.c
blob: 17bea15a9e1135a9140e8433ed287b5aac67c941 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { 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-sp-d16")))
foo (void)
{
  return 1.0f;
}

/* { dg-final { scan-assembler-not "#1\\.0e\\+0" } } */