]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Expand left rotate to right rotate with negated amount
authorXi Ruoyao <xry111@xry111.site>
Sat, 16 Dec 2023 21:38:20 +0000 (05:38 +0800)
committerXi Ruoyao <xry111@xry111.site>
Wed, 27 Dec 2023 11:02:03 +0000 (19:02 +0800)
commit80b8f1e53502a398248bbf10bf59f7d5b0f1c861
treebd6970443b831035424a800454342266cb6f0427
parentc4ac073d4fc7474e29d085bbd10971138ee7478e
LoongArch: Expand left rotate to right rotate with negated amount

gcc/ChangeLog:

* config/loongarch/loongarch.md (rotl<mode>3):
New define_expand.
* config/loongarch/simd.md (vrotl<mode>3): Likewise.
(rotl<mode>3): Likewise.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/rotl-with-rotr.c: New test.
* gcc.target/loongarch/rotl-with-vrotr-b.c: New test.
* gcc.target/loongarch/rotl-with-vrotr-h.c: New test.
* gcc.target/loongarch/rotl-with-vrotr-w.c: New test.
* gcc.target/loongarch/rotl-with-vrotr-d.c: New test.
* gcc.target/loongarch/rotl-with-xvrotr-b.c: New test.
* gcc.target/loongarch/rotl-with-xvrotr-h.c: New test.
* gcc.target/loongarch/rotl-with-xvrotr-w.c: New test.
* gcc.target/loongarch/rotl-with-xvrotr-d.c: New test.
gcc/config/loongarch/loongarch.md
gcc/config/loongarch/simd.md
gcc/testsuite/gcc.target/loongarch/rotl-with-rotr.c [new file with mode: 0644]
gcc/testsuite/gcc.target/loongarch/rotl-with-vrotr-b.c [new file with mode: 0644]
gcc/testsuite/gcc.target/loongarch/rotl-with-vrotr-d.c [new file with mode: 0644]
gcc/testsuite/gcc.target/loongarch/rotl-with-vrotr-h.c [new file with mode: 0644]
gcc/testsuite/gcc.target/loongarch/rotl-with-vrotr-w.c [new file with mode: 0644]
gcc/testsuite/gcc.target/loongarch/rotl-with-xvrotr-b.c [new file with mode: 0644]
gcc/testsuite/gcc.target/loongarch/rotl-with-xvrotr-d.c [new file with mode: 0644]
gcc/testsuite/gcc.target/loongarch/rotl-with-xvrotr-h.c [new file with mode: 0644]
gcc/testsuite/gcc.target/loongarch/rotl-with-xvrotr-w.c [new file with mode: 0644]