Displaying 1 result from an estimated 1 matches for "idxpb2inst".
2012 Sep 26
0
[LLVMdev] Folding nodes with more than one use during ISel
...tore i8 %neg, i8* %0, align 1, !tbaa !1
can be realised with the single CPU12 instruction which uses the indirect indexed addressing mode:
com [6,y]
I've defined a multiclass for this type of instruction in my InstrInfo.td and the relevant entry for this addressing mode is:
def IdxI16 : IdxPB2Inst<opcode, AddrModeIdxI16, (outs), (ins memsrc:$mem),
!strconcat (str, "\t[$mem]\t; IdxI16"),
[(store (OpNode (loadi8 (loadi16 addrIAny:$mem))),
(loadi16 addrIAny:$mem))>;
where loadi8 and loadi16...