[llvm-branch-commits] [clang] [llvm] [PowerPC] Add support for AMO store builtins (PR #170933)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jan 14 12:38:39 PST 2026


================
@@ -2007,3 +2007,5 @@ def : Pat<(i64 (int_ppc_mfspr timm:$SPR)),
           (MFSPR8 $SPR)>;
 def : Pat<(int_ppc_mtspr timm:$SPR, g8rc:$RT),
           (MTSPR8 $SPR, $RT)>;
+def : Pat<(PPCstat i64:$val, ptr_rc_nor0:$ptr, timm:$fc),
+          (STDAT $val, $ptr, $fc)>;
----------------
RolandF77 wrote:

Same as with STWAT, can this go in the def STDAT?

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


More information about the llvm-branch-commits mailing list