mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-02 00:35:27 +00:00
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213071 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
160c4cb678
commit
6d6a055c60
@ -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);
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user