summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/AsmParser
diff options
context:
space:
mode:
authorToma Tabacu <toma.tabacu@imgtec.com>2015-05-07 10:29:52 +0000
committerToma Tabacu <toma.tabacu@imgtec.com>2015-05-07 10:29:52 +0000
commit506cfd0b2b9d65d584aaff2e8ac69ca76beb1f54 (patch)
tree9a5bee5c05d0f9ba7a27ccc0f11db50aedd24b5c /llvm/lib/Target/Mips/AsmParser
parent2ce89617c9f9bb536cdf2366082e20b86ba9e2b9 (diff)
downloadbcm5719-llvm-506cfd0b2b9d65d584aaff2e8ac69ca76beb1f54.tar.gz
bcm5719-llvm-506cfd0b2b9d65d584aaff2e8ac69ca76beb1f54.zip
[mips] Add the SoftFloat MipsSubtarget feature.
Summary: This will enable the IAS to reject floating point instructions if soft-float is enabled. Reviewers: dsanders, echristo Reviewed By: dsanders Subscribers: jfb, llvm-commits, mpf Differential Revision: http://reviews.llvm.org/D9053 llvm-svn: 236713
Diffstat (limited to 'llvm/lib/Target/Mips/AsmParser')
-rw-r--r--llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
index 7046b7053e8..1aa895d9ca8 100644
--- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -433,8 +433,10 @@ public:
bool inMips16Mode() const {
return STI.getFeatureBits() & Mips::FeatureMips16;
}
- // TODO: see how can we get this info.
- bool abiUsesSoftFloat() const { return false; }
+
+ bool abiUsesSoftFloat() const {
+ return (STI.getFeatureBits() & Mips::FeatureSoftFloat);
+ }
/// Warn if RegIndex is the same as the current AT.
void warnIfRegIndexIsAT(unsigned RegIndex, SMLoc Loc);
OpenPOWER on IntegriCloud