diff options
| author | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-07-15 15:31:39 +0000 |
|---|---|---|
| committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2014-07-15 15:31:39 +0000 |
| commit | a6e125f07e7df0db2f828e0ce49f92f5b48a20bb (patch) | |
| tree | 77f1bf38e999cc6ce11145e84e7c331e067e5bfa /llvm | |
| parent | 53bc7a3330513b5b840b860ee4d55a2bae1dc86e (diff) | |
| download | bcm5719-llvm-a6e125f07e7df0db2f828e0ce49f92f5b48a20bb.tar.gz bcm5719-llvm-a6e125f07e7df0db2f828e0ce49f92f5b48a20bb.zip | |
[mips] Correct .MIPS.abiflags fp_abi field for -mfpxx and without .module
Summary: Previously all the test cases set it after initialization with '.module fp=xx'.
Differential Revision: http://reviews.llvm.org/D4489
llvm-svn: 213071
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp | 2 | ||||
| -rw-r--r-- | llvm/test/MC/Mips/mips_abi_flags_xx.s | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp index 765ac02df13..2bedb5960ff 100644 --- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -252,7 +252,7 @@ public: bool isABI_N32() const { return STI.getFeatureBits() & Mips::FeatureN32; } bool isABI_N64() const { return STI.getFeatureBits() & Mips::FeatureN64; } bool isABI_O32() const { return STI.getFeatureBits() & Mips::FeatureO32; } - bool isABI_FPXX() const { return false; } // TODO: add check for FeatureXX + bool isABI_FPXX() const { return STI.getFeatureBits() & Mips::FeatureFPXX; } bool useOddSPReg() const { return !(STI.getFeatureBits() & Mips::FeatureNoOddSPReg); diff --git a/llvm/test/MC/Mips/mips_abi_flags_xx.s b/llvm/test/MC/Mips/mips_abi_flags_xx.s index 9192d0c4800..d71eef37332 100644 --- a/llvm/test/MC/Mips/mips_abi_flags_xx.s +++ b/llvm/test/MC/Mips/mips_abi_flags_xx.s @@ -5,6 +5,10 @@ # RUN: llvm-readobj -sections -section-data -section-relocations - | \ # RUN: FileCheck %s -check-prefix=CHECK-OBJ +# RUN: llvm-mc /dev/null -arch=mips -mcpu=mips32 -mattr=fpxx -filetype=obj -o - | \ +# RUN: llvm-readobj -sections -section-data -section-relocations - | \ +# RUN: FileCheck %s -check-prefix=CHECK-OBJ + # CHECK-ASM: .module fp=xx # Checking if the Mips.abiflags were correctly emitted. |

