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