1 # RUN: not llvm-mc %s -triple=mips-unknown-unknown -show-encoding -mattr=dsp 2>%t1
2 # RUN: FileCheck %s < %t1
4 extp $
2, $ac1
, -1 # CHECK: :[[@LINE]]:18: error: expected 5-bit unsigned immediate
5 extp $
2, $ac1
, 32 # CHECK: :[[@LINE]]:18: error: expected 5-bit unsigned immediate
6 extpdp $
2, $ac1
, -1 # CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
7 extpdp $
2, $ac1
, 32 # CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
8 extr.w $
2, $ac1
, -1 # CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
9 extr.w $
2, $ac1
, 32 # CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
10 extr_r.w $
2, $ac1
, -1 # CHECK: :[[@LINE]]:22: error: expected 5-bit unsigned immediate
11 extr_r.w $
2, $ac1
, 32 # CHECK: :[[@LINE]]:22: error: expected 5-bit unsigned immediate
12 extr_rs.w $
2, $ac1
, -1 # CHECK: :[[@LINE]]:23: error: expected 5-bit unsigned immediate
13 extr_rs.w $
2, $ac1
, 32 # CHECK: :[[@LINE]]:23: error: expected 5-bit unsigned immediate
14 shll.ph $
3, $
4, 16 # CHECK: :[[@LINE]]:19: error: expected 4-bit unsigned immediate
15 shll.ph $
3, $
4, -1 # CHECK: :[[@LINE]]:19: error: expected 4-bit unsigned immediate
16 shll_s.ph $
3, $
4, 16 # CHECK: :[[@LINE]]:21: error: expected 4-bit unsigned immediate
17 shll_s.ph $
3, $
4, -1 # CHECK: :[[@LINE]]:21: error: expected 4-bit unsigned immediate
18 shll.qb $
3, $
4, 8 # CHECK: :[[@LINE]]:19: error: expected 3-bit unsigned immediate
19 shll.qb $
3, $
4, -1 # CHECK: :[[@LINE]]:19: error: expected 3-bit unsigned immediate
20 shll_s.w $
3, $
4, 32 # CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
21 shll_s.w $
3, $
4, -1 # CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
22 shra.ph $
3, $
4, 16 # CHECK: :[[@LINE]]:19: error: expected 4-bit unsigned immediate
23 shra.ph $
3, $
4, -1 # CHECK: :[[@LINE]]:19: error: expected 4-bit unsigned immediate
24 shra_r.ph $
3, $
4, 16 # CHECK: :[[@LINE]]:21: error: expected 4-bit unsigned immediate
25 shra_r.ph $
3, $
4, -1 # CHECK: :[[@LINE]]:21: error: expected 4-bit unsigned immediate
26 shra_r.w $
3, $
4, 32 # CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
27 shra_r.w $
3, $
4, -1 # CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
28 shrl.qb $
3, $
4, 8 # CHECK: :[[@LINE]]:19: error: expected 3-bit unsigned immediate
29 shrl.qb $
3, $
4, -1 # CHECK: :[[@LINE]]:19: error: expected 3-bit unsigned immediate
30 shilo $ac1
, 64 # CHECK: :[[@LINE]]:15: error: expected 6-bit signed immediate
31 shilo $ac1
, -64 # CHECK: :[[@LINE]]:15: error: expected 6-bit signed immediate
32 repl.qb $
2, -1 # CHECK: :[[@LINE]]:15: error: expected 8-bit unsigned immediate
33 repl.qb $
2, 256 # CHECK: :[[@LINE]]:15: error: expected 8-bit unsigned immediate
34 repl.ph $
2, -513 # CHECK: :[[@LINE]]:15: error: expected 10-bit signed immediate
35 repl.ph $
2, 512 # CHECK: :[[@LINE]]:15: error: expected 10-bit signed immediate
36 rddsp $
2, -1 # CHECK: :[[@LINE]]:13: error: expected 10-bit unsigned immediate
37 rddsp $
2, 1024 # CHECK: :[[@LINE]]:13: error: expected 10-bit unsigned immediate
38 wrdsp $
5, -1 # CHECK: :[[@LINE]]:13: error: expected 10-bit unsigned immediate
39 wrdsp $
5, 1024 # CHECK: :[[@LINE]]:13: error: expected 10-bit unsigned immediate