OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [20011009-1.c] - Blame information for rev 318

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 318 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O2" } */
3
 
4
extern void abort (void);
5
extern void exit (int);
6
 
7
#ifdef __sun__
8
#define COMMENT "/"
9
#else
10
#define COMMENT "#"
11
#endif
12
 
13
int main ()
14
{
15
  int x;
16
 
17
  asm ("movl $26, %0 " COMMENT " 26 |-> reg \n\t"
18
       "movl $28, %0" : "=r" (x));
19
  if (x != 28)
20
    abort ();
21
  exit (0);
22
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.