1 # RUN: llvm-mc -triple mblaze-unknown-unknown -show-encoding %s | FileCheck %s
3 # Test to ensure that all FSL immediate operands and FSL instructions
4 # can be parsed by the assembly parser correctly.
6 # TYPE F: OPCODE RD NCTAE FSL
7 # BINARY: 011011 00000 000000 00000 000000 0000
9 # TYPE FD: OPCODE RD RB NCTAE
10 # BINARY: 011011 00000 00000 00000 0 00000 00000
12 # TYPE FP: OPCODE RA NCTA FSL
13 # 000000 00000 00000 1 0000 0000000 0000
16 # BINARY: 011011 00000 000000 00000 000000 0000
17 # CHECK: encoding: [0x6c,0x00,0x00,0x00]
21 # BINARY: 011011 00000 000000 10000 000000 0000
22 # CHECK: encoding: [0x6c,0x00,0x40,0x00]
26 # BINARY: 011011 00000 000000 01000 000000 0000
27 # CHECK: encoding: [0x6c,0x00,0x20,0x00]
31 # BINARY: 011011 00000 000000 11000 000000 0000
32 # CHECK: encoding: [0x6c,0x00,0x60,0x00]
36 # BINARY: 011011 00000 000000 00100 000000 0000
37 # CHECK: encoding: [0x6c,0x00,0x10,0x00]
41 # BINARY: 011011 00000 000000 10100 000000 0000
42 # CHECK: encoding: [0x6c,0x00,0x50,0x00]
46 # BINARY: 011011 00000 000000 01100 000000 0000
47 # CHECK: encoding: [0x6c,0x00,0x30,0x00]
51 # BINARY: 011011 00000 000000 11100 000000 0000
52 # CHECK: encoding: [0x6c,0x00,0x70,0x00]
56 # BINARY: 011011 00000 000000 00010 000000 0000
57 # CHECK: encoding: [0x6c,0x00,0x08,0x00]
61 # BINARY: 011011 00000 000000 10010 000000 0000
62 # CHECK: encoding: [0x6c,0x00,0x48,0x00]
66 # BINARY: 011011 00000 000000 01010 000000 0000
67 # CHECK: encoding: [0x6c,0x00,0x28,0x00]
71 # BINARY: 011011 00000 000000 11010 000000 0000
72 # CHECK: encoding: [0x6c,0x00,0x68,0x00]
76 # BINARY: 011011 00000 000000 00110 000000 0000
77 # CHECK: encoding: [0x6c,0x00,0x18,0x00]
81 # BINARY: 011011 00000 000000 10110 000000 0000
82 # CHECK: encoding: [0x6c,0x00,0x58,0x00]
86 # BINARY: 011011 00000 000000 01110 000000 0000
87 # CHECK: encoding: [0x6c,0x00,0x38,0x00]
91 # BINARY: 011011 00000 000000 11110 000000 0000
92 # CHECK: encoding: [0x6c,0x00,0x78,0x00]
96 # BINARY: 011011 00000 000000 00001 000000 0000
97 # CHECK: encoding: [0x6c,0x00,0x04,0x00]
101 # BINARY: 011011 00000 000000 10001 000000 0000
102 # CHECK: encoding: [0x6c,0x00,0x44,0x00]
106 # BINARY: 011011 00000 000000 01001 000000 0000
107 # CHECK: encoding: [0x6c,0x00,0x24,0x00]
111 # BINARY: 011011 00000 000000 11001 000000 0000
112 # CHECK: encoding: [0x6c,0x00,0x64,0x00]
116 # BINARY: 011011 00000 000000 00101 000000 0000
117 # CHECK: encoding: [0x6c,0x00,0x14,0x00]
121 # BINARY: 011011 00000 000000 10101 000000 0000
122 # CHECK: encoding: [0x6c,0x00,0x54,0x00]
126 # BINARY: 011011 00000 000000 01101 000000 0000
127 # CHECK: encoding: [0x6c,0x00,0x34,0x00]
131 # BINARY: 011011 00000 000000 11101 000000 0000
132 # CHECK: encoding: [0x6c,0x00,0x74,0x00]
136 # BINARY: 011011 00000 000000 00011 000000 0000
137 # CHECK: encoding: [0x6c,0x00,0x0c,0x00]
141 # BINARY: 011011 00000 000000 10011 000000 0000
142 # CHECK: encoding: [0x6c,0x00,0x4c,0x00]
146 # BINARY: 011011 00000 000000 01011 000000 0000
147 # CHECK: encoding: [0x6c,0x00,0x2c,0x00]
151 # BINARY: 011011 00000 000000 11011 000000 0000
152 # CHECK: encoding: [0x6c,0x00,0x6c,0x00]
156 # BINARY: 011011 00000 000000 00111 000000 0000
157 # CHECK: encoding: [0x6c,0x00,0x1c,0x00]
161 # BINARY: 011011 00000 000000 10111 000000 0000
162 # CHECK: encoding: [0x6c,0x00,0x5c,0x00]
166 # BINARY: 011011 00000 000000 01111 000000 0000
167 # CHECK: encoding: [0x6c,0x00,0x3c,0x00]
171 # BINARY: 011011 00000 000000 11111 000000 0000
172 # CHECK: encoding: [0x6c,0x00,0x7c,0x00]
176 # BINARY: 010011 00000 00000 00001 0 00000 00000
177 # CHECK: encoding: [0x4c,0x00,0x08,0x00]
181 # BINARY: 010011 00000 00000 00001 0 10000 00000
182 # CHECK: encoding: [0x4c,0x00,0x0a,0x00]
186 # BINARY: 010011 00000 00000 00001 0 01000 00000
187 # CHECK: encoding: [0x4c,0x00,0x09,0x00]
191 # BINARY: 010011 00000 00000 00001 0 11000 00000
192 # CHECK: encoding: [0x4c,0x00,0x0b,0x00]
196 # BINARY: 010011 00000 00000 00001 0 00100 00000
197 # CHECK: encoding: [0x4c,0x00,0x08,0x80]
201 # BINARY: 010011 00000 00000 00001 0 10100 00000
202 # CHECK: encoding: [0x4c,0x00,0x0a,0x80]
206 # BINARY: 010011 00000 00000 00001 0 01100 00000
207 # CHECK: encoding: [0x4c,0x00,0x09,0x80]
211 # BINARY: 010011 00000 00000 00001 0 11100 00000
212 # CHECK: encoding: [0x4c,0x00,0x0b,0x80]
216 # BINARY: 010011 00000 00000 00001 0 00010 00000
217 # CHECK: encoding: [0x4c,0x00,0x08,0x40]
221 # BINARY: 010011 00000 00000 00001 0 10010 00000
222 # CHECK: encoding: [0x4c,0x00,0x0a,0x40]
226 # BINARY: 010011 00000 00000 00001 0 01010 00000
227 # CHECK: encoding: [0x4c,0x00,0x09,0x40]
231 # BINARY: 010011 00000 00000 00001 0 11010 00000
232 # CHECK: encoding: [0x4c,0x00,0x0b,0x40]
236 # BINARY: 010011 00000 00000 00001 0 00110 00000
237 # CHECK: encoding: [0x4c,0x00,0x08,0xc0]
241 # BINARY: 010011 00000 00000 00001 0 10110 00000
242 # CHECK: encoding: [0x4c,0x00,0x0a,0xc0]
246 # BINARY: 010011 00000 00000 00001 0 01110 00000
247 # CHECK: encoding: [0x4c,0x00,0x09,0xc0]
251 # BINARY: 010011 00000 00000 00001 0 11110 00000
252 # CHECK: encoding: [0x4c,0x00,0x0b,0xc0]
256 # BINARY: 010011 00000 00000 00001 0 00001 00000
257 # CHECK: encoding: [0x4c,0x00,0x08,0x20]
261 # BINARY: 010011 00000 00000 00001 0 10001 00000
262 # CHECK: encoding: [0x4c,0x00,0x0a,0x20]
266 # BINARY: 010011 00000 00000 00001 0 01001 00000
267 # CHECK: encoding: [0x4c,0x00,0x09,0x20]
271 # BINARY: 010011 00000 00000 00001 0 11001 00000
272 # CHECK: encoding: [0x4c,0x00,0x0b,0x20]
276 # BINARY: 010011 00000 00000 00001 0 00101 00000
277 # CHECK: encoding: [0x4c,0x00,0x08,0xa0]
281 # BINARY: 010011 00000 00000 00001 0 10101 00000
282 # CHECK: encoding: [0x4c,0x00,0x0a,0xa0]
286 # BINARY: 010011 00000 00000 00001 0 01101 00000
287 # CHECK: encoding: [0x4c,0x00,0x09,0xa0]
291 # BINARY: 010011 00000 00000 00001 0 11101 00000
292 # CHECK: encoding: [0x4c,0x00,0x0b,0xa0]
296 # BINARY: 010011 00000 00000 00001 0 00011 00000
297 # CHECK: encoding: [0x4c,0x00,0x08,0x60]
301 # BINARY: 010011 00000 00000 00001 0 10011 00000
302 # CHECK: encoding: [0x4c,0x00,0x0a,0x60]
306 # BINARY: 010011 00000 00000 00001 0 01011 00000
307 # CHECK: encoding: [0x4c,0x00,0x09,0x60]
311 # BINARY: 010011 00000 00000 00001 0 11011 00000
312 # CHECK: encoding: [0x4c,0x00,0x0b,0x60]
316 # BINARY: 010011 00000 00000 00001 0 00111 00000
317 # CHECK: encoding: [0x4c,0x00,0x08,0xe0]
321 # BINARY: 010011 00000 00000 00001 0 10111 00000
322 # CHECK: encoding: [0x4c,0x00,0x0a,0xe0]
326 # BINARY: 010011 00000 00000 00001 0 01111 00000
327 # CHECK: encoding: [0x4c,0x00,0x09,0xe0]
331 # BINARY: 010011 00000 00000 00001 0 11111 00000
332 # CHECK: encoding: [0x4c,0x00,0x0b,0xe0]
336 # BINARY: 011011 00000 00000 1 0000 0000000 0000
337 # CHECK: encoding: [0x6c,0x00,0x80,0x00]
341 # BINARY: 011011 00000 00000 1 0001 0000000 0000
342 # CHECK: encoding: [0x6c,0x00,0x88,0x00]
346 # BINARY: 011011 00000 00000 1 0100 0000000 0000
347 # CHECK: encoding: [0x6c,0x00,0xa0,0x00]
351 # BINARY: 011011 00000 00000 1 0101 0000000 0000
352 # CHECK: encoding: [0x6c,0x00,0xa8,0x00]
356 # BINARY: 011011 00000 00000 1 1000 0000000 0000
357 # CHECK: encoding: [0x6c,0x00,0xc0,0x00]
361 # BINARY: 011011 00000 00000 1 1001 0000000 0000
362 # CHECK: encoding: [0x6c,0x00,0xc8,0x00]
366 # BINARY: 011011 00000 00000 1 1100 0000000 0000
367 # CHECK: encoding: [0x6c,0x00,0xe0,0x00]
371 # BINARY: 011011 00000 00000 1 1101 0000000 0000
372 # CHECK: encoding: [0x6c,0x00,0xe8,0x00]
376 # BINARY: 011011 00000 00000 1 0010 0000000 0000
377 # CHECK: encoding: [0x6c,0x00,0x90,0x00]
381 # BINARY: 011011 00000 00000 1 0011 0000000 0000
382 # CHECK: encoding: [0x6c,0x00,0x98,0x00]
386 # BINARY: 011011 00000 00000 1 0110 0000000 0000
387 # CHECK: encoding: [0x6c,0x00,0xb0,0x00]
391 # BINARY: 011011 00000 00000 1 0111 0000000 0000
392 # CHECK: encoding: [0x6c,0x00,0xb8,0x00]
396 # BINARY: 011011 00000 00000 1 1010 0000000 0000
397 # CHECK: encoding: [0x6c,0x00,0xd0,0x00]
401 # BINARY: 011011 00000 00000 1 1011 0000000 0000
402 # CHECK: encoding: [0x6c,0x00,0xd8,0x00]
406 # BINARY: 011011 00000 00000 1 1110 0000000 0000
407 # CHECK: encoding: [0x6c,0x00,0xf0,0x00]
411 # BINARY: 011011 00000 00000 1 1111 0000000 0000
412 # CHECK: encoding: [0x6c,0x00,0xf8,0x00]
416 # BINARY: 010011 00000 00000 00001 1 0000 000000
417 # CHECK: encoding: [0x4c,0x00,0x0c,0x00]
421 # BINARY: 010011 00000 00000 00001 1 0001 000000
422 # CHECK: encoding: [0x4c,0x00,0x0c,0x40]
426 # BINARY: 010011 00000 00000 00001 1 0100 000000
427 # CHECK: encoding: [0x4c,0x00,0x0d,0x00]
431 # BINARY: 010011 00000 00000 00001 1 0101 000000
432 # CHECK: encoding: [0x4c,0x00,0x0d,0x40]
436 # BINARY: 010011 00000 00000 00001 1 1000 000000
437 # CHECK: encoding: [0x4c,0x00,0x0e,0x00]
441 # BINARY: 010011 00000 00000 00001 1 1001 000000
442 # CHECK: encoding: [0x4c,0x00,0x0e,0x40]
446 # BINARY: 010011 00000 00000 00001 1 1100 000000
447 # CHECK: encoding: [0x4c,0x00,0x0f,0x00]
451 # BINARY: 010011 00000 00000 00001 1 1101 000000
452 # CHECK: encoding: [0x4c,0x00,0x0f,0x40]
456 # BINARY: 010011 00000 00000 00001 1 0010 000000
457 # CHECK: encoding: [0x4c,0x00,0x0c,0x80]
461 # BINARY: 010011 00000 00000 00001 1 0011 000000
462 # CHECK: encoding: [0x4c,0x00,0x0c,0xc0]
466 # BINARY: 010011 00000 00000 00001 1 0110 000000
467 # CHECK: encoding: [0x4c,0x00,0x0d,0x80]
471 # BINARY: 010011 00000 00000 00001 1 0111 000000
472 # CHECK: encoding: [0x4c,0x00,0x0d,0xc0]
476 # BINARY: 010011 00000 00000 00001 1 1010 000000
477 # CHECK: encoding: [0x4c,0x00,0x0e,0x80]
481 # BINARY: 010011 00000 00000 00001 1 1011 000000
482 # CHECK: encoding: [0x4c,0x00,0x0e,0xc0]
486 # BINARY: 010011 00000 00000 00001 1 1110 000000
487 # CHECK: encoding: [0x4c,0x00,0x0f,0x80]
491 # BINARY: 010011 00000 00000 00001 1 1111 000000
492 # CHECK: encoding: [0x4c,0x00,0x0f,0xc0]
496 # BINARY: 011011 00000 000000 00000 000000 0001
497 # CHECK: encoding: [0x6c,0x00,0x00,0x01]
501 # BINARY: 011011 00000 000000 00000 000000 0010
502 # CHECK: encoding: [0x6c,0x00,0x00,0x02]
506 # BINARY: 011011 00000 000000 00000 000000 0011
507 # CHECK: encoding: [0x6c,0x00,0x00,0x03]
511 # BINARY: 011011 00000 000000 00000 000000 0100
512 # CHECK: encoding: [0x6c,0x00,0x00,0x04]
516 # BINARY: 011011 00000 000000 00000 000000 0101
517 # CHECK: encoding: [0x6c,0x00,0x00,0x05]
521 # BINARY: 011011 00000 000000 00000 000000 0110
522 # CHECK: encoding: [0x6c,0x00,0x00,0x06]
526 # BINARY: 011011 00000 000000 00000 000000 0111
527 # CHECK: encoding: [0x6c,0x00,0x00,0x07]
531 # BINARY: 011011 00000 000000 00000 000000 1000
532 # CHECK: encoding: [0x6c,0x00,0x00,0x08]
536 # BINARY: 011011 00000 000000 00000 000000 1001
537 # CHECK: encoding: [0x6c,0x00,0x00,0x09]
541 # BINARY: 011011 00000 000000 00000 000000 1010
542 # CHECK: encoding: [0x6c,0x00,0x00,0x0a]
546 # BINARY: 011011 00000 000000 00000 000000 1011
547 # CHECK: encoding: [0x6c,0x00,0x00,0x0b]
551 # BINARY: 011011 00000 000000 00000 000000 1100
552 # CHECK: encoding: [0x6c,0x00,0x00,0x0c]
556 # BINARY: 011011 00000 000000 00000 000000 1101
557 # CHECK: encoding: [0x6c,0x00,0x00,0x0d]
561 # BINARY: 011011 00000 000000 00000 000000 1110
562 # CHECK: encoding: [0x6c,0x00,0x00,0x0e]
566 # BINARY: 011011 00000 000000 00000 000000 1111
567 # CHECK: encoding: [0x6c,0x00,0x00,0x0f]