re PR rtl-optimization/87065 (combine causes ICE in trunc_int_for_mode)
authorJakub Jelinek <jakub@redhat.com>
Mon, 27 Aug 2018 08:41:22 +0000 (10:41 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 27 Aug 2018 08:41:22 +0000 (10:41 +0200)
commite7289cb45d094d9c538dc978c3fc0ae18e4752bd
treea9ac5a2119252859145d3d4b608b7a72af8bc9a6
parent7a583153ec27b45bd0b87b7c4defbc0d63777cda
re PR rtl-optimization/87065 (combine causes ICE in trunc_int_for_mode)

PR rtl-optimization/87065
* combine.c (simplify_if_then_else): Formatting fix.
(if_then_else_cond): Guard MULT optimization with SCALAR_INT_MODE_P
check.
(known_cond): Don't return const_true_rtx for vector modes.  Use
CONST0_RTX instead of const0_rtx.  Formatting fixes.

* gcc.target/i386/pr87065.c: New test.

From-SVN: r263872
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr87065.c [new file with mode: 0644]