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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20020225-1.c] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
/* This testcase failed at -O2 on powerpc64 due to andsi3 writing
2
   nonzero bits to the high 32 bits of a 64 bit register.  */
3
 
4
extern void abort (void);
5
extern void exit (int);
6
 
7
unsigned long foo (unsigned long base, unsigned int val)
8
{
9
  return base + (val & 0x80000001);
10
}
11
 
12
int main (void)
13
{
14
  if (foo (0L, 0x0ffffff0) != 0L)
15
    abort ();
16
  exit (0);
17
}

powered by: WebSVN 2.1.0

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