]> git.ipfire.org Git - thirdparty/gcc.git/commit
APX: Emit nf variant for rotl splitter with mask [PR 119539]
authorHongyu Wang <hongyu.wang@intel.com>
Mon, 31 Mar 2025 08:39:23 +0000 (16:39 +0800)
committerHongyu Wang <hongyu.wang@intel.com>
Thu, 3 Apr 2025 03:03:57 +0000 (11:03 +0800)
commit2488843477b3dcfeef76f8512ff6d9e8f3b58dca
tree113dada9b8eb258ec203ab44e767915a13dbd039
parent4590a31f81ae18e0d887c1a56f510d22754f31ed
APX: Emit nf variant for rotl splitter with mask [PR 119539]

For spiltter after *<rotate_insn><mode>3_mask it now splits the pattern
to *<rotate_insn><mode>3_mask with flag reg clobber, and it doesn't
generate nf variant of rotate. Directly emit nf pattern when
TARGET_APX_NF enabled in these define_insn_and_split.

gcc/ChangeLog:

PR target/119539
* config/i386/i386.md (*<insn><mode>3_mask): Emit NF variant of
rotate when APX_NF enabled, and use force_lowpart_subreg.
(*<insn><mode>3_mask_1): Likewise.

gcc/testsuite/ChangeLog:

PR target/119539
* gcc.target/i386/apx-nf-pr119539.c: New test.
gcc/config/i386/i386.md
gcc/testsuite/gcc.target/i386/apx-nf-pr119539.c [new file with mode: 0644]