1 # RUN: llvm-mc -triple mblaze-unknown-unknown -show-encoding %s | FileCheck %s
3 # Test to ensure that all special instructions and special registers can be
4 # parsed by the assembly parser correctly.
6 # TYPE A: OPCODE RD RA RB FLAGS
7 # BINARY: 011011 00000 00000 00000 00000000000
10 # BINARY: 100101 00000 00000 10000 00000000000
11 # CHECK: encoding: [0x94,0x00,0x80,0x00]
15 # BINARY: 100101 00000 100010 000000000000000
16 # CHECK: encoding: [0x94,0x11,0x00,0x00]
20 # BINARY: 100101 00000 100000 000000000000000
21 # CHECK: encoding: [0x94,0x10,0x00,0x00]
25 # BINARY: 100101 00000 00000 11 00000000000000
26 # CHECK: encoding: [0x94,0x00,0xc0,0x00]
30 # BINARY: 100100 00000 00000 00001 00001100100
31 # CHECK: encoding: [0x90,0x00,0x08,0x64]
35 # BINARY: 100100 00000 00000 00001 00001100110
36 # CHECK: encoding: [0x90,0x00,0x08,0x66]
40 # BINARY: 100100 00000 00000 00001 00001110100
41 # CHECK: encoding: [0x90,0x00,0x08,0x74]
45 # BINARY: 100100 00000 00000 00001 00001101000
46 # CHECK: encoding: [0x90,0x00,0x08,0x68]
50 # BINARY: 100101 00001 00000 10000 00000000000
51 # CHECK: encoding: [0x94,0x20,0x80,0x00]
55 # BINARY: 100101 00001 00000 10000 00000000001
56 # CHECK: encoding: [0x94,0x20,0x80,0x01]
60 # BINARY: 100101 00001 00000 10000 00000000011
61 # CHECK: encoding: [0x94,0x20,0x80,0x03]
65 # BINARY: 100101 00001 00000 10000 00000000101
66 # CHECK: encoding: [0x94,0x20,0x80,0x05]
70 # BINARY: 100101 00001 00000 10000 00000000111
71 # CHECK: encoding: [0x94,0x20,0x80,0x07]
75 # BINARY: 100101 00001 00000 10000 00000001011
76 # CHECK: encoding: [0x94,0x20,0x80,0x0b]
80 # BINARY: 100101 00001 00000 10000 00000001101
81 # CHECK: encoding: [0x94,0x20,0x80,0x0d]
85 # BINARY: 100101 00001 00000 10010 00000000000
86 # CHECK: encoding: [0x94,0x20,0x90,0x00]
90 # BINARY: 100101 00001 00000 10010 00000000001
91 # CHECK: encoding: [0x94,0x20,0x90,0x01]
95 # BINARY: 100101 00001 00000 10010 00000000010
96 # CHECK: encoding: [0x94,0x20,0x90,0x02]
100 # BINARY: 100101 00001 00000 10010 00000000100
101 # CHECK: encoding: [0x94,0x20,0x90,0x04]
105 # BINARY: 100101 00001 00000 10010 00000000011
106 # CHECK: encoding: [0x94,0x20,0x90,0x03]
110 # BINARY: 100101 00001 00000 10100 00000000000
111 # CHECK: encoding: [0x94,0x20,0xa0,0x00]
115 # BINARY: 100101 00001 00000 10100 00000000001
116 # CHECK: encoding: [0x94,0x20,0xa0,0x01]
120 # BINARY: 100101 00001 00000 10100 00000000010
121 # CHECK: encoding: [0x94,0x20,0xa0,0x02]
125 # BINARY: 100101 00001 00000 10100 00000000011
126 # CHECK: encoding: [0x94,0x20,0xa0,0x03]
130 # BINARY: 100101 00001 00000 10100 00000000100
131 # CHECK: encoding: [0x94,0x20,0xa0,0x04]
135 # BINARY: 100101 00001 00000 10100 00000000101
136 # CHECK: encoding: [0x94,0x20,0xa0,0x05]
140 # BINARY: 100101 00001 00000 10100 00000000110
141 # CHECK: encoding: [0x94,0x20,0xa0,0x06]
145 # BINARY: 100101 00001 00000 10100 00000000111
146 # CHECK: encoding: [0x94,0x20,0xa0,0x07]
150 # BINARY: 100101 00001 00000 10100 00000001000
151 # CHECK: encoding: [0x94,0x20,0xa0,0x08]
155 # BINARY: 100101 00001 00000 10100 00000001001
156 # CHECK: encoding: [0x94,0x20,0xa0,0x09]
160 # BINARY: 100101 00001 00000 10100 00000001010
161 # CHECK: encoding: [0x94,0x20,0xa0,0x0a]
165 # BINARY: 100101 00001 00000 10100 00000001011
166 # CHECK: encoding: [0x94,0x20,0xa0,0x0b]