[PATCH] D15744: [mips][microMIPS] Add CodeGen support for MUL* and DMUL* instructions

Zlatko Buljan via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 23 05:44:50 PST 2015


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

The patch adds CodeGen support for microMIPS32r6 MUL* and microMIPS64r6 DMUL* instructions:
- updated mul.ll with tests for microMIPSr6 MUL* and DMUL* instruction selection
- separated microMIPSr6 MUL* and DMUL* instructions from equivalent MIPS instructions using NotInMicroMips predicate
- added DAG patterns to description classes for proper selection of MUL* and DMUL* instructions
- implemented DMUL, DMUH, DMULU and DMUHU instructions for microMIPS64r6 and added tests for the standard encodings


http://reviews.llvm.org/D15744

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15744.43525.patch
Type: text/x-patch
Size: 11279 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151223/33e0c9aa/attachment.bin>


More information about the llvm-commits mailing list