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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [signbit-3.c] - Rev 704

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

/* PR optimization/8746 */
/* { dg-do run } */
/* { dg-require-effective-target ia32 } */
/* { dg-options "-O1 -mtune=i586" } */
 
extern void abort (void);
 
volatile int j;
 
void f0() { j=0; }
void f1() { j=1; }
 
int foo(int x)
{
  if ((short int)(x&0x8000) > (short int)0)
  {
    f0();
    return 0;
  }
  else
  {
    f1();
    return 1;
  }
}
 
int main(void)
{
  if (foo(0x8000) != 1)
    abort();
 
   return 0;
}
 

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

powered by: WebSVN 2.1.0

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