Skip to content

Commit 0649594

Browse files
committedSep 10, 2023
[M68k] Swap operands of atomic_store after D123143
1 parent 61c44f1 commit 0649594

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎llvm/lib/Target/M68k/M68kInstrAtomics.td

+1-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ foreach size = [8, 16, 32] in {
1010
def : Pat<(!cast<SDPatternOperator>("atomic_load_"#size) MxCP_ARI:$ptr),
1111
(!cast<MxInst>("MOV"#size#"dj") !cast<MxMemOp>("MxARI"#size):$ptr)>;
1212

13-
def : Pat<(!cast<SDPatternOperator>("atomic_store_"#size) MxCP_ARI:$ptr,
14-
!cast<MxRegOp>("MxDRD"#size):$val),
13+
def : Pat<(!cast<SDPatternOperator>("atomic_store_"#size) !cast<MxRegOp>("MxDRD"#size):$val, MxCP_ARI:$ptr),
1514
(!cast<MxInst>("MOV"#size#"jd") !cast<MxMemOp>("MxARI"#size):$ptr,
1615
!cast<MxRegOp>("MxDRD"#size):$val)>;
1716
}

0 commit comments

Comments
 (0)
Please sign in to comment.