PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr70593.c
blobc013683688b5c25a72e75115f64fd83654731135
1 /* PR middle-end/70593 */
2 /* { dg-do run } */
3 /* { dg-options "-O2" } */
5 __attribute__((noinline, noclone)) unsigned long
6 foo (unsigned x)
8 unsigned long a, c = x;
9 asm volatile ("xorl\t%k1, %k1\n\tmovl\t$7, %k0" : "=c" (c), "=a" (a) : "0" (c), "1" (c) : "memory");
10 return c;
13 int
14 main ()
16 if (foo (3) != 7)
17 __builtin_abort ();
18 return 0;