xref: /aosp_15_r20/external/llvm/test/MC/Mips/set-softfloat-hardfloat.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc %s -triple=mips-unknown-linux -mcpu=mips32r2 -mattr=+soft-float | \
2*9880d681SAndroid Build Coastguard Worker# RUN:   FileCheck %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker  .set hardfloat
5*9880d681SAndroid Build Coastguard Worker  add.s $f2, $f2, $f2
6*9880d681SAndroid Build Coastguard Worker  sub.s $f2, $f2, $f2
7*9880d681SAndroid Build Coastguard Worker  .set softfloat
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker# CHECK: .set hardfloat
10*9880d681SAndroid Build Coastguard Worker# CHECK: add.s $f2, $f2, $f2
11*9880d681SAndroid Build Coastguard Worker# CHECK: sub.s $f2, $f2, $f2
12*9880d681SAndroid Build Coastguard Worker# CHECK: .set softfloat
13