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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [pr45617.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* PR rtl-optimization/45617 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2" } */
4
 
5
int f1 (int x)
6
{
7
  return (x >> 23) > 12;
8
}
9
int f2 (int x)
10
{
11
  return x > ((13 << 23) - 1);
12
}
13
int f3 (int x)
14
{
15
  return (x >> 23) >= 12;
16
}
17
int f4 (int x)
18
{
19
  return x >= (12 << 23);
20
}
21
 
22
/* { dg-final { scan-assembler-not "sarl" } } */

powered by: WebSVN 2.1.0

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