1 # RUN: not llvm-mc -triple xtensa %s 2>&1 | FileCheck %s
5 # Out of range immediates
9 # CHECK: :[[#@LINE-1]]:14: error: expected immediate in range [-128, 127]
13 # CHECK: :[[#@LINE-1]]:14: error: expected immediate in range [-128, 127]
17 # CHECK: :[[#@LINE-1]]:15: error: expected immediate in range [-32768, 32512], first 8 bits should be zero
21 # CHECK: :[[#@LINE-1]]:14: error: expected immediate in range [1, 31]
25 # CHECK: :[[#@LINE-1]]:14: error: expected immediate in range [0, 15]
29 # CHECK: :[[#@LINE-1]]:14: error: expected immediate in range [0, 31]
33 # CHECK: :[[#@LINE-1]]:18: error: expected immediate in range [1, 16]
37 # CHECK: :[[#@LINE-1]]:13: error: expected immediate in range [0, 255]
41 # CHECK: :[[#@LINE-1]]:15: error: expected immediate in range [0, 510], first bit should be zero
45 # CHECK: :[[#@LINE-1]]:14: error: expected immediate in range [0, 1020], first 2 bits should be zero
49 # CHECK: :[[#@LINE-1]]:10: error: expected b4const immediate
53 # CHECK: :[[#@LINE-1]]:11: error: expected b4constu immediate
55 # Invalid number of operands
57 # CHECK: :[[#@LINE-1]]:1: error: too few operands for instruction
59 # CHECK: :[[#@LINE-1]]:17: error: invalid operand for instruction
63 # CHECK: :[[#@LINE-1]]:1: error: unrecognized instruction mnemonic
65 # Invalid operand types
67 # CHECK: :[[#@LINE-1]]:13: error: invalid operand for instruction
69 # CHECK: :[[#@LINE-1]]:14: error: expected immediate in range [-128, 127]
71 # Check invalid register names for different formats
72 # Instruction format RRR
74 # CHECK: :[[#@LINE-1]]:4: error: invalid operand for instruction
76 # CHECK: :[[#@LINE-1]]:9: error: invalid operand for instruction
78 # CHECK: :[[#@LINE-1]]:13: error: invalid operand for instruction
80 # Instruction format RRI8
82 # CHECK: :[[#@LINE-1]]:6: error: invalid operand for instruction
84 # CHECK: :[[#@LINE-1]]:10: error: invalid operand for instruction
86 # Instruction format RSR
88 # CHECK: :[[#@LINE-1]]:1: error: invalid register name
90 # CHECK: :[[#@LINE-1]]:9: error: invalid operand for instruction
92 # Instruction format BRI12
94 # CHECK: :[[#@LINE-1]]:6: error: invalid operand for instruction
95 # Instruction format BRI8
97 # CHECK: :[[#@LINE-1]]:7: error: invalid operand for instruction
99 # Instruction format CALLX
101 # CHECK: :[[#@LINE-1]]:8: error: invalid operand for instruction
103 # Check invalid operands order for different formats
104 # Instruction format RRI8
106 # CHECK: :[[#@LINE-1]]:10: error: invalid operand for instruction
108 # Instruction format RSR
110 # CHECK: :[[#@LINE-1]]:5: error: invalid operand for instruction
112 # Instruction format BRI12
114 # CHECK: :[[#@LINE-1]]:6: error: invalid operand for instruction
116 # Instruction format BRI8
118 # CHECK: :[[#@LINE-1]]:7: error: invalid operand for instruction
120 # CHECK: :[[#@LINE-1]]:19: error: unknown operand