summaryrefslogtreecommitdiffstats
path: root/test/MC/Mips/set-softfloat-hardfloat.s
diff options
context:
space:
mode:
authorToma Tabacu <toma.tabacu@imgtec.com>2015-06-02 09:48:04 +0000
committerToma Tabacu <toma.tabacu@imgtec.com>2015-06-02 09:48:04 +0000
commita5f14070fa1350df28c79a9ce8e0d8f21ec8b7c3 (patch)
tree39b5fdfd7b43168ffaca12960f0ec6ca7d3d02d6 /test/MC/Mips/set-softfloat-hardfloat.s
parentd929045eb54ed81673198d358b53b5e40d182fd6 (diff)
[mips] [IAS] Add support for the .set softfloat/hardfloat directives.
Summary: These directives are used to set the current value of the SoftFloat feature. Reviewers: dsanders Reviewed By: dsanders Subscribers: llvm-commits, mpf Differential Revision: http://reviews.llvm.org/D9074 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238813 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/Mips/set-softfloat-hardfloat.s')
-rw-r--r--test/MC/Mips/set-softfloat-hardfloat.s12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/MC/Mips/set-softfloat-hardfloat.s b/test/MC/Mips/set-softfloat-hardfloat.s
new file mode 100644
index 000000000000..ffb10f3ec580
--- /dev/null
+++ b/test/MC/Mips/set-softfloat-hardfloat.s
@@ -0,0 +1,12 @@
+# RUN: llvm-mc %s -triple=mips-unknown-linux -mcpu=mips32r2 -mattr=+soft-float | \
+# RUN: FileCheck %s
+
+ .set hardfloat
+ add.s $f2, $f2, $f2
+ sub.s $f2, $f2, $f2
+ .set softfloat
+
+# CHECK: .set hardfloat
+# CHECK: add.s $f2, $f2, $f2
+# CHECK: sub.s $f2, $f2, $f2
+# CHECK: .set softfloat