1 /* { dg-do run } */ 2 /* { dg-options "" } */ 3 4 int 5 __attribute__((noinline, noclone)) test(double y)6test (double y) 7 { 8 int a, b; 9 asm ("fistp{l (%1)| DWORD PTR [%1]}\n\t" 10 "mov{l (%1), %0| %0, DWORD PTR [%1]}" 11 : "=r" (a) 12 : "r" (&b), "t" (y) 13 : "st"); 14 return a; 15 } 16 17 int main()18main () 19 { 20 int t = -10; 21 22 if (test (t) != t) 23 __builtin_abort (); 24 return 0; 25 } 26