aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr21137.c
blob: 199555a5017f8caafa388e1a3a5177160ce20858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized" } */
/* { dg-require-effective-target int32plus } */

void foo();

void test5_1(int e)
{
  if ((e >> 31) & 64)
    foo();
}

typedef int myint;

void test5_2(myint e)
{
  if ((e >> 31) & 64)
    foo();
}

/* { dg-final { scan-tree-dump-times " < 0" 2 "optimized" } } */