aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/asm-dialect-1.c
blob: b29017eeb4de164ff2f15b89bfc9a97ba99892c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-options "-masm=intel" } */
/* { dg-require-effective-target masm_intel } */

extern void abort (void);

int
main (void)
{
  int f = 0;
  asm ("{movl $42, %%eax | mov eax, 42}" : :);
  asm ("{movl $41, %0||mov %0, 43}" : "=r"(f));
  if (f != 42)
    abort ();

  return 0;
}