[PATCH] D135641: [LoongArch] Add earlyclobber of destination register to atomic instructions

Gong LingQin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 10 20:37:32 PDT 2022


gonglingqin created this revision.
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.

If the AM* atomic memory access instruction has the same register number as
rd and rj, the execution will trigger an Instruction Non-defined Exception.
If the AM* atomic memory access instruction has the same register number as
rd and rk, the execution result is uncertain.

Reference: https://github.com/loongson/LoongArch-Documentation


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D135641

Files:
  llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
  llvm/test/CodeGen/LoongArch/ir-instruction/atomicrmw.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135641.466692.patch
Type: text/x-patch
Size: 6553 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221011/e2c33703/attachment.bin>


More information about the llvm-commits mailing list