summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr45617.c
blob: 58f977289c8648bcd21951451b60e81e1941f249 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* PR rtl-optimization/45617 */
/* { dg-do compile } */
/* { dg-options "-O2" } */

int f1 (int x)
{
  return (x >> 23) > 12;
}
int f2 (int x)
{
  return x > ((13 << 23) - 1);
}
int f3 (int x)
{
  return (x >> 23) >= 12;
}
int f4 (int x)
{
  return x >= (12 << 23);
}

/* { dg-final { scan-assembler-not "sarl" } } */