search for: targetinst32

Displaying 1 result from an estimated 1 matches for "targetinst32".

2018 Feb 25
0
CodeEmitterGen generates wrong code for getBinaryCodeForInstr
...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<16> imm_i16; let Inst{9-5} = rb; // operand 0 let Inst{4-0} = ra; // operand 1 let Inst{31-16} = imm_i16; // operand 2 } And this code was generated // op: rb -- Operand #0 op = getMachineOpVal...