[PATCH] D16676: [mips][microMIPS] Add CodeGen support for SUBU16, SUB, SUBU, DSUB and DSUBU instructions

Zlatko Buljan via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 01:21:26 PST 2016


zbuljan created this revision.
zbuljan added reviewers: dsanders, hvarga, zoran.jovanovic.
zbuljan added subscribers: petarj, llvm-commits.
Herald added a reviewer: vkalintiris.
Herald added a subscriber: dsanders.

The patch adds CodeGen support for microMIPSr6 SUBU16, SUB, SUBU, DSUB and DSUBU instructions:
- updated sub.ll with tests for microMIPSr6 SUBU16, SUB, SUBU, DSUB and DSUBU instruction selection
- separated microMIPS64r6 DSUB and DSUBU instructions from equivalent MIPS64 instructions using NotInMicroMips predicate
- added DAG patterns using MipsPat for proper selection of instructions
- implemented DSUB and DSUBU instructions for microMIPS64r6 and added tests for the standard encodings


http://reviews.llvm.org/D16676

Files:
  lib/Target/Mips/MicroMips32r6InstrInfo.td
  lib/Target/Mips/MicroMips64r6InstrFormats.td
  lib/Target/Mips/MicroMips64r6InstrInfo.td
  lib/Target/Mips/MicroMipsInstrInfo.td
  lib/Target/Mips/Mips64InstrInfo.td
  lib/Target/Mips/MipsInstrInfo.td
  test/CodeGen/Mips/llvm-ir/sub.ll
  test/MC/Disassembler/Mips/micromips64r6/valid.txt
  test/MC/Mips/micromips64r6/valid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16676.46241.patch
Type: text/x-patch
Size: 18481 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160128/8a53a508/attachment.bin>


More information about the llvm-commits mailing list