1 # RUN: llvm-mc -triple mblaze-unknown-unknown -show-encoding %s | FileCheck %s
3 # Test to make sure that all of the TYPE-A instructions supported by
4 # the Microblaze can be parsed by the assembly parser.
6 # TYPE A: OPCODE RD RA RB FLAGS
7 # BINARY: 000000 00000 00000 00000 00000000000
10 # BINARY: 100111 00000 00010 00011 00000000000
11 # CHECK: encoding: [0x9c,0x02,0x18,0x00]
15 # BINARY: 100111 00101 00010 00011 00000000000
16 # CHECK: encoding: [0x9c,0xa2,0x18,0x00]
20 # BINARY: 100111 00100 00010 00011 00000000000
21 # CHECK: encoding: [0x9c,0x82,0x18,0x00]
25 # BINARY: 100111 00011 00010 00011 00000000000
26 # CHECK: encoding: [0x9c,0x62,0x18,0x00]
30 # BINARY: 100111 00010 00010 00011 00000000000
31 # CHECK: encoding: [0x9c,0x42,0x18,0x00]
35 # BINARY: 100111 00001 00010 00011 00000000000
36 # CHECK: encoding: [0x9c,0x22,0x18,0x00]
40 # BINARY: 100111 10000 00010 00011 00000000000
41 # CHECK: encoding: [0x9e,0x02,0x18,0x00]
45 # BINARY: 100111 10101 00010 00011 00000000000
46 # CHECK: encoding: [0x9e,0xa2,0x18,0x00]
50 # BINARY: 100111 10100 00010 00011 00000000000
51 # CHECK: encoding: [0x9e,0x82,0x18,0x00]
55 # BINARY: 100111 10011 00010 00011 00000000000
56 # CHECK: encoding: [0x9e,0x62,0x18,0x00]
60 # BINARY: 100111 10010 00010 00011 00000000000
61 # CHECK: encoding: [0x9e,0x42,0x18,0x00]
65 # BINARY: 100111 10001 00010 00011 00000000000
66 # CHECK: encoding: [0x9e,0x22,0x18,0x00]
70 # BINARY: 100110 00000 00000 00011 00000000000
71 # CHECK: encoding: [0x98,0x00,0x18,0x00]
75 # BINARY: 100110 00000 01000 00011 00000000000
76 # CHECK: encoding: [0x98,0x08,0x18,0x00]
80 # BINARY: 100110 00000 10000 00011 00000000000
81 # CHECK: encoding: [0x98,0x10,0x18,0x00]
85 # BINARY: 100110 00000 11000 00011 00000000000
86 # CHECK: encoding: [0x98,0x18,0x18,0x00]
90 # BINARY: 100110 01111 10100 00011 00000000000
91 # CHECK: encoding: [0x99,0xf4,0x18,0x00]
95 # BINARY: 100110 01111 11100 00011 00000000000
96 # CHECK: encoding: [0x99,0xfc,0x18,0x00]
100 # BINARY: 100110 01111 01100 00011 00000000000
101 # CHECK: encoding: [0x99,0xec,0x18,0x00]
105 # BINARY: 101111 00000 00010 0000000000000000
106 # CHECK: encoding: [0xbc,0x02,0x00,0x00]
110 # BINARY: 101111 00101 00010 0000000000000000
111 # CHECK: encoding: [0xbc,0xa2,0x00,0x00]
115 # BINARY: 101111 00100 00010 0000000000000000
116 # CHECK: encoding: [0xbc,0x82,0x00,0x00]
120 # BINARY: 101111 00011 00010 0000000000000000
121 # CHECK: encoding: [0xbc,0x62,0x00,0x00]
125 # BINARY: 101111 00010 00010 0000000000000000
126 # CHECK: encoding: [0xbc,0x42,0x00,0x00]
130 # BINARY: 101111 00001 00010 0000000000000000
131 # CHECK: encoding: [0xbc,0x22,0x00,0x00]
135 # BINARY: 101111 10000 00010 0000000000000000
136 # CHECK: encoding: [0xbe,0x02,0x00,0x00]
140 # BINARY: 101111 10101 00010 0000000000000000
141 # CHECK: encoding: [0xbe,0xa2,0x00,0x00]
145 # BINARY: 101111 10100 00010 0000000000000000
146 # CHECK: encoding: [0xbe,0x82,0x00,0x00]
150 # BINARY: 101111 10011 00010 0000000000000000
151 # CHECK: encoding: [0xbe,0x62,0x00,0x00]
155 # BINARY: 101111 10010 00010 0000000000000000
156 # CHECK: encoding: [0xbe,0x42,0x00,0x00]
160 # BINARY: 101111 10001 00010 0000000000000000
161 # CHECK: encoding: [0xbe,0x22,0x00,0x00]
165 # BINARY: 101110 00000 00000 0000000000000000
166 # CHECK: encoding: [0xb8,0x00,0x00,0x00]
170 # BINARY: 101110 00000 01000 0000000000000000
171 # CHECK: encoding: [0xb8,0x08,0x00,0x00]
175 # BINARY: 101110 00000 10000 0000000000000000
176 # CHECK: encoding: [0xb8,0x10,0x00,0x00]
180 # BINARY: 101110 00000 11000 0000000000000000
181 # CHECK: encoding: [0xb8,0x18,0x00,0x00]
185 # BINARY: 101110 01111 10100 0000000000000000
186 # CHECK: encoding: [0xb9,0xf4,0x00,0x00]
190 # BINARY: 101110 01111 11100 0000000000000000
191 # CHECK: encoding: [0xb9,0xfc,0x00,0x00]
195 # BINARY: 101110 01111 01100 0000000000000000
196 # CHECK: encoding: [0xb9,0xec,0x00,0x00]