diff options
Diffstat (limited to 'test/MC/Mips/set-nodsp.s')
-rw-r--r-- | test/MC/Mips/set-nodsp.s | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/MC/Mips/set-nodsp.s b/test/MC/Mips/set-nodsp.s new file mode 100644 index 0000000..f98cefb --- /dev/null +++ b/test/MC/Mips/set-nodsp.s @@ -0,0 +1,12 @@ +# RUN: not llvm-mc %s -mcpu=mips32 -mattr=+dsp -triple mips-unknown-linux 2>%t1 +# RUN: FileCheck %s < %t1 + + lbux $7, $10($11) + + .set nodsp + lbux $6, $10($11) + # CHECK: error: instruction requires a CPU feature not currently enabled + + .set dsp + lbux $5, $10($11) + # CHECK-NOT: error: instruction requires a CPU feature not currently enabled |