Skip to content

Commit 04a4254

Browse files
committed
[M68k] Fix atomic_cmp_swap patterns after #94845
1 parent b53e085 commit 04a4254

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/M68k/M68kInstrAtomics.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def CAS32 : MxCASOp<0x3, MxType32d>;
3535

3636

3737
foreach size = [8, 16, 32] in {
38-
def : Pat<(!cast<SDPatternOperator>("atomic_cmp_swap_"#size) MxCP_ARI:$ptr,
38+
def : Pat<(!cast<SDPatternOperator>("atomic_cmp_swap_i"#size) MxCP_ARI:$ptr,
3939
!cast<MxRegOp>("MxDRD"#size):$cmp,
4040
!cast<MxRegOp>("MxDRD"#size):$new),
4141
(!cast<MxInst>("CAS"#size) !cast<MxRegOp>("MxDRD"#size):$cmp,

0 commit comments

Comments
 (0)