Merge aosp-toolchain/gcc/gcc-4_9 changes.
[official-gcc.git] / gcc-4_9 / gcc / testsuite / gcc.target / sh / pr21255-3.c
bloba6727841837dd5559c65de3ea436eeebf17da5d2
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fomit-frame-pointer" } */
3 /* { dg-skip-if "" { "sh*-*-*" } { "-m2e" "-m3e" "*single-only" } { "" } } */
4 /* { dg-final { scan-assembler "mov #?0,r.*; mov #?20,r" } } */
5 /* { dg-final { scan-assembler "mov #?1077149696,r.*; mov #?0,r" } } */
6 double
7 f ()
9 double r;
11 asm ("mov %S1,%S0; mov %R1,%R0" : "=r" (r) : "i" (20));
12 asm ("mov %S1,%S0; mov %R1,%R0" : "+r" (r) : "i" (20.));
13 return r;