all repos — mgba @ bb793348569edd02ab448a72b1e4e288d73bd243

mGBA Game Boy Advance Emulator

src/arm/emitter-arm.h (view raw)

  1/* Copyright (c) 2013-2014 Jeffrey Pfau
  2 *
  3 * This Source Code Form is subject to the terms of the Mozilla Public
  4 * License, v. 2.0. If a copy of the MPL was not distributed with this
  5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  6#ifndef EMITTER_ARM_H
  7#define EMITTER_ARM_H
  8
  9#include "emitter-inlines.h"
 10
 11#define DECLARE_INSTRUCTION_ARM(EMITTER, NAME) \
 12	EMITTER ## NAME
 13
 14#define DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, ALU) \
 15	DO_8(DECLARE_INSTRUCTION_ARM(EMITTER, ALU ## I)), \
 16	DO_8(DECLARE_INSTRUCTION_ARM(EMITTER, ALU ## I))
 17
 18#define DECLARE_ARM_ALU_BLOCK(EMITTER, ALU, EX1, EX2, EX3, EX4) \
 19	DECLARE_INSTRUCTION_ARM(EMITTER, ALU ## _LSL), \
 20	DECLARE_INSTRUCTION_ARM(EMITTER, ALU ## _LSL), \
 21	DECLARE_INSTRUCTION_ARM(EMITTER, ALU ## _LSR), \
 22	DECLARE_INSTRUCTION_ARM(EMITTER, ALU ## _LSR), \
 23	DECLARE_INSTRUCTION_ARM(EMITTER, ALU ## _ASR), \
 24	DECLARE_INSTRUCTION_ARM(EMITTER, ALU ## _ASR), \
 25	DECLARE_INSTRUCTION_ARM(EMITTER, ALU ## _ROR), \
 26	DECLARE_INSTRUCTION_ARM(EMITTER, ALU ## _ROR), \
 27	DECLARE_INSTRUCTION_ARM(EMITTER, ALU ## _LSL), \
 28	DECLARE_INSTRUCTION_ARM(EMITTER, EX1), \
 29	DECLARE_INSTRUCTION_ARM(EMITTER, ALU ## _LSR), \
 30	DECLARE_INSTRUCTION_ARM(EMITTER, EX2), \
 31	DECLARE_INSTRUCTION_ARM(EMITTER, ALU ## _ASR), \
 32	DECLARE_INSTRUCTION_ARM(EMITTER, EX3), \
 33	DECLARE_INSTRUCTION_ARM(EMITTER, ALU ## _ROR), \
 34	DECLARE_INSTRUCTION_ARM(EMITTER, EX4)
 35
 36#define DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, NAME, P, U, W) \
 37	DO_8(DECLARE_INSTRUCTION_ARM(EMITTER, NAME ## I ## P ## U ## W)), \
 38	DO_8(DECLARE_INSTRUCTION_ARM(EMITTER, NAME ## I ## P ## U ## W))
 39
 40#define DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, NAME, P, U, W) \
 41	DECLARE_INSTRUCTION_ARM(EMITTER, NAME ## _LSL_ ## P ## U ## W), \
 42	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
 43	DECLARE_INSTRUCTION_ARM(EMITTER, NAME ## _LSR_ ## P ## U ## W), \
 44	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
 45	DECLARE_INSTRUCTION_ARM(EMITTER, NAME ## _ASR_ ## P ## U ## W), \
 46	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
 47	DECLARE_INSTRUCTION_ARM(EMITTER, NAME ## _ROR_ ## P ## U ## W), \
 48	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
 49	DECLARE_INSTRUCTION_ARM(EMITTER, NAME ## _LSL_ ## P ## U ## W), \
 50	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
 51	DECLARE_INSTRUCTION_ARM(EMITTER, NAME ## _LSR_ ## P ## U ## W), \
 52	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
 53	DECLARE_INSTRUCTION_ARM(EMITTER, NAME ## _ASR_ ## P ## U ## W), \
 54	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
 55	DECLARE_INSTRUCTION_ARM(EMITTER, NAME ## _ROR_ ## P ## U ## W), \
 56	DECLARE_INSTRUCTION_ARM(EMITTER, ILL)
 57
 58#define DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, NAME, MODE, W) \
 59	DO_8(DECLARE_INSTRUCTION_ARM(EMITTER, NAME ## MODE ## W)), \
 60	DO_8(DECLARE_INSTRUCTION_ARM(EMITTER, NAME ## MODE ## W))
 61
 62#define DECLARE_ARM_BRANCH_BLOCK(EMITTER, NAME) \
 63	DO_256(DECLARE_INSTRUCTION_ARM(EMITTER, NAME))
 64
 65// TODO: Support coprocessors
 66#define DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, NAME, P, U, N, W) \
 67	DO_8(DECLARE_INSTRUCTION_ARM(EMITTER, NAME)), \
 68	DO_8(DECLARE_INSTRUCTION_ARM(EMITTER, NAME))
 69
 70#define DECLARE_ARM_COPROCESSOR_BLOCK(EMITTER, NAME1, NAME2) \
 71	DO_8(DO_8(DO_INTERLACE(DECLARE_INSTRUCTION_ARM(EMITTER, NAME1), DECLARE_INSTRUCTION_ARM(EMITTER, NAME2))))
 72
 73#define DECLARE_ARM_SWI_BLOCK(EMITTER) \
 74	DO_256(DECLARE_INSTRUCTION_ARM(EMITTER, SWI))
 75
 76#define DECLARE_ARM_EMITTER_BLOCK(EMITTER) \
 77	DECLARE_ARM_ALU_BLOCK(EMITTER, AND, MUL, STRH, ILL, ILL), \
 78	DECLARE_ARM_ALU_BLOCK(EMITTER, ANDS, MULS, LDRH, LDRSB, LDRSH), \
 79	DECLARE_ARM_ALU_BLOCK(EMITTER, EOR, MLA, STRH, ILL, ILL), \
 80	DECLARE_ARM_ALU_BLOCK(EMITTER, EORS, MLAS, LDRH, LDRSB, LDRSH), \
 81	DECLARE_ARM_ALU_BLOCK(EMITTER, SUB, ILL, STRHI, ILL, ILL), \
 82	DECLARE_ARM_ALU_BLOCK(EMITTER, SUBS, ILL, LDRHI, LDRSBI, LDRSHI), \
 83	DECLARE_ARM_ALU_BLOCK(EMITTER, RSB, ILL, STRHI, ILL, ILL), \
 84	DECLARE_ARM_ALU_BLOCK(EMITTER, RSBS, ILL, LDRHI, LDRSBI, LDRSHI), \
 85	DECLARE_ARM_ALU_BLOCK(EMITTER, ADD, UMULL, STRHU, ILL, ILL), \
 86	DECLARE_ARM_ALU_BLOCK(EMITTER, ADDS, UMULLS, LDRHU, LDRSBU, LDRSHU), \
 87	DECLARE_ARM_ALU_BLOCK(EMITTER, ADC, UMLAL, STRHU, ILL, ILL), \
 88	DECLARE_ARM_ALU_BLOCK(EMITTER, ADCS, UMLALS, LDRHU, LDRSBU, LDRSHU), \
 89	DECLARE_ARM_ALU_BLOCK(EMITTER, SBC, SMULL, STRHIU, ILL, ILL), \
 90	DECLARE_ARM_ALU_BLOCK(EMITTER, SBCS, SMULLS, LDRHIU, LDRSBIU, LDRSHIU), \
 91	DECLARE_ARM_ALU_BLOCK(EMITTER, RSC, SMLAL, STRHIU, ILL, ILL), \
 92	DECLARE_ARM_ALU_BLOCK(EMITTER, RSCS, SMLALS, LDRHIU, LDRSBIU, LDRSHIU), \
 93	DECLARE_INSTRUCTION_ARM(EMITTER, MRS), \
 94	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
 95	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
 96	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
 97	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
 98	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
 99	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
100	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
101	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
102	DECLARE_INSTRUCTION_ARM(EMITTER, SWP), \
103	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
104	DECLARE_INSTRUCTION_ARM(EMITTER, STRHP), \
105	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
106	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
107	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
108	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
109	DECLARE_ARM_ALU_BLOCK(EMITTER, TST, ILL, LDRHP, LDRSBP, LDRSHP), \
110	DECLARE_INSTRUCTION_ARM(EMITTER, MSR), \
111	DECLARE_INSTRUCTION_ARM(EMITTER, BX), \
112	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
113	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
114	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
115	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
116	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
117	DECLARE_INSTRUCTION_ARM(EMITTER, BKPT), \
118	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
119	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
120	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
121	DECLARE_INSTRUCTION_ARM(EMITTER, STRHPW), \
122	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
123	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
124	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
125	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
126	DECLARE_ARM_ALU_BLOCK(EMITTER, TEQ, ILL, LDRHPW, LDRSBPW, LDRSHPW), \
127	DECLARE_INSTRUCTION_ARM(EMITTER, MRSR), \
128	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
129	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
130	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
131	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
132	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
133	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
134	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
135	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
136	DECLARE_INSTRUCTION_ARM(EMITTER, SWPB), \
137	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
138	DECLARE_INSTRUCTION_ARM(EMITTER, STRHIP), \
139	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
140	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
141	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
142	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
143	DECLARE_ARM_ALU_BLOCK(EMITTER, CMP, ILL, LDRHIP, LDRSBIP, LDRSHIP), \
144	DECLARE_INSTRUCTION_ARM(EMITTER, MSRR), \
145	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
146	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
147	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
148	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
149	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
150	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
151	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
152	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
153	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
154	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
155	DECLARE_INSTRUCTION_ARM(EMITTER, STRHIPW), \
156	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
157	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
158	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
159	DECLARE_INSTRUCTION_ARM(EMITTER, ILL), \
160	DECLARE_ARM_ALU_BLOCK(EMITTER, CMN, ILL, LDRHIPW, LDRSBIPW, LDRSHIPW), \
161	DECLARE_ARM_ALU_BLOCK(EMITTER, ORR, SMLAL, STRHPU, ILL, ILL), \
162	DECLARE_ARM_ALU_BLOCK(EMITTER, ORRS, SMLALS, LDRHPU, LDRSBPU, LDRSHPU), \
163	DECLARE_ARM_ALU_BLOCK(EMITTER, MOV, SMLAL, STRHPUW, ILL, ILL), \
164	DECLARE_ARM_ALU_BLOCK(EMITTER, MOVS, SMLALS, LDRHPUW, LDRSBPUW, LDRSHPUW), \
165	DECLARE_ARM_ALU_BLOCK(EMITTER, BIC, SMLAL, STRHIPU, ILL, ILL), \
166	DECLARE_ARM_ALU_BLOCK(EMITTER, BICS, SMLALS, LDRHIPU, LDRSBIPU, LDRSHIPU), \
167	DECLARE_ARM_ALU_BLOCK(EMITTER, MVN, SMLAL, STRHIPUW, ILL, ILL), \
168	DECLARE_ARM_ALU_BLOCK(EMITTER, MVNS, SMLALS, LDRHIPUW, LDRSBIPUW, LDRSHIPUW), \
169	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, AND), \
170	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, ANDS), \
171	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, EOR), \
172	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, EORS), \
173	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, SUB), \
174	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, SUBS), \
175	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, RSB), \
176	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, RSBS), \
177	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, ADD), \
178	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, ADDS), \
179	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, ADC), \
180	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, ADCS), \
181	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, SBC), \
182	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, SBCS), \
183	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, RSC), \
184	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, RSCS), \
185	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, TST), \
186	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, TST), \
187	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, MSR), \
188	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, TEQ), \
189	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, CMP), \
190	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, CMP), \
191	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, MSRR), \
192	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, CMN), \
193	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, ORR), \
194	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, ORRS), \
195	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, MOV), \
196	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, MOVS), \
197	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, BIC), \
198	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, BICS), \
199	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, MVN), \
200	DECLARE_ARM_ALU_IMMEDIATE_BLOCK(EMITTER, MVNS), \
201	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STR, , , ), \
202	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDR, , , ), \
203	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STRT, , , ), \
204	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDRT, , , ), \
205	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STRB, , , ), \
206	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDRB, , , ), \
207	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STRBT, , , ), \
208	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDRBT, , , ), \
209	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STR, , U, ), \
210	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDR, , U, ), \
211	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STRT, , U, ), \
212	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDRT, , U, ), \
213	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STRB, , U, ), \
214	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDRB, , U, ), \
215	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STRBT, , U, ), \
216	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDRBT, , U, ), \
217	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STR, P, , ), \
218	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDR, P, , ), \
219	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STR, P, , W), \
220	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDR, P, , W), \
221	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STRB, P, , ), \
222	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDRB, P, , ), \
223	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STRB, P, , W), \
224	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDRB, P, , W), \
225	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STR, P, U, ), \
226	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDR, P, U, ), \
227	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STR, P, U, W), \
228	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDR, P, U, W), \
229	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STRB, P, U, ), \
230	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDRB, P, U, ), \
231	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, STRB, P, U, W), \
232	DECLARE_ARM_LOAD_STORE_IMMEDIATE_BLOCK(EMITTER, LDRB, P, U, W), \
233	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STR, , , ), \
234	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDR, , , ), \
235	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STRT, , , ), \
236	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDRT, , , ), \
237	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STRB, , , ), \
238	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDRB, , , ), \
239	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STRBT, , , ), \
240	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDRBT, , , ), \
241	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STR, , U, ), \
242	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDR, , U, ), \
243	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STRT, , U, ), \
244	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDRT, , U, ), \
245	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STRB, , U, ), \
246	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDRB, , U, ), \
247	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STRBT, , U, ), \
248	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDRBT, , U, ), \
249	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STR, P, , ), \
250	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDR, P, , ), \
251	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STR, P, , W), \
252	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDR, P, , W), \
253	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STRB, P, , ), \
254	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDRB, P, , ), \
255	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STRB, P, , W), \
256	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDRB, P, , W), \
257	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STR, P, U, ), \
258	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDR, P, U, ), \
259	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STR, P, U, W), \
260	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDR, P, U, W), \
261	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STRB, P, U, ), \
262	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDRB, P, U, ), \
263	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, STRB, P, U, W), \
264	DECLARE_ARM_LOAD_STORE_BLOCK(EMITTER, LDRB, P, U, W), \
265	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STM, DA, ), \
266	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDM, DA, ), \
267	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STM, DA, W), \
268	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDM, DA, W), \
269	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STMS, DA, ), \
270	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDMS, DA, ), \
271	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STMS, DA, W), \
272	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDMS, DA, W), \
273	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STM, IA, ), \
274	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDM, IA, ), \
275	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STM, IA, W), \
276	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDM, IA, W), \
277	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STMS, IA, ), \
278	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDMS, IA, ), \
279	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STMS, IA, W), \
280	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDMS, IA, W), \
281	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STM, DB, ), \
282	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDM, DB, ), \
283	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STM, DB, W), \
284	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDM, DB, W), \
285	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STMS, DB, ), \
286	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDMS, DB, ), \
287	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STMS, DB, W), \
288	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDMS, DB, W), \
289	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STM, IB, ), \
290	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDM, IB, ), \
291	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STM, IB, W), \
292	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDM, IB, W), \
293	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STMS, IB, ), \
294	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDMS, IB, ), \
295	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, STMS, IB, W), \
296	DECLARE_ARM_LOAD_STORE_MULTIPLE_BLOCK(EMITTER, LDMS, IB, W), \
297	DECLARE_ARM_BRANCH_BLOCK(EMITTER, B), \
298	DECLARE_ARM_BRANCH_BLOCK(EMITTER, BL), \
299	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, , , , ), \
300	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, , , , ), \
301	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, , , , W), \
302	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, , , , W), \
303	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, , , N, ), \
304	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, , , N, ), \
305	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, , , N, W), \
306	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, , , N, W), \
307	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, , U, , ), \
308	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, , U, , ), \
309	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, , U, , W), \
310	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, , U, , W), \
311	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, , U, N, ), \
312	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, , U, N, ), \
313	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, , U, N, W), \
314	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, , U, N, W), \
315	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, P, , , ), \
316	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, P, , , ), \
317	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, P, , , W), \
318	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, P, , , W), \
319	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, P, U, N, ), \
320	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, P, U, N, ), \
321	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, P, U, N, W), \
322	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, P, U, N, W), \
323	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, P, , N, ), \
324	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, P, , N, ), \
325	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, P, , N, W), \
326	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, P, , N, W), \
327	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, P, U, N, ), \
328	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, P, U, N, ), \
329	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, STC, P, U, N, W), \
330	DECLARE_ARM_LOAD_STORE_COPROCESSOR_BLOCK(EMITTER, LDC, P, U, N, W), \
331	DECLARE_ARM_COPROCESSOR_BLOCK(EMITTER, CDP, MCR), \
332	DECLARE_ARM_COPROCESSOR_BLOCK(EMITTER, CDP, MRC), \
333	DECLARE_ARM_SWI_BLOCK(EMITTER)
334
335#endif