1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00
llvm-mirror/test/MC/Mips/set-softfloat-hardfloat-bad.s

15 lines
609 B
ArmAsm
Raw Normal View History

# RUN: not llvm-mc %s -triple=mips-unknown-linux -mcpu=mips32 -mattr=+soft-float 2>%t1
# RUN: FileCheck %s < %t1
.set hardfloat
add.s $f2, $f2, $f2
# CHECK-NOT: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
sub.s $f2, $f2, $f2
# CHECK-NOT: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
.set softfloat
add.s $f2, $f2, $f2
# CHECK: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled
sub.s $f2, $f2, $f2
# CHECK: :[[@LINE-1]]:3: error: instruction requires a CPU feature not currently enabled