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