llvm-6502/test/MC/Mips/set-softfloat-hardfloat.s
Toma Tabacu a5f14070fa [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
2015-06-02 09:48:04 +00:00

13 lines
291 B
ArmAsm

# 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