[PATCH] D19906: [mips][microMIPS] Implement SLT, SLTI, SLTIU, SLTU microMIPS32r6 instructions
Hrvoje Varga via llvm-commits
llvm-commits at lists.llvm.org
Wed May 4 01:28:18 PDT 2016
hvarga created this revision.
hvarga added reviewers: dsanders, sdardis, zoran.jovanovic, zbuljan.
hvarga added subscribers: dsanders, sdardis, petarj, llvm-commits.
Herald added a reviewer: vkalintiris.
This patch implements microMIPS32r6 SLT, SLTI, SLTIU and SLTU instructions.
There was a problem with the previous implementation of this patch (D19354) and because of that commit rL267137 was reverted.
After committing of the previous patch, test-suite failed with error message in the form of:
```
fatal error: error in backend: Cannot select: t21: i32 = setcc t2, Constant:i32<6>, setgt:ch
```
There was a problem with selecting SLT instruction in LLVM backend.
For that reason, it is decided to revert commit rL267137 and make this patch which besides implementation of instructions and standard regression tests also includes one additional CodeGen test (slt.ll).
http://reviews.llvm.org/D19906
Files:
lib/Target/Mips/MicroMips32r6InstrInfo.td
lib/Target/Mips/MicroMipsInstrFormats.td
lib/Target/Mips/MicroMipsInstrInfo.td
lib/Target/Mips/MipsInstrInfo.td
test/CodeGen/Mips/brconlt.ll
test/CodeGen/Mips/seteq.ll
test/CodeGen/Mips/setltk.ll
test/CodeGen/Mips/setne.ll
test/CodeGen/Mips/slt.ll
test/MC/Disassembler/Mips/micromips32r6/valid.txt
test/MC/Mips/micromips32r6/valid.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19906.56103.patch
Type: text/x-patch
Size: 10276 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160504/f5d32b1c/attachment.bin>
More information about the llvm-commits
mailing list