]> gcc.gnu.org Git - gcc.git/commit
LoongArch: Remove masking process for operand 3 of xvpermi.q.
authorChenghui Pan <panchenghui@loongson.cn>
Thu, 14 Mar 2024 01:26:54 +0000 (09:26 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Fri, 15 Mar 2024 01:08:53 +0000 (09:08 +0800)
commitd7d05824ae68da24908d97a10b9ec59d08f75a90
tree4f2158e22039211e0e64801054ad4afd819931a4
parentc1f6690b821f06616d442d732b24473d91eca66a
LoongArch: Remove masking process for operand 3 of xvpermi.q.

The behavior of non-zero unused bits in xvpermi.q instruction's
third operand is undefined on LoongArch, according to our
discussion (https://github.com/llvm/llvm-project/pull/83540),
we think that keeping original insn operand as unmodified
state is better solution.

This patch partially reverts 7b158e036a95b1ab40793dd53bed7dbd770ffdaf.

gcc/ChangeLog:

* config/loongarch/lasx.md (lasx_xvpermi_q_<LASX:mode>):
Remove masking of operand 3.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/vector/lasx/lasx-xvpermi_q.c:
Reposition operand 3's value into instruction's defined accept range.
gcc/config/loongarch/lasx.md
gcc/testsuite/gcc.target/loongarch/vector/lasx/lasx-xvpermi_q.c
This page took 0.055683 seconds and 6 git commands to generate.