[PATCH] D14018: [mips][ias] Range check uimm4 operands and fixed a bug this revealed.

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 23 04:33:44 PDT 2015


dsanders created this revision.
dsanders added a reviewer: vkalintiris.
dsanders added subscribers: atanasyan, llvm-commits.
dsanders added a dependency: D14016: [mips][ias] Range check uimm3 operands..
Herald added a subscriber: dsanders.

The bug was that the sldi instructions have immediate widths dependant on
their element size. So sldi.d has a 1-bit immediate and sldi.b has a 4-bit
immediate. All of these were using 4-bit immediates previously.

Depends on D14016

http://reviews.llvm.org/D14018

Files:
  lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  lib/Target/Mips/MipsInstrInfo.td
  lib/Target/Mips/MipsMSAInstrInfo.td
  test/MC/Mips/micromips/invalid.s
  test/MC/Mips/msa/invalid-64.s
  test/MC/Mips/msa/invalid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14018.38230.patch
Type: text/x-patch
Size: 9682 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151023/88352b8b/attachment.bin>


More information about the llvm-commits mailing list