diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/20011009-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/20011009-1.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/20011009-1.c b/gcc/testsuite/gcc.target/i386/20011009-1.c new file mode 100644 index 00000000000..b78d99e997b --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/20011009-1.c @@ -0,0 +1,16 @@ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-options "-O2" } */ + +extern void abort (void); +extern void exit (int); + +int main () +{ + int x; + + asm ("movl $26, %0 # 26 |-> reg \n\t" + "movl $28, %0" : "=r" (x)); + if (x != 28) + abort (); + exit (0); +} |