re PR rtl-optimization/89445 (_mm512_maskz_loadu_pd "forgets" to use the mask)
authorJakub Jelinek <jakub@redhat.com>
Sun, 24 Feb 2019 19:23:51 +0000 (20:23 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 24 Feb 2019 19:23:51 +0000 (20:23 +0100)
commit953e25c44acc2458d854b1442d7775d997aaf187
tree2c8a21a84fef81eadb262cc7c2dab57ccd1d2046
parentc7f01cb61dd80f3c8282ae81a4d60c654908eb69
re PR rtl-optimization/89445 (_mm512_maskz_loadu_pd "forgets" to use the mask)

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.

From-SVN: r269176
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]