summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/asm-dialect-1.c
blob: 6417435f4a3af92252392c31bd583e1805920602 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* { dg-do compile } */
/* { 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;
}