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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [short-compare-2.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR rtl-optimization/19296 */
2
/* Origin: Falk Hueffner <falk@debian.org> */
3
/* Testcase by Andrew Pinski <pinskia@gcc.gnu.org> */
4
 
5
/* { dg-do run } */
6
/* { dg-options "-O" } */
7
/* { dg-options "-O -mtune=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
8
 
9
extern void abort();
10
 
11
void f(unsigned short ad)
12
{
13
  if ((short) (ad - 0x4000) >= 0)
14
    abort();
15
}
16
 
17
int main(void)
18
{
19
  f(0xc000);
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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