OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20000108-1.c] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Copyright (C) 2000  Free Software Foundation.
2
 
3
   by Alexandre Oliva  <oliva@lsd.ic.unicamp.br>  */
4
 
5
/* { dg-do run } */
6
/* { dg-options "-O3" } */
7
 
8
extern void abort (void);
9
 
10
void foo () {} /* unused, but essential to trigger the bug */
11
 
12
int main () {
13
  int i;
14
  /* use asms to prevent optimizations */
15
  /* i = -1; */ asm ("" : "=r" (i) : "0" (-1));
16
  /* i =  1; */ asm ("" : "=r" (i) : "0" (i ? 1 : 2));
17
  if (i != 1)
18
    abort();
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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