[PATCH] D149488: [RISCV] Use AMOSWAP for 32 and 64-bit atomic stores

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 28 18:08:58 PDT 2023


jrtc27 added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/atomic-load-store.ll:1128
+; RV32IA:       # %bb.0:
+; RV32IA-NEXT:    amoswap.w.rl a0, a1, (a0)
+; RV32IA-NEXT:    ret
----------------
Why are we writing a killed value to a0?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D149488



More information about the llvm-commits mailing list