re PR rtl-optimization/87817 (gcc.target/i386/bmi2-bzhi-2.c execution test)
authorJakub Jelinek <jakub@redhat.com>
Wed, 21 Nov 2018 10:45:58 +0000 (11:45 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 Nov 2018 10:45:58 +0000 (11:45 +0100)
commitf259abd260739aca06f8760dcbc0a1a567018ff2
tree86c4d15ef51d1a3ce3b66dbe2bd7cf74643f7f5d
parent171125708adc225b28da35f2f50d2554c0d5f595
re PR rtl-optimization/87817 (gcc.target/i386/bmi2-bzhi-2.c execution test)

PR rtl-optimization/87817
* config/i386/i386.md (bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3,
*bmi2_bzhi_<mode>3_1, *bmi2_bzhi_<mode>3_1_ccz): Use IF_THEN_ELSE
in the pattern to avoid triggering UB when operands[2] is zero.
(tbm_bextri_<mode>): New expander.  Renamed the old define_insn to ...
(*tbm_bextri_<mode>): ... this.

From-SVN: r266340
gcc/ChangeLog
gcc/config/i386/i386.md