1 # RUN: not llvm-mc -arch=mips -mcpu=mips32 -mattr=+mt < %s 2>&1 | FileCheck %s
2 dmt 4 # CHECK: error: invalid operand for instruction
3 dmt $4, $5 # CHECK: error: invalid operand for instruction
4 dmt $5, 0($4) # CHECK: error: invalid operand for instruction
5 emt 4 # CHECK: error: invalid operand for instruction
6 emt $4, $5 # CHECK: error: invalid operand for instruction
7 emt $5, 0($5) # CHECK: error: invalid operand for instruction
8 dvpe 4 # CHECK: error: invalid operand for instruction
9 dvpe $4, $5 # CHECK: error: invalid operand for instruction
10 dvpe $5, 0($4) # CHECK: error: invalid operand for instruction
11 evpe 4 # CHECK: error: invalid operand for instruction
12 evpe $4, $5 # CHECK: error: invalid operand for instruction
13 evpe $5, 0($5) # CHECK: error: invalid operand for instruction
14 mftr $4, 0($5), 0, 0, 0 # CHECK: error: invalid operand for instruction
15 mftr $4, $5, 2, 0, 0 # CHECK: error: expected 1-bit unsigned immediate
16 mftr $4, $5, -1, 0, 0 # CHECK: error: expected 1-bit unsigned immediate
17 mftr $4, $5, 0, 8, 0 # CHECK: error: expected 3-bit unsigned immediate
18 mftr $4, $5, 0, -1, 0 # CHECK: error: expected 3-bit unsigned immediate
19 mftr $4, $4, 0, 0, 2 # CHECK: error: expected 1-bit unsigned immediate
20 mftr $4, $5, 0, 0, -1 # CHECK: error: expected 1-bit unsigned immediate
21 mttr $4, 0($5), 0, 0, 0 # CHECK: error: invalid operand for instruction
22 mttr $4, $5, 2, 0, 0 # CHECK: error: expected 1-bit unsigned immediate
23 mttr $4, $5, -1, 0, 0 # CHECK: error: expected 1-bit unsigned immediate
24 mttr $4, $5, 0, 8, 0 # CHECK: error: expected 3-bit unsigned immediate
25 mttr $4, $5, 0, -1, 0 # CHECK: error: expected 3-bit unsigned immediate
26 mttr $4, $4, 0, 0, 2 # CHECK: error: expected 1-bit unsigned immediate
27 mttr $4, $5, 0, 0, -1 # CHECK: error: expected 1-bit unsigned immediate