llvm.org GIT mirror llvm / e546c4c
Fixed decoding for the ARM cdp2 instruction. The restriction on the coprocessor number was removed for this instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155000 91177308-0d34-0410-b5e6-96231b3b80d8 Silviu Baranga 7 years ago
3 changed file(s) with 10 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
905905 let PrintMethod = "printPImmediate";
906906 let ParserMatchClass = CoprocNumAsmOperand;
907907 let DecoderMethod = "DecodeCoprocessor";
908 }
909
910 def pf_imm : Operand {
911 let PrintMethod = "printPImmediate";
912 let ParserMatchClass = CoprocNumAsmOperand;
908913 }
909914
910915 def CoprocRegAsmOperand : AsmOperandClass {
43054310 let Inst{23-20} = opc1;
43064311 }
43074312
4308 def CDP2 : ABXI<0b1110, (outs), (ins p_imm:$cop, imm0_15:$opc1,
4313 def CDP2 : ABXI<0b1110, (outs), (ins pf_imm:$cop, imm0_15:$opc1,
43094314 c_imm:$CRd, c_imm:$CRn, c_imm:$CRm, imm0_7:$opc2),
43104315 NoItinerary, "cdp2\t$cop, $opc1, $CRd, $CRn, $CRm, $opc2",
43114316 [(int_arm_cdp2 imm:$cop, imm:$opc1, imm:$CRd, imm:$CRn,
320320 # CHECK: ldmgt sp!, {r9}
321321 0x00 0x02 0xbd 0xc8
322322
323 # CHECK: cdp2 p10, #0, c6, c12, c0, #7
324 0xe0 0x6a 0x0c 0xfe
325
593593 IMM("jtblock_operand");
594594 IMM("nohash_imm");
595595 IMM("p_imm");
596 IMM("pf_imm");
596597 IMM("c_imm");
597598 IMM("coproc_option_imm");
598599 IMM("imod_op");