xref: /aosp_15_r20/external/llvm/test/MC/Mips/set-nodsp.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc %s -mcpu=mips32 -mattr=+dsp -triple mips-unknown-linux 2>%t1
2*9880d681SAndroid Build Coastguard Worker# RUN: FileCheck %s < %t1
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker  lbux    $7, $10($11)
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker  .set nodsp
7*9880d681SAndroid Build Coastguard Worker  lbux    $6, $10($11)
8*9880d681SAndroid Build Coastguard Worker  # CHECK: error: instruction requires a CPU feature not currently enabled
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker  .set dsp
11*9880d681SAndroid Build Coastguard Worker  lbux    $5, $10($11)
12*9880d681SAndroid Build Coastguard Worker  # CHECK-NOT: error: instruction requires a CPU feature not currently enabled
13