]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR rtl-optimization/89445
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 Feb 2019 19:23:51 +0000 (19:23 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 Feb 2019 19:23:51 +0000 (19:23 +0000)
commite806e3f2d075f1b5de8c443fe3d6aa1b443bacbb
tree2c8a21a84fef81eadb262cc7c2dab57ccd1d2046
parentc9f61a6481fd33187b5f84da4576418fac47646e
PR rtl-optimization/89445
* simplify-rtx.c (simplify_ternary_operation): Don't use
simplify_merge_mask on operands that may trap.
* rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
second operand is CONST_VECTOR, check if any element could be zero.
Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
their operands can trap.

* gcc.target/i386/avx512f-pr89445.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269176 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/rtlanal.c
gcc/simplify-rtx.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/avx512f-pr89445.c [new file with mode: 0644]