[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / Mips / micromips-dsp / invalid.s
blob05fc77440d3ef4007679d19a14908ab523c09c22
1 # RUN: not llvm-mc %s -triple=mips-unknown-linux -show-encoding -mcpu=mips32r6 -mattr=micromips -mattr=+dsp 2>%t1
2 # RUN: FileCheck %s < %t1
4 repl.ph $2, -513 # CHECK: :[[@LINE]]:15: error: expected 10-bit signed immediate
5 repl.ph $2, 512 # CHECK: :[[@LINE]]:15: error: expected 10-bit signed immediate
6 shll.ph $3, $4, 16 # CHECK: :[[@LINE]]:19: error: expected 4-bit unsigned immediate
7 shll.ph $3, $4, -1 # CHECK: :[[@LINE]]:19: error: expected 4-bit unsigned immediate
8 shll_s.ph $3, $4, 16 # CHECK: :[[@LINE]]:21: error: expected 4-bit unsigned immediate
9 shll_s.ph $3, $4, -1 # CHECK: :[[@LINE]]:21: error: expected 4-bit unsigned immediate
10 shll.qb $3, $4, 8 # CHECK: :[[@LINE]]:19: error: expected 3-bit unsigned immediate
11 shll.qb $3, $4, -1 # CHECK: :[[@LINE]]:19: error: expected 3-bit unsigned immediate
12 // FIXME: Following invalid tests are temporarely disabled, until operand check for uimm5 is added
13 shll_s.w $3, $4, 32 # -CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
14 shll_s.w $3, $4, -1 # -CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
15 shra.ph $3, $4, 16 # CHECK: :[[@LINE]]:19: error: expected 4-bit unsigned immediate
16 shra.ph $3, $4, -1 # CHECK: :[[@LINE]]:19: error: expected 4-bit unsigned immediate
17 shra_r.ph $3, $4, 16 # CHECK: :[[@LINE]]:21: error: expected 4-bit unsigned immediate
18 shra_r.ph $3, $4, -1 # CHECK: :[[@LINE]]:21: error: expected 4-bit unsigned immediate
19 // FIXME: Following invalid tests are temporarely disabled, until operand check for uimm5 is added
20 shra_r.w $3, $4, 32 # -CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
21 shra_r.w $3, $4, -1 # -CHECK: :[[@LINE]]:20: error: expected 5-bit unsigned immediate
22 shrl.qb $3, $4, 8 # CHECK: :[[@LINE]]:19: error: expected 3-bit unsigned immediate
23 shrl.qb $3, $4, -1 # CHECK: :[[@LINE]]:19: error: expected 3-bit unsigned immediate
24 shilo $ac1, 64 # CHECK: :[[@LINE]]:15: error: expected 6-bit signed immediate
25 shilo $ac1, -64 # CHECK: :[[@LINE]]:15: error: expected 6-bit signed immediate
26 # bposge32 is microMIPS DSP instruction but it is removed in Release 6
27 bposge32 342 # CHECK: :[[@LINE]]:{{[0-9]+}}: error: instruction requires a CPU feature not currently enabled