Fix ICE of unrecognizable insn. [PR target/104001]
authorliuhongt <hongtao.liu@intel.com>
Thu, 13 Jan 2022 14:51:49 +0000 (22:51 +0800)
committerliuhongt <hongtao.liu@intel.com>
Fri, 14 Jan 2022 05:02:26 +0000 (13:02 +0800)
commitb77e3b4e4589e56c01511fabdbaadb029cd47f5c
treeb9e980039aa9d6bc6ff6fb08b25933e707e13c89
parentb31cec9c22b8dfa40baefd4c2dd774477e8e04c5
Fix ICE of unrecognizable insn. [PR target/104001]

For define_insn_and_split "*xor2andn":

1. Refine predicate of operands[0] from nonimmediate_operand to
register_operand.
2. Remove TARGET_AVX512BW from condition to avoid kmov when TARGET_BMI
is not available.

gcc/ChangeLog:

PR target/104001
PR target/94790
PR target/104014
* config/i386/i386.md (*xor2andn): Refine predicate of
operands[0] from nonimmediate_operand to
register_operand, remove TARGET_AVX512BW from condition.

gcc/testsuite/ChangeLog:

* gcc.target/i386/pr104001.c: New test.
gcc/config/i386/i386.md
gcc/testsuite/gcc.target/i386/pr104001.c [new file with mode: 0644]