2 Commits

Author SHA1 Message Date
gonglingqin
653d823ad2 [LoongArch] Merge the 12bit constant address into the offset field of the instruction
There are 12bit offset fields in the ld.[b/h/w/d] and st.[b/h/w/d].
When the constant address is less than 12 bits, the address
calculation is incorporated into the offset field of the instruction.

Differential Revision: https://reviews.llvm.org/D143470
2023-02-08 16:57:11 +08:00
gonglingqin
3042419181 [LoongArch] Add baseline tests for optimizations that merge offsets into instructions 2023-02-06 19:34:42 +08:00