xref: /aosp_15_r20/external/llvm/test/MC/Mips/msa/set-msa-directive-bad.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>%t1
2*9880d681SAndroid Build Coastguard Worker# RUN: FileCheck %s < %t1
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker    .set nomsa
5*9880d681SAndroid Build Coastguard Worker    addvi.b     $w14, $w12, 14 # CHECK: error: instruction requires a CPU feature not currently enabled
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker    .set msa
8*9880d681SAndroid Build Coastguard Worker    addvi.h     $w26, $w17, 4
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker    .set nomsa
11*9880d681SAndroid Build Coastguard Worker    addvi.w     $w19, $w13, 11 # CHECK: error: instruction requires a CPU feature not currently enabled
12