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/] [signbit-1.c] - Blame information for rev 328

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

Line No. Rev Author Line
1 318 jeremybenn
/* PR optimization/8746 */
2
/* { dg-do run } */
3
/* { dg-require-effective-target ilp32 } */
4
/* { dg-options "-O1 -mtune=i586" } */
5
 
6
extern void abort (void);
7
 
8
unsigned char r0;
9
 
10
int foo(int x)
11
{
12
  unsigned char r = x&0xf0;
13
 
14
  if (!(r&0x80))
15
  {
16
    r0 = r;
17
    return 0;
18
  }
19
  else
20
    return 1;
21
}
22
 
23
int main(void)
24
{
25
  if (foo(0x80) != 1)
26
    abort();
27
 
28
   return 0;
29
}

powered by: WebSVN 2.1.0

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