[PATCH] D143470: [LoongArch] Merge the 12bit constant address into the offset field of the instruction

Gong LingQin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 7 00:19:20 PST 2023


gonglingqin created this revision.
gonglingqin added reviewers: xen0n, xry111, SixWeining, wangleiat, MaskRay.
Herald added a subscriber: hiraditya.
Herald added a project: All.
gonglingqin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143470

Files:
  llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
  llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.h
  llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
  llvm/test/CodeGen/LoongArch/load-store-offset.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143470.495398.patch
Type: text/x-patch
Size: 9154 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230207/7b5ad1f1/attachment.bin>


More information about the llvm-commits mailing list