Debian Codegraph @

gcc/testsuite/gcc.target/i386/pr68843-2.c

raw
1 /* { dg-do run } */
2 /* { dg-options "" } */
3
4 int
5 __attribute__((noinline, noclone))
6 test (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
18 main ()
19 {
20 int t = -10;
21
22 if (test (t) != t)
23 __builtin_abort ();
24 return 0;
25 }