Displaying 1 result from an estimated 1 matches for "ldi16".
Did you mean:
gdi16
2018 Feb 25
0
CodeEmitterGen generates wrong code for getBinaryCodeForInstr
....
sample code:
def memsrc : Operand<i16> {
let PrintMethod = "printSrcMemOperand";
let MIOperandInfo = (ops GR16:$ra, i16imm:$imm_i16);
let ParserMatchClass = memAsmOperand;
}
def LOAD16m : Inst32rri<0x0, (outs GR16:$rb), (ins memsrc:$src2),
"ldi16 {$rb, $src2}",
[(set GR16:$rb, (load addr:$src2))]>;
class Inst32rri<bits<6> opcode, dag outs, dag ins, string asmstr, list<dag>
pattern>
: TargetInst32<opcode, outs, ins, asmstr, pattern> {
bits<5> rb;
bits<5> ra;
bits&...