blob: 2982e8d14c8b6d1f9e6767ef4b9100ba644beac7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* PR inline-asm/39058 */
/* { dg-options "-O2" } */
double
f1 ()
{
double x;
asm ("" : "=r,r" (x) : "0,0" (x));
return x;
}
double
f2 ()
{
double x;
asm ("" : "=r" (x) : "0" (x));
return x;
}
double
f3 ()
{
double x, y;
asm ("" : "=r,r" (x), "=r,r" (y) : "%0,0" (x), "r,r" (0));
return x;
}
double
f4 ()
{
double x, y;
asm ("" : "=r" (x), "=r" (y) : "0" (x), "r" (0));
return x;
}
|