[PATCH] D18434: [mips] Range check simm9 and fix a bug this revealed.

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 24 03:19:43 PDT 2016


dsanders created this revision.
dsanders added a reviewer: vkalintiris.
dsanders added a subscriber: llvm-commits.
dsanders added a dependency: D18179: [mips] Correct MIPS16 jal/jalx to have uimm26 offsets and add MC layer range checks. NFC..
Herald added a subscriber: dsanders.

The bug was that microMIPS's [ls]w[lr]e instructions claimed to support a
12-bit offset when it is only 9-bit.

Depends on D18179

http://reviews.llvm.org/D18434

Files:
  lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  lib/Target/Mips/MicroMipsInstrInfo.td
  lib/Target/Mips/MipsEVAInstrInfo.td
  lib/Target/Mips/MipsInstrInfo.td
  test/MC/Mips/eva/invalid-noeva-wrong-error.s
  test/MC/Mips/eva/invalid_R6.s
  test/MC/Mips/micromips/invalid.s
  test/MC/Mips/micromips32r6/invalid.s
  test/MC/Mips/mips1/invalid-mips2-wrong-error.s
  test/MC/Mips/mips1/invalid-mips3-wrong-error.s
  test/MC/Mips/mips1/invalid-mips4-wrong-error.s
  test/MC/Mips/mips2/invalid-mips3-wrong-error.s
  test/MC/Mips/mips2/invalid-mips4-wrong-error.s
  test/MC/Mips/mips32r6/invalid-mips1-wrong-error.s
  test/MC/Mips/mips64r6/invalid-mips1-wrong-error.s
  test/MC/Mips/mips64r6/invalid-mips3-wrong-error.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18434.51528.patch
Type: text/x-patch
Size: 37058 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160324/79fe7971/attachment-0001.bin>


More information about the llvm-commits mailing list