summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr65729.c
blob: 85383b02eb5f2126e90b3215ec642c1427b87240 (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-require-effective-target arm_hard_vfp_ok } */
/* { dg-options "-O2 -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16" } */

int foo (void)
{
  double x = 0.0;
  asm volatile ("" : "+gw" (x));
  return x;
}