The IMM bit is already being set in SICodeEmitter.
let mayStore = 1;
}
-/*XXX: We should be able to infer the imm bit based on the arg types */
multiclass SMRD_Helper <bits<5> op, string asm, RegisterClass dstClass,
ValueType vt> {
(ins SMRDmemrr:$src0),
asm,
[(set (vt dstClass:$dst), (constant_load ADDR_Reg:$src0))]
- > {
- let IMM = 0;
- }
+ >;
def _IMM : SMRD <
op,
(ins SMRDmemri:$src0),
asm,
[(set (vt dstClass:$dst), (constant_load ADDR_Offset8:$src0))]
- > {
- let IMM = 1;
- }
+ >;
}
include "SIInstrFormats.td"