[llvm] [PowerPC] Rework AMO load with Compare and Swap Not Equal to use post-RA pseudo expansion (PR #190698)

Maryam Moghadas via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 8 10:15:28 PDT 2026


================
@@ -332,6 +332,12 @@ def LDAT : X_RD5_RS5_IM5<31, 614, (outs g8prc:$RST), (ins g8prc:$RSTi, ptr_rc_no
                          "ldat $RST, $RA, $RB", IIC_LdStLoad>, isPPC64,
            Requires<[IsISA3_0]>,
            RegConstraint<"$RSTi = $RST">;
+
+let Uses = [X4, X5], Defs = [X3], hasExtraSrcRegAllocReq = 1,
+      mayStore = 1, isCodeGenOnly = 1, hasNoSchedulingInfo = 1 in
+def LDAT_CSNE : X_RD5_RS5_IM5<31, 614, (outs g8rc:$RST), (ins ptr_rc_nor0:$RA, u5imm:$RB),
----------------
maryammo wrote:

Thanks that makes it work, since the result is currently in X3 and X3/X4 is not a valid even-odd g8prc, I  need to use  LWAT_CSNE/LDAT_CSNE with g8rc output. (without Uses/Defs)

https://github.com/llvm/llvm-project/pull/190698


More information about the llvm-commits mailing list