]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR rtl-optimization/87065 (combine causes ICE in trunc_int_for_mode)
authorJakub Jelinek <jakub@redhat.com>
Fri, 12 Oct 2018 14:53:54 +0000 (16:53 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 12 Oct 2018 14:53:54 +0000 (16:53 +0200)
commit9868d33f0ef5190f1937a8bea81e235962b71076
treee1ae73f3390a2019eba36ea3ca47d0d134216e9f
parent5dd76907d07ee1145d7a5ff8b9c0983695da404b
backport: re PR rtl-optimization/87065 (combine causes ICE in trunc_int_for_mode)

Backported from mainline
2018-08-27  Jakub Jelinek  <jakub@redhat.com>

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: r265110
gcc/ChangeLog
gcc/combine.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr87065.c [new file with mode: 0644]