summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/20011009-1.c
blob: e79a475a1e3714f88fc34fc4c3c60d6a86133cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* { dg-do run } */
/* { dg-options "-O2" } */

extern void abort (void);
extern void exit (int);

#ifdef __sun__
#define COMMENT "/"
#else
#define COMMENT "#"
#endif

int main ()
{
  int x;

  asm ("movl $26, %0 " COMMENT " 26 |-> reg \n\t"
       "movl $28, %0" : "=r" (x));
  if (x != 28)
    abort ();
  exit (0);
}