]> git.ipfire.org Git - thirdparty/gcc.git/commit
[APX NDD] Support APX NDD for not insn
authorKong Lingling <lingling.kong@intel.com>
Mon, 22 May 2023 02:08:39 +0000 (10:08 +0800)
committerHongyu Wang <hongyu.wang@intel.com>
Thu, 7 Dec 2023 01:31:14 +0000 (09:31 +0800)
commitc778241dbdb509baee6ddb193a465dc3794c1a05
tree1fb56a581a15e749e74d856c2f1a39f3600c79b8
parent042519b61772c3fd7aa1bb9b492e1df75df23eb5
[APX NDD] Support APX NDD for not insn

For *one_cmplsi2_2_zext, it will be splitted to xor, so its NDD form will be
added together with xor NDD support.

gcc/ChangeLog:

* config/i386/i386.md (one_cmpl<mode>2): Add new constraints for NDD
and adjust output template.
(*one_cmpl<mode>2_1): Likewise.
(*one_cmplqi2_1): Likewise.
(*one_cmpl<dwi>2_doubleword): Likewise, and adopt '&' to NDD dest.
(*one_cmpl<mode>2_2): Likewise.
(*one_cmplsi2_1_zext): Likewise, and use nonimmediate_operand for
operands[1] to accept memory input for NDD alternative.

gcc/testsuite/ChangeLog:

* gcc.target/i386/apx-ndd.c: Add not test.
gcc/config/i386/i386.md
gcc/testsuite/gcc.target/i386/apx-ndd.c