summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sh/mfmovd.c
blob: c8e0094f0c1148c0dc6c2316935f9a368590cc20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile { target "sh*-*-*" } } */
/* { dg-options "-mfmovd" } */
/* { dg-skip-if "No double precision FPU support" { "sh*-*-*" } "-m2a-nofpu -m2a-single-only -m4-nofpu -m4-single-only -m4a-nofpu -m4a-single-only" { "" } }  */
/* { dg-final { scan-assembler "fmov.d"} }  */

extern double g;

void
f (double d)
{
  g = d;
}