blob: 6417435f4a3af92252392c31bd583e1805920602 [file] [log] [blame]
/* { 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;
}