[PATCH] D20475: [mips] Enforce compact branch register restrictions

Simon Dardis via llvm-commits llvm-commits at lists.llvm.org
Fri May 20 10:05:31 PDT 2016


sdardis created this revision.
sdardis added reviewers: dsanders, vkalintiris.
sdardis added a subscriber: llvm-commits.
sdardis set the repository for this revision to rL LLVM.
Herald added subscribers: sdardis, dsanders.

Enforce compact branch register restrictions such as the use of the zero
register, both operands being the same register. Emit clear error in such
cases as the issue is subtle.

For bovc and bnvc, silently fixup such cases when emitting objects directly,
like LLVM started doing in rL269899.

Repository:
  rL LLVM

http://reviews.llvm.org/D20475

Files:
  lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp
  test/MC/Mips/mips32r6/invalid.s
  test/MC/Mips/mips32r6/valid-xfail.s
  test/MC/Mips/mips32r6/valid.s
  test/MC/Mips/mips64r6/invalid.s
  test/MC/Mips/mips64r6/valid-xfail.s
  test/MC/Mips/mips64r6/valid.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20475.57946.patch
Type: text/x-patch
Size: 20084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160520/250612da/attachment.bin>


More information about the llvm-commits mailing list