Displaying 1 result from an estimated 1 matches for "multsrc1spec".
2017 Sep 25
1
TableGen questions.
...gle line. Code
follows (probably not correct due to name mangling).
class IO_MultSrc<bits<2> op0Type, RegisterClass Src0RC> {
dag insDefault = !if(!eq(op0Type, 0b01),
(ins SpecialReg:$dst, Src0RC:$a),
(ins Src0RC:$a));
...
}
multiclass MultSrc1Spec<bits<5> subOpcode, bits<2> op0t, string opcodeStr,
RegisterClass RegType> {
def _allspecial:
MultSrcOneDestInst<subOpcode, op0t, 0b00,
IO_MultSrc<op0t, SpecialReg>.outsDefault,
IO_MultSrc<op0t, SpecialReg>....