aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr30505.c
blob: 3cebbe6953f8b418144723b1767c4ba2f12783e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR inline-asm/30505 */
/* { dg-do compile } */
/* { dg-require-effective-target ia32 } */
/* { dg-options "-O2" } */

unsigned long long a, c;
unsigned int b, d;

void
test ()
{
  unsigned int e, f;

  __asm__ ("divl %5;movl %1, %0;movl %4, %1;divl %5"
	   : "=&rm" (e), "=a" (f), "=d" (d)
	   : "1" ((unsigned int) (a >> 32)), "g" ((unsigned int) a),
	     "rm" (b), "2" (0)
	   : "cc");
  c = (unsigned long long) e << 32 | f;
}