Skip to content

Commit

Permalink
[M68k] Fix atomic_cmp_swap patterns after #94845
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Jun 13, 2024
1 parent b53e085 commit 04a4254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/M68k/M68kInstrAtomics.td
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def CAS32 : MxCASOp<0x3, MxType32d>;


foreach size = [8, 16, 32] in {
def : Pat<(!cast<SDPatternOperator>("atomic_cmp_swap_"#size) MxCP_ARI:$ptr,
def : Pat<(!cast<SDPatternOperator>("atomic_cmp_swap_i"#size) MxCP_ARI:$ptr,
!cast<MxRegOp>("MxDRD"#size):$cmp,
!cast<MxRegOp>("MxDRD"#size):$new),
(!cast<MxInst>("CAS"#size) !cast<MxRegOp>("MxDRD"#size):$cmp,
Expand Down

0 comments on commit 04a4254

Please sign in to comment.