https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87065
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2018-08-23 CC| |segher at gcc dot gnu.org Known to work| |6.4.1 Target Milestone|--- |7.4 Summary|ice in trunc_int_for_mode |[7/8/9 Regression] combine | |causes ICE in | |trunc_int_for_mode Ever confirmed|0 |1 Known to fail| |7.1.0, 7.3.1 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. We can simplify_binary_operation with (gdb) p debug_rtx (op0) (reg:V4SI 195) $2 = void (gdb) p debug_rtx (op1) (const_int 1 [0x1]) (gdb) p code $6 = MINUS via #8 0x0000000001bec108 in combine_simplify_rtx (x=0x7ffff6a65228, op0_mode=E_V4SImode, in_dest=0, in_cond=0) at /space/rguenther/src/gcc-sccvn/gcc/combine.c:5730 5730 temp = simplify_binary_operation (code, mode, XEXP (x, 0), XEXP (x, 1)); (gdb) p debug_rtx (x) (minus:V4SI (reg:V4SI 195) (const_int 1 [0x1])) ... #11 0x0000000001bee30e in combine_simplify_rtx (x=0x7ffff6a3dc40, op0_mode=E_V4SImode, in_dest=0, in_cond=0) at /space/rguenther/src/gcc-sccvn/gcc/combine.c:6367 6367 return simplify_if_then_else (x); (gdb) p debug_rtx (x) (if_then_else:V4SI (eq:V4SI (reg:V4SI 134 [ vect__6.22 ]) (reg:V4SI 169)) (minus:V4SI (reg:V4SI 195) (eq:V4SI (reg:V4SI 134 [ vect__6.22 ]) (reg:V4SI 169))) (reg:V4SI 196)) segher? Use -O3 -march=bdver2