[PATCH] D16719: [mips][microMIPS] Add CodeGen support for AND*, OR16, OR*, XOR*, NOT16 and NOR instructions

Zlatko Buljan via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 29 02:48:27 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 AND16, ANDI16, AND, ANDI, OR16, OR, ORI, XOR16, XOR, XORI, NOT16 and NOR instructions:
- updated .ll files with tests for microMIPSr6 AND*, OR16, OR*, XOR*, NOT16 and NOR instructions
- added alias definitions for microMIPS and microMIPSr6 instructions
- added DAG pattern definitions for proper selection of instructions
- separated microMIPSr6 instructions from equivalent MIPS instructions using NotInMicroMips predicate
- added tests for the standard encodings

http://reviews.llvm.org/D16719

Files:
  lib/Target/Mips/InstPrinter/MipsInstPrinter.cpp
  lib/Target/Mips/MicroMips32r6InstrInfo.td
  lib/Target/Mips/MicroMipsInstrInfo.td
  lib/Target/Mips/MipsInstrInfo.td
  test/CodeGen/Mips/llvm-ir/and.ll
  test/CodeGen/Mips/llvm-ir/not.ll
  test/CodeGen/Mips/llvm-ir/or.ll
  test/CodeGen/Mips/llvm-ir/xor.ll
  test/MC/Disassembler/Mips/micromips32r3/valid-el.txt
  test/MC/Disassembler/Mips/micromips32r3/valid.txt
  test/MC/Disassembler/Mips/micromips32r6/valid.txt
  test/MC/Disassembler/Mips/micromips64r6/valid.txt
  test/MC/Mips/micromips-alu-instructions.s
  test/MC/Mips/micromips32r6/valid.s
  test/MC/Mips/micromips64r6/valid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16719.46366.patch
Type: text/x-patch
Size: 40119 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160129/411a4f7a/attachment-0001.bin>


More information about the llvm-commits mailing list