OSDN Git Service

2005-12-22 Dale Johannesen <dalej@apple.com>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / 20011009-1.c
1 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
2 /* { dg-options "-O2" } */
3
4 extern void abort (void);
5 extern void exit (int);
6
7 int main ()
8 {
9   int x;
10
11   asm ("movl $26, %0 # 26 |-> reg \n\t"
12        "movl $28, %0" : "=r" (x));
13   if (x != 28)
14     abort ();
15   exit (0);
16 }