summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sh/pr21255-2-ml.c
blob: 570e7dd0b50c99bc34f976b1479ce81b55d70c7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile { target "sh*-*-*" } } */
/* { dg-options "-O2 -fomit-frame-pointer" } */
/* { dg-skip-if "" { "sh*-*-*" } { "-mb" && "-m5*"} { "" } }  */
/* { dg-final { scan-assembler "mov @\\(4,r.\\),r.; mov @r.,r." } } */
double d;

double
f (void)
{
  double r;
  asm ("mov %S1,%S0; mov %R1,%R0" : "=&r" (r) : "m" (d));
  return r;
}