aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/gimplefe-45.c
blob: 8e1447ff3aea8ab067f835c2a4bce345bc163b77 (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 -fgimple" } */

/* This used to ICE when simplifying (A & C) != 0 ? D : 0
   for pointer types. */

int *__GIMPLE ()
p (int n)
{
  int *_2;
  int *_t;
  int *_t1;
  _Bool _3;
  _t = (int*)8;
  _t1 = 0;
  n = n & 2;
  _3 = n != 0;
  _2 = _3 ? _t : _t1;
  return _2;
}