1 # RUN: llvm-mc -triple mblaze-unknown-unknown -show-encoding %s | FileCheck %s
3 # Test to ensure that all register and immediate operands can be parsed by
4 # the assembly parser correctly. Testing the parsing of FSL immediate
5 # values is done in a different test.
7 # TYPE A: OPCODE RD RA RB FLAGS
8 # BINARY: 000000 00000 00000 00000 00000000000
11 # BINARY: 000000 00000 00000 00000 00000000000
12 # CHECK: encoding: [0x00,0x00,0x00,0x00]
16 # BINARY: 000000 00001 00001 00001 00000000000
17 # CHECK: encoding: [0x00,0x21,0x08,0x00]
21 # BINARY: 000000 00010 00010 00010 00000000000
22 # CHECK: encoding: [0x00,0x42,0x10,0x00]
26 # BINARY: 000000 00011 00011 00011 00000000000
27 # CHECK: encoding: [0x00,0x63,0x18,0x00]
31 # BINARY: 000000 00100 00100 00100 00000000000
32 # CHECK: encoding: [0x00,0x84,0x20,0x00]
36 # BINARY: 000000 00101 00101 00101 00000000000
37 # CHECK: encoding: [0x00,0xa5,0x28,0x00]
41 # BINARY: 000000 00110 00110 00110 00000000000
42 # CHECK: encoding: [0x00,0xc6,0x30,0x00]
46 # BINARY: 000000 00111 00111 00111 00000000000
47 # CHECK: encoding: [0x00,0xe7,0x38,0x00]
51 # BINARY: 000000 01000 01000 01000 00000000000
52 # CHECK: encoding: [0x01,0x08,0x40,0x00]
56 # BINARY: 000000 01001 01001 01001 00000000000
57 # CHECK: encoding: [0x01,0x29,0x48,0x00]
61 # BINARY: 000000 01010 01010 01010 00000000000
62 # CHECK: encoding: [0x01,0x4a,0x50,0x00]
66 # BINARY: 000000 01011 01011 01011 00000000000
67 # CHECK: encoding: [0x01,0x6b,0x58,0x00]
71 # BINARY: 000000 01100 01100 01100 00000000000
72 # CHECK: encoding: [0x01,0x8c,0x60,0x00]
76 # BINARY: 000000 01101 01101 01101 00000000000
77 # CHECK: encoding: [0x01,0xad,0x68,0x00]
81 # BINARY: 000000 01110 01110 01110 00000000000
82 # CHECK: encoding: [0x01,0xce,0x70,0x00]
86 # BINARY: 000000 01111 01111 01111 00000000000
87 # CHECK: encoding: [0x01,0xef,0x78,0x00]
91 # BINARY: 000000 10000 10000 10000 00000000000
92 # CHECK: encoding: [0x02,0x10,0x80,0x00]
96 # BINARY: 000000 10001 10001 10001 00000000000
97 # CHECK: encoding: [0x02,0x31,0x88,0x00]
101 # BINARY: 000000 10010 10010 10010 00000000000
102 # CHECK: encoding: [0x02,0x52,0x90,0x00]
106 # BINARY: 000000 10011 10011 10011 00000000000
107 # CHECK: encoding: [0x02,0x73,0x98,0x00]
111 # BINARY: 000000 10100 10100 10100 00000000000
112 # CHECK: encoding: [0x02,0x94,0xa0,0x00]
116 # BINARY: 000000 10101 10101 10101 00000000000
117 # CHECK: encoding: [0x02,0xb5,0xa8,0x00]
121 # BINARY: 000000 10110 10110 10110 00000000000
122 # CHECK: encoding: [0x02,0xd6,0xb0,0x00]
126 # BINARY: 000000 10111 10111 10111 00000000000
127 # CHECK: encoding: [0x02,0xf7,0xb8,0x00]
131 # BINARY: 000000 11000 11000 11000 00000000000
132 # CHECK: encoding: [0x03,0x18,0xc0,0x00]
136 # BINARY: 000000 11001 11001 11001 00000000000
137 # CHECK: encoding: [0x03,0x39,0xc8,0x00]
141 # BINARY: 000000 11010 11010 11010 00000000000
142 # CHECK: encoding: [0x03,0x5a,0xd0,0x00]
146 # BINARY: 000000 11011 11011 11011 00000000000
147 # CHECK: encoding: [0x03,0x7b,0xd8,0x00]
151 # BINARY: 000000 11100 11100 11100 00000000000
152 # CHECK: encoding: [0x03,0x9c,0xe0,0x00]
156 # BINARY: 000000 11101 11101 11101 00000000000
157 # CHECK: encoding: [0x03,0xbd,0xe8,0x00]
161 # BINARY: 000000 11110 11110 11110 00000000000
162 # CHECK: encoding: [0x03,0xde,0xf0,0x00]
166 # BINARY: 000000 11111 11111 11111 00000000000
167 # CHECK: encoding: [0x03,0xff,0xf8,0x00]
171 # BINARY: 001000 00000 00000 0000000000000000
172 # CHECK: encoding: [0x20,0x00,0x00,0x00]
176 # BINARY: 001000 00000 00000 0000000000000001
177 # CHECK: encoding: [0x20,0x00,0x00,0x01]
181 # BINARY: 001000 00000 00000 0000000000000010
182 # CHECK: encoding: [0x20,0x00,0x00,0x02]
186 # BINARY: 001000 00000 00000 0000000000000100
187 # CHECK: encoding: [0x20,0x00,0x00,0x04]
191 # BINARY: 001000 00000 00000 0000000000001000
192 # CHECK: encoding: [0x20,0x00,0x00,0x08]
196 # BINARY: 001000 00000 00000 0000000000010000
197 # CHECK: encoding: [0x20,0x00,0x00,0x10]
201 # BINARY: 001000 00000 00000 0000000000100000
202 # CHECK: encoding: [0x20,0x00,0x00,0x20]
206 # BINARY: 001000 00000 00000 0000000001000000
207 # CHECK: encoding: [0x20,0x00,0x00,0x40]
211 # BINARY: 001000 00000 00000 0000000010000000
212 # CHECK: encoding: [0x20,0x00,0x00,0x80]
216 # BINARY: 001000 00000 00000 0000000100000000
217 # CHECK: encoding: [0x20,0x00,0x01,0x00]
221 # BINARY: 001000 00000 00000 0000001000000000
222 # CHECK: encoding: [0x20,0x00,0x02,0x00]
226 # BINARY: 001000 00000 00000 0000010000000000
227 # CHECK: encoding: [0x20,0x00,0x04,0x00]
231 # BINARY: 001000 00000 00000 0000100000000000
232 # CHECK: encoding: [0x20,0x00,0x08,0x00]
236 # BINARY: 001000 00000 00000 0001000000000000
237 # CHECK: encoding: [0x20,0x00,0x10,0x00]
241 # BINARY: 001000 00000 00000 0010000000000000
242 # CHECK: encoding: [0x20,0x00,0x20,0x00]
246 # BINARY: 001000 00000 00000 0100000000000000
247 # CHECK: encoding: [0x20,0x00,0x40,0x00]
251 # BINARY: 001000 00000 00000 1111111111111111
252 # CHECK: encoding: [0x20,0x00,0xff,0xff]
256 # BINARY: 001000 00000 00000 1111111111111110
257 # CHECK: encoding: [0x20,0x00,0xff,0xfe]
261 # BINARY: 001000 00000 00000 1111111111111100
262 # CHECK: encoding: [0x20,0x00,0xff,0xfc]
266 # BINARY: 001000 00000 00000 1111111111111000
267 # CHECK: encoding: [0x20,0x00,0xff,0xf8]
271 # BINARY: 001000 00000 00000 1111111111110000
272 # CHECK: encoding: [0x20,0x00,0xff,0xf0]
276 # BINARY: 001000 00000 00000 1111111111100000
277 # CHECK: encoding: [0x20,0x00,0xff,0xe0]
281 # BINARY: 001000 00000 00000 1111111111000000
282 # CHECK: encoding: [0x20,0x00,0xff,0xc0]
286 # BINARY: 001000 00000 00000 1111111110000000
287 # CHECK: encoding: [0x20,0x00,0xff,0x80]
291 # BINARY: 001000 00000 00000 1111111100000000
292 # CHECK: encoding: [0x20,0x00,0xff,0x00]
296 # BINARY: 001000 00000 00000 1111111000000000
297 # CHECK: encoding: [0x20,0x00,0xfe,0x00]
301 # BINARY: 001000 00000 00000 1111110000000000
302 # CHECK: encoding: [0x20,0x00,0xfc,0x00]
306 # BINARY: 001000 00000 00000 1111100000000000
307 # CHECK: encoding: [0x20,0x00,0xf8,0x00]
311 # BINARY: 001000 00000 00000 1111000000000000
312 # CHECK: encoding: [0x20,0x00,0xf0,0x00]
316 # BINARY: 001000 00000 00000 1110000000000000
317 # CHECK: encoding: [0x20,0x00,0xe0,0x00]
321 # BINARY: 001000 00000 00000 1100000000000000
322 # CHECK: encoding: [0x20,0x00,0xc0,0x00]
326 # BINARY: 001000 00000 00000 1000000000000000
327 # CHECK: encoding: [0x20,0x00,0x80,0x00]