search for: extload16_a_bytewrapper

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

2012 Jul 22
1
[LLVMdev] How to calculate the address in TableGen?
Hello everyone, I would like to ask a question about the address calculation in TableGen. I replace a definition in MipsInstrInfo.td: def : Pat<(i32 (extloadi16_a addr:$src)), (LHu addr:$src)>; to: def : Pat<(i32 (extloadi16_a addr:$src)), (OR (LBu addr:$src), (SLL (LBu addr:($src+1)), 8))>; However, it failed to compiled. It seems that ($src+1) is a wrong representation in TableGen.