aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/testsuite/gcc.target/i386/20011009-1.c
blob: 99173a10931f5fc8792950de09d5b611717ad1e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do run } */
/* { 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);
}