blob: c848c26c0e76972030fae42564582bf028842977 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* { dg-do compile { target { sh*-*-* && nonpic } } } */
/* { dg-options "-O2 -fomit-frame-pointer" } */
double
f ()
{
double r;
asm ("mov %S1,%S0; mov %R1,%R0" : "=r" (r) : "i" (f));
/* { dg-error "invalid operand to %S" "" {target "sh*-*-*" } 9 } */
/* { dg-error "invalid operand to %R" "" {target "sh*-*-*" } 9 } */
return r;
}
|