[PATCH] D129838: [LoongArch] Optimize the atomic store with amswap_db.[w/d]

Xi Ruoyao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 19 04:18:28 PDT 2022


xry111 added inline comments.


================
Comment at: llvm/test/CodeGen/LoongArch/ir-instruction/load-store-atomic.ll:307
+; LA32:       # %bb.0:
+; LA32-NEXT:    amswap_db.w $zero, $a1, $a0
+; LA32-NEXT:    jirl $zero, $ra, 0
----------------
The manual says LA32 may lack `amswap_db.w` (its not in Table 2-1, page 12 in the Chinese version).  If it's not a documentation error we need to keep the old behavior for LA32.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D129838/new/

https://reviews.llvm.org/D129838



More information about the llvm-commits mailing list