aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/20020710-1.c
blob: bf6c9066cdd738b00dc0bf51ff1b7cae310fbbb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Red Hat bugzilla #68395
   PR middle-end/7245
   This testcase ICEd on IA-32 because shift & compare patterns
   predicates allowed any immediate, but constraints allowed only
   numbers from 1 to 31.  */

void foo (int *x, unsigned int y)
{
  int a = y >> -13;
  if (a)
    *x = a;
}