]> git.ipfire.org Git - thirdparty/gcc.git/commit
LoongArch: Make full use of load insns with unsigned extension
authorGuo Jie <guojie@loongson.cn>
Sun, 2 Nov 2025 03:32:07 +0000 (11:32 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Mon, 3 Nov 2025 08:10:45 +0000 (16:10 +0800)
commit796aa9e3977bb3ba44b3f188f8de45b7b028f999
treec4adc4ac64513a89ff941072e867fa5abdac8ccf
parentdddb16c8170d2a92f105817eb00cf04bfaf54bd5
LoongArch: Make full use of load insns with unsigned extension

gcc/ChangeLog:

* config/loongarch/loongarch.md
(and_load_zero_extend<mode>): New combiner.
* config/loongarch/predicates.md
(mask_operand): New predicate.

gcc/testsuite/ChangeLog:

* gcc.target/loongarch/mem-and-mask-opt.c: New test.
gcc/config/loongarch/loongarch.md
gcc/config/loongarch/predicates.md
gcc/testsuite/gcc.target/loongarch/mem-and-mask-opt.c [new file with mode: 0644]