[PATCH] D15418: [mips][microMIPS] Implement LH, LHE, LHU and LHUE instructions
Zlatko Buljan via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 10 07:02:53 PST 2015
zbuljan created this revision.
zbuljan added reviewers: dsanders, hvarga, zoran.jovanovic.
zbuljan added subscribers: petarj, llvm-commits.
Herald added a subscriber: dsanders.
The patch implements microMIPSr6 LH, LHE, LHU and LHUE instructions.
There was a problem with previous implementation of this instructions (D9824) and because of that commit rL254897 was reverted.
After commit of previous patch, test-suite failed with error message in the form of:
fatal error: error in backend: Cannot select: t124: i32,ch = load<LD2[%d](tbaa=<0x94acc48>), sext from i16> t0, t2, undef:i32
There was problem with selecting lh and lhu instructions in LLVM backend.
For that reason I decided to revert commit rL254897 and make this patch which besides implementation of instructions and standard regression tests also includes CodeGen tests (lh_lhu.ll).
http://reviews.llvm.org/D15418
Files:
lib/Target/Mips/MicroMips32r6InstrFormats.td
lib/Target/Mips/MicroMips32r6InstrInfo.td
lib/Target/Mips/MicroMipsInstrInfo.td
lib/Target/Mips/MipsInstrInfo.td
test/CodeGen/Mips/llvm-ir/lh_lhu.ll
test/MC/Disassembler/Mips/micromips32r6/valid.txt
test/MC/Disassembler/Mips/micromips64r6/valid.txt
test/MC/Mips/micromips-invalid.s
test/MC/Mips/micromips32r6/invalid.s
test/MC/Mips/micromips32r6/valid.s
test/MC/Mips/micromips64r6/invalid.s
test/MC/Mips/micromips64r6/valid.s
test/MC/Mips/mips32r6/invalid.s
test/MC/Mips/mips64r6/invalid.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15418.42428.patch
Type: text/x-patch
Size: 19613 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151210/f9367667/attachment.bin>
More information about the llvm-commits
mailing list