diff options
author | Guo Jie <guojie@loongson.cn> | 2024-12-30 10:38:35 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2025-01-02 10:09:42 +0800 |
commit | 66b6e578d99ea20e2c67593be7a772d7710e05b2 (patch) | |
tree | 0db4275f0b7b9eb00b2f73a00d3ca3bba24388e4 /gcc/rust/ast/rust-pattern.h | |
parent | 18d3b87b17fd6157e3aff64099a5bf84ea5f82f3 (diff) | |
download | gcc-66b6e578d99ea20e2c67593be7a772d7710e05b2.zip gcc-66b6e578d99ea20e2c67593be7a772d7710e05b2.tar.gz gcc-66b6e578d99ea20e2c67593be7a772d7710e05b2.tar.bz2 |
LoongArch: Adjust insn patterns for better combine
For some instruction patterns with commutative operands,
the order of operands needs to be adjusted to match the rules.
gcc/ChangeLog:
* config/loongarch/loongarch.md
(bytepick_d_<bytepick_imm>_rev): New combiner.
(bstrpick_alsl_paired): Reorder input operands.
gcc/testsuite/ChangeLog:
* gcc.target/loongarch/bstrpick_alsl_paired.c: New test.
* gcc.target/loongarch/bytepick_combine.c: New test.
Diffstat (limited to 'gcc/rust/ast/rust-pattern.h')
0 files changed, 0 insertions, 0 deletions