[PATCH] [mips] [IAS] Add support for the .module softfloat/hardfloat directives.

Toma Tabacu toma.tabacu at imgtec.com
Tue Jun 23 05:56:56 PDT 2015


Fixed restoration of previous hardfloat settings:

- The settings aren't actually changed, it's just that when in soft-float they are ignored.
- emitDirectiveModule{SoftFloat,HardFloat}() doesn't change the MipsABIFlagsSection data anymore, it only prints it.
- That data is changed by setting/clearing the soft-float bit in STI.FeatureBits and then calling updateABIInfo().
- updateABIInfo() uses the update mechanism from MipsABIFlagsSection to properly update.

Changed test to use -mips-abi-flags feature of llvm-readobj.
Made the module-hardfloat.s test more thorough.
Rebased on top of http://reviews.llvm.org/D10641, http://reviews.llvm.org/D10642, and http://reviews.llvm.org/D10643, which fix the other .module directives.


http://reviews.llvm.org/D9073

Files:
  lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
  lib/Target/Mips/MipsTargetStreamer.h
  test/MC/Mips/module-hardfloat.s
  test/MC/Mips/module-softfloat.s

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9073.28230.patch
Type: text/x-patch
Size: 6299 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150623/9095d464/attachment.bin>


More information about the llvm-commits mailing list