1 # Instructions that are correctly rejected but emit a wrong or misleading error.
2 # RUN: not llvm-mc %s -triple=mips -show-encoding -mcpu=mips32r6 -mattr=micromips 2>%t1
3 # RUN: FileCheck %s < %t1
6 # The 10-bit immediate supported by the standard encodings cause us to emit
7 # the diagnostic for the 10-bit form. This isn't exactly wrong but it is
8 # misleading. Ideally, we'd emit every way to achieve a valid match instead
10 teq $
8, $
9, 16 # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
11 tge $
8, $
9, 16 # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
12 tgeu $
8, $
9, 16 # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
13 tlt $
8, $
9, 16 # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
14 tltu $
8, $
9, 16 # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
15 tne $
8, $
9, 16 # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
16 syscall
1024 # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
17 ldc2 $
1, -2049($
12) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
18 ldc2 $
1, 2048($
12) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
19 lwc2 $
1, -2049($
4) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
20 lwc2 $
1, 2048($
4) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
21 sdc2 $
1, -2049($
16) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
22 sdc2 $
1, 2048($
16) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
23 swc2 $
1, -2049($
17) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
24 swc2 $
1, 2048($
17) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
25 lwc2 $
11, -1025($
12) # CHECK: :[[@LINE]]:{{[0-9]+}}: error: instruction requires a CPU feature not currently enabled
26 lwc2 $
11, 1024($
12) # CHECK: :[[@LINE]]:{{[0-9]+}}: error: instruction requires a CPU feature not currently enabled
27 sc $
4, 512($
5) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
28 sc $
4, -513($
5) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
29 ll $
4, 512($
5) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
30 ll $
4, -513($
5) # CHECK: :[[@LINE]]:3: error: instruction requires a CPU feature not currently enabled
31 lwr $
4, 1($
5) # CHECK: :[[@LINE]]:11: error: invalid operand for instruction
32 lwl $
4, 1($
5) # CHECK: :[[@LINE]]:11: error: invalid operand for instruction
33 swr $
4, 1($
5) # CHECK: :[[@LINE]]:11: error: invalid operand for instruction
34 swl $
4, 1($
5) # CHECK: :[[@LINE]]:11: error: invalid operand for instruction