Merge from mainline.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr21255-4.c
blob72a632c9dc5b8d5f58ed933d80059d0ea3565acc
1 /* { dg-do compile { target "sh*-*-*" } } */
2 /* { dg-options "-O2 -fomit-frame-pointer" } */
4 double
5 f ()
7 double r;
9 asm ("mov %S1,%S0; mov %R1,%R0" : "=r" (r) : "i" (f));
10 /* { dg-error "invalid operand to %S" "" {target "sh*-*-*" } 9 } */
11 /* { dg-error "invalid operand to %R" "" {target "sh*-*-*" } 9 } */
12 return r;