summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/Mips/dsp
diff options
context:
space:
mode:
authorZlatko Buljan <Zlatko.Buljan@imgtec.com>2015-11-13 13:14:25 +0000
committerZlatko Buljan <Zlatko.Buljan@imgtec.com>2015-11-13 13:14:25 +0000
commit32fb5c40d239f85173149efb6b6ce4d657db4465 (patch)
treef82fe34d10d0217ffd648fbbe5f95b84fd01616d /llvm/test/MC/Mips/dsp
parentdd0eb2bbdd988778a515b5a9a65a2ed0d0376d0a (diff)
downloadbcm5719-llvm-32fb5c40d239f85173149efb6b6ce4d657db4465.tar.gz
bcm5719-llvm-32fb5c40d239f85173149efb6b6ce4d657db4465.zip
[mips][microMIPS] Implement SHRA[_R].PH, SHRAV[_R].PH, SHRAV[_R].QB, SHRAV_R.W, SHRA_R.W, SHRL.PH, SHRL.QB, SHRLV.PH and SHRLV.QB instructions
Differential Revision: http://reviews.llvm.org/D14010 llvm-svn: 253041
Diffstat (limited to 'llvm/test/MC/Mips/dsp')
-rw-r--r--llvm/test/MC/Mips/dsp/invalid.s21
1 files changed, 21 insertions, 0 deletions
diff --git a/llvm/test/MC/Mips/dsp/invalid.s b/llvm/test/MC/Mips/dsp/invalid.s
new file mode 100644
index 00000000000..9ab471e0100
--- /dev/null
+++ b/llvm/test/MC/Mips/dsp/invalid.s
@@ -0,0 +1,21 @@
+# RUN: not llvm-mc %s -triple=mips-unknown-unknown -show-encoding -mattr=dsp 2>%t1
+# RUN: FileCheck %s < %t1
+
+ shll.ph $3, $4, 16 # CHECK: :[[@LINE]]:19: error: expected 4-bit unsigned immediate
+ shll.ph $3, $4, -1 # CHECK: :[[@LINE]]:19: error: expected 4-bit unsigned immediate
+ shll_s.ph $3, $4, 16 # CHECK: :[[@LINE]]:21: error: expected 4-bit unsigned immediate
+ shll_s.ph $3, $4, -1 # CHECK: :[[@LINE]]:21: error: expected 4-bit unsigned immediate
+ shll.qb $3, $4, 8 # CHECK: :[[@LINE]]:19: error: expected 3-bit unsigned immediate
+ shll.qb $3, $4, -1 # CHECK: :[[@LINE]]:19: error: expected 3-bit unsigned immediate
+ // FIXME: Following invalid tests are temporarely disabled, until operand check for uimm5 is added
+ shll_s.w $3, $4, 32 # -CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
+ shll_s.w $3, $4, -1 # -CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
+ shra.ph $3, $4, 16 # CHECK: :[[@LINE]]:19: error: expected 4-bit unsigned immediate
+ shra.ph $3, $4, -1 # CHECK: :[[@LINE]]:19: error: expected 4-bit unsigned immediate
+ shra_r.ph $3, $4, 16 # CHECK: :[[@LINE]]:21: error: expected 4-bit unsigned immediate
+ shra_r.ph $3, $4, -1 # CHECK: :[[@LINE]]:21: error: expected 4-bit unsigned immediate
+ // FIXME: Following invalid tests are temporarely disabled, until operand check for uimm5 is added
+ shra_r.w $3, $4, 32 # -CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
+ shra_r.w $3, $4, -1 # -CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
+ shrl.qb $3, $4, 8 # CHECK: :[[@LINE]]:19: error: expected 3-bit unsigned immediate
+ shrl.qb $3, $4, -1 # CHECK: :[[@LINE]]:19: error: expected 3-bit unsigned immediate
OpenPOWER on IntegriCloud