diff options
Diffstat (limited to 'test/MC/Mips/msa/set-msa-directive-bad.s')
-rw-r--r-- | test/MC/Mips/msa/set-msa-directive-bad.s | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/Mips/msa/set-msa-directive-bad.s b/test/MC/Mips/msa/set-msa-directive-bad.s new file mode 100644 index 0000000..02cb9a6 --- /dev/null +++ b/test/MC/Mips/msa/set-msa-directive-bad.s @@ -0,0 +1,11 @@ +# RUN: not llvm-mc %s -arch=mips -mcpu=mips32r2 2>%t1 +# RUN: FileCheck %s < %t1 + + .set nomsa + addvi.b $w14, $w12, 14 # CHECK: error: instruction requires a CPU feature not currently enabled + + .set msa + addvi.h $w26, $w17, 4 + + .set nomsa + addvi.w $w19, $w13, 11 # CHECK: error: instruction requires a CPU feature not currently enabled |