[PATCH] D20199: [mips][ias] Fix O32 .cprestore directive when inside .set noat region and offset is in range.

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Thu May 12 03:21:28 PDT 2016


dsanders created this revision.
dsanders added reviewers: emaste, sdardis, seanbruno.
dsanders added a subscriber: llvm-commits.
Herald added subscribers: sdardis, dsanders.

This expands on r269179 to fix an additional case that was not covered by our
tests. The assembler temporary is not needed when the .cprestore offset fits
inside a simm16 and it is not an error to use it inside a '.set noat' in this
case.

http://reviews.llvm.org/D20199

Files:
  lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
  lib/Target/Mips/MipsTargetStreamer.h
  test/MC/Mips/cprestore-noreorder-noat.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20199.57013.patch
Type: text/x-patch
Size: 6095 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160512/50c095af/attachment.bin>


More information about the llvm-commits mailing list