1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/* { 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; _t = (int*)8; _t1 = 0; n = n & 2; _2 = n != 0 ? _t : _t1; return _2; }