This adds a MipsInstAlias which expands to XORi $reg,$reg,imm. For example, "xor $6, 0x3A" should be expanded to "xori $6, $6, 58".
This should work for all MIPS ISAs.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM
lib/Target/Mips/MipsInstrInfo.td | ||
---|---|---|
1583–1584 | Just to mention it: This isn't quite right for the 64-bit ISA's but it will do the correct thing as far as the assembler is concerned by virtue of having the same opcode. It's not a problem with any tools we currently develop so no changes required. |
Just to mention it: This isn't quite right for the 64-bit ISA's but it will do the correct thing as far as the assembler is concerned by virtue of having the same opcode. It's not a problem with any tools we currently develop so no changes required.