blob: a7bd86c2c5a335f0c7f9ce8f8331c12bb7f934ed (
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
|
/* { dg-do run } */
/* { dg-options "" } */
int
__attribute__((noinline, noclone))
test (double y)
{
int a, b;
asm ("fistp{l (%1)| DWORD PTR [%1]}\n\t"
"mov{l (%1), %0| %0, DWORD PTR [%1]}"
: "=r" (a)
: "r" (&b), "t" (y)
: "st");
return a;
}
int
main ()
{
int t = -10;
if (test (t) != t)
__builtin_abort ();
return 0;
}
|