ubuntu-buildroot/output/build/host-gcc-initial-11.4.0/gcc/testsuite/gcc.target/sh/mfmovd.c

21 lines
324 B
C

/* Verify that we generate fmov.d instructions to move doubles when -mfmovd
option is enabled. */
/* { dg-do compile { target { double_fpu } } } */
/* { dg-options "-mfmovd" } */
/* { dg-final { scan-assembler "fmov.d" } } */
extern double g;
void
f (double d)
{
g = d;
}
extern float h;
void f2 ()
{
h = g;
}