PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr30505.c
blob3cebbe6953f8b418144723b1767c4ba2f12783e1
1 /* PR inline-asm/30505 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target ia32 } */
4 /* { dg-options "-O2" } */
6 unsigned long long a, c;
7 unsigned int b, d;
9 void
10 test ()
12 unsigned int e, f;
14 __asm__ ("divl %5;movl %1, %0;movl %4, %1;divl %5"
15 : "=&rm" (e), "=a" (f), "=d" (d)
16 : "1" ((unsigned int) (a >> 32)), "g" ((unsigned int) a),
17 "rm" (b), "2" (0)
18 : "cc");
19 c = (unsigned long long) e << 32 | f;