Skip to content
Snippets Groups Projects
Commit 7d63392d authored by Zoran Jovanovic's avatar Zoran Jovanovic
Browse files

LL and SC decoder method fix.

llvm-svn: 199316
parent d4cb61cf
No related branches found
No related tags found
No related merge requests found
......@@ -48,16 +48,15 @@ class StoreLeftRightMM<string opstr, SDNode OpNode, RegisterOperand RO,
class LLBaseMM<string opstr, RegisterOperand RO> :
InstSE<(outs RO:$rt), (ins mem_mm_12:$addr),
!strconcat(opstr, "\t$rt, $addr"), [], NoItinerary, FrmI> {
let DecoderMethod = "DecodeMem";
let DecoderMethod = "DecodeMemMMImm12";
let mayLoad = 1;
}
class SCBaseMM<string opstr, RegisterOperand RO> :
InstSE<(outs RO:$dst), (ins RO:$rt, mem_mm_12:$addr),
InstSE<(outs), (ins RO:$rt, mem_mm_12:$addr),
!strconcat(opstr, "\t$rt, $addr"), [], NoItinerary, FrmI> {
let DecoderMethod = "DecodeMem";
let DecoderMethod = "DecodeMemMMImm12";
let mayStore = 1;
let Constraints = "$rt = $dst";
}
class LoadMM<string opstr, DAGOperand RO, SDPatternOperator OpNode = null_frag,
......
......@@ -288,3 +288,9 @@
# CHECK: tnei $9, 17767
0x41 0x89 0x45 0x67
# CHECK: ll $2, 8($4)
0x60 0x44 0x30 0x08
# CHECK: sc $2, 8($4)
0x60 0x44 0xb0 0x08
......@@ -288,3 +288,9 @@
# CHECK: tnei $9, 17767
0x89 0x41 0x67 0x45
# CHECK: ll $2, 8($4)
0x44 0x60 0x08 0x30
# CHECK: sc $2, 8($4)
0x44 0x60 0x08 0xb0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment