Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.dg / pr21255-1.c
blob5d5b6d7f9a684c2ff9786997ebddeea31e1b476d
1 /* { dg-do compile { target "sh*-*-*" } } */
2 /* { dg-options "-O2 -fomit-frame-pointer" } */
3 /* { dg-final { scan-assembler "mov fr4,fr.; mov fr5,fr." { target sh-*-* } } } */
4 /* { dg-final { scan-assembler "mov fr4,fr.; mov fr5,fr." { target sh[1234lb]*-*-* } } } */
5 /* { dg-final { scan-assembler "mov fr0,fr.; mov fr1,fr." { target sh[56]*-*-* } } } */
6 double
7 f (double d)
9 double r;
11 #if defined (__SH_FPU_DOUBLE__)
12 asm ("mov %S1,%S0; mov %R1,%R0" : "=f" (r) : "f" (d));
13 #else
14 asm ("mov fr4,fr4; mov fr5,fr5");
15 #endif
16 return r;