4 Commits

Author SHA1 Message Date
wanglei
9d4f7f44b6 [test][LoongArch] Add -mattr=+d option. NFC
Because most of tests assume target-abi=`lp64d`, adding the
corresponding feature is reasonable.

rg -l loongarch -g '!*.s' | xargs sed -i '/mtriple=loongarch/ {/-mattr=/!{/target-abi/! s/mtriple=loongarch.. /&-mattr=+d /}}'
2024-05-14 20:23:04 +08:00
Ben Shi
ec37a35a8c [LoongArch] Optimize additions with immediates
Reviewed By: SixWeining, xen0n

Differential Revision: https://reviews.llvm.org/D147222
2023-03-31 14:47:19 +08:00
gonglingqin
d6f1c85edb [LoongArch] Implement TargetLowering::isLegalAddressingMode() hook
Use the exact addressing mode information instead of the default to
make better use of offsets in instructions.

Differential Revision: https://reviews.llvm.org/D142874
2023-02-02 14:01:44 +08:00
gonglingqin
2492bdb2c6 [LoongArch] Support Load and Store with 14-bit signed immediate operands
Differential Revision: https://reviews.llvm.org/D131954
2022-08-22 11:32:58 +08:00