re PR target/77826 (ICE in decompose, at wide-int.h:928 w/ -m64 -O2 and above)
authorRichard Biener <rguenther@suse.de>
Wed, 5 Oct 2016 11:38:59 +0000 (11:38 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 5 Oct 2016 11:38:59 +0000 (11:38 +0000)
commit39bb7d015297586294c6416a4db78b50345d2a46
tree3a7a8b7f9c7e9c3afc2ea544f0459e8e8419cdd9
parenteeb57981e2d639f144ee6264fdc2bf6f23f8508b
re PR target/77826 (ICE in decompose, at wide-int.h:928 w/ -m64 -O2 and above)

2016-10-05  Richard Biener  <rguenther@suse.de>

PR middle-end/77826
* genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
with types_match for GIMPLE code gen to handle type mismatched
constants properly.
(dt_operand::gen): Adjust.
* match.pd ((X /[ex] A) * A -> X): Properly handle converted
and constant A.

* gcc.dg/torture/pr77826.c: New testcase.

From-SVN: r240776
gcc/ChangeLog
gcc/genmatch.c
gcc/match.pd
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr77826.c [new file with mode: 0644]