From 04a4254def9643bf044c69f0aae65e4f2f278e0a Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Thu, 13 Jun 2024 12:07:08 +0100 Subject: [PATCH] [M68k] Fix atomic_cmp_swap patterns after #94845 --- llvm/lib/Target/M68k/M68kInstrAtomics.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/M68k/M68kInstrAtomics.td b/llvm/lib/Target/M68k/M68kInstrAtomics.td index 40c6593e2cfa51..84a66253354229 100644 --- a/llvm/lib/Target/M68k/M68kInstrAtomics.td +++ b/llvm/lib/Target/M68k/M68kInstrAtomics.td @@ -35,7 +35,7 @@ def CAS32 : MxCASOp<0x3, MxType32d>; foreach size = [8, 16, 32] in { - def : Pat<(!cast("atomic_cmp_swap_"#size) MxCP_ARI:$ptr, + def : Pat<(!cast("atomic_cmp_swap_i"#size) MxCP_ARI:$ptr, !cast("MxDRD"#size):$cmp, !cast("MxDRD"#size):$new), (!cast("CAS"#size) !cast("MxDRD"#size):$cmp,