Project

General

Profile

Instruction Set Architecture » History » Version 7

Alexander Protsenko, 03/16/2023 11:51 AM

1 1 Alexander Protsenko
h1. Instruction Set Architecture
2
3 3 Alexander Protsenko
h2. Data processing - immediate
4
5 1 Alexander Protsenko
h3. Arithmetic (immediate)
6
7
### ADD (immediate). Add.
8
Specification: add, add_32
9
### SUB (immediate). Subtract.
10
Specification: sub, sub_32
11
### ADDS (immediate). Add and set flags.
12
Specification: adds, adds_32
13
### SUBS (immediate). Subtract and set flags.
14
Specification: subs, subs_32
15
### CMP (immediate). Compare.
16
Specification: cmp, cmp_32
17
### CMN (immediate). Compare negative.
18
Specification: cmn, cmn_32
19
20
h3. Logical (immediate)
21
22
### AND (immediate). Bitwise AND
23
Specification: and_bitmask, and_bitmask_32
24
### ANDS (immediate). Bitwise AND and set flags
25
Specification: ands_bitmask, ands_bitmask_32
26
### EOR (immediate). Bitwise exclusive OR
27
Specification: eor_bitmask, eor_bitmask_32
28
### ORR (immediate). Bitwise inclusive OR
29
Specification: orr_bitmask, orr_bitmask_32
30
### TST (immediate). TST Test bits
31
Specification: tst_bitmask, tst_bitmask_32
32
33
h3. Move (wide immediate)
34
35
### MOVZ. Move wide with zero
36
Specification: movz, movz_32
37
### MOVN. Move wide with NOT
38
Specification: movn, movn_32
39
### MOVK. Move wide with keep
40
Specification: movk, movk_32
41
42
h3. Move (immediate)
43
44
### MOV (wide immediate). Move (wide immediate)
45
Specification: mov_wide_imm, mov_wide_imm_32
46
### MOV (inverted wide immediate). Move (inverted wide immediate)
47
Specification: mov_inv_wide_imm, mov_inv_wide_imm_32
48 2 Alexander Protsenko
### MOV (bitmask immediate). Move (bitmask immediate)
49 1 Alexander Protsenko
Specification: mov_bitmask, mov_bitmask_32
50
51 3 Alexander Protsenko
h3. PC-relative address calculation
52
53
### ADRP. Compute address of 4KB page at a PC-relative offset
54
Specification: adrp
55
### ADR. Compute address of label at a PC-relative offset.
56
Specification: adr
57
58
h3. Extract register
59
60
### EXTR. Extract register from pair
61
Specification: extr, extr_32
62
63
h2. Data processing - register
64
65
h3. Arithmetic (shifted register)
66
67
### ADD (shifted register). Add
68
Specification: add_sh_reg, add_sh_reg_32
69
### ADDS (shifted register). Add and set flags
70
Specification: adds_sh_reg, adds_sh_reg_32
71
### SUB (shifted register). Subtract
72
Specification: sub_sh_reg, sub_sh_reg_32
73
### SUBS (shifted register). Subtract and set flags
74
Specification: subs_sh_reg, subs_sh_reg_32
75
### CMN (shifted register). Compare negative
76
Specification: cmn_sh_reg, cmn_sh_reg_32
77
### CMP (shifted register). Compare
78
Specification: cmp_sh_reg, cmp_sh_reg_32
79
80
h3. Arithmetic (extending register)
81
82
### ADD (extended register). Add
83
Specification: add_ex_reg, add_ex_reg_32
84
### ADDS (extended register). Add and set flags
85
Specification: adds_ex_reg, adds_ex_reg_32
86
### SUB (extended register). Subtract
87
Specification: sub_ex_reg, sub_ex_reg_32
88
### SUBS (extended register). Subtract and set flags
89
Specification: subs_ex_reg, subs_ex_reg_32
90
### CMN (extended register). Compare negative
91
Specification: cmn_ex_reg, cmn_ex_reg_32
92
### CMP (extended register). Compare
93
Specification: cmp_ex_reg, cmp_ex_reg_32
94 1 Alexander Protsenko
95
h3. Logical (shifted register)
96
97 4 Alexander Protsenko
### AND (shifted register). Bitwise AND
98
Specification: and_bitwise, and_bitwise_32
99
### ANDS (shifted register). Bitwise AND and set flags
100
Specification: ands_bitwise, ands_bitwise_32
101
### BIC (shifted register). Bitwise bit clear
102
Specification: bic_bitwise, bic_bitwise_32
103
### BICS (shifted register). Bitwise bit clear and set flags
104
Specification: bics_bitwise, bics_bitwise_32
105
### EON (shifted register). Bitwise exclusive OR NOT
106
Specification: eon_bitwise, eon_bitwise_32
107
### EOR (shifted register). Bitwise exclusive OR
108
Specification: eor_bitwise, eor_bitwise_32
109
### ORR (shifted register). Bitwise inclusive OR
110
Specification: orr_bitwise, orr_bitwise_32
111
### MVN. Bitwise NOT
112
Specification: mvn_bitwise, mvn_bitwise_32
113
### ORN (shifted register). Bitwise inclusive OR NOT
114
Specification: orn_bitwise, orn_bitwise_32
115
### TST (shifted register). Test bits
116
Specification: tst_bitwise, tst_bitwise_32
117
118
h3. Move (register)
119
120
###  MOV (register). Move register
121
Specification: mov_reg, mov_reg_32
122
### MOV (to/from SP). Move register to SP or move SP to register
123
Specification: mov_sp, mov_sp_32
124 3 Alexander Protsenko
125 5 Alexander Protsenko
h3. Multiply and divide
126
127 6 Alexander Protsenko
###  MADD. Multiply-add
128 5 Alexander Protsenko
Specification: madd, madd_32
129 6 Alexander Protsenko
###  MSUB. Multiply-subtract
130 5 Alexander Protsenko
Specification: msub, msub_32
131 6 Alexander Protsenko
###  MNEG. Multiply-negate
132 5 Alexander Protsenko
Specification: mneg, mneg_32
133 6 Alexander Protsenko
###  MUL. Multiply
134 5 Alexander Protsenko
Specification: mul, mul_32
135 6 Alexander Protsenko
###  SMADDL. Signed multiply-add long
136 5 Alexander Protsenko
Specification: smaddl
137 6 Alexander Protsenko
###  SMSUBL. Signed multiply-subtract long
138 5 Alexander Protsenko
Specification: smsubl
139 6 Alexander Protsenko
###  SMNEGL. Signed multiply-negate long
140 5 Alexander Protsenko
Specification: smnegl
141 6 Alexander Protsenko
###  SMULL. Signed multiply long
142 5 Alexander Protsenko
Specification: smull
143 6 Alexander Protsenko
###  SMULH. Signed multiply high
144 5 Alexander Protsenko
Specification: smulh
145 6 Alexander Protsenko
###  UMADDL. Unsigned multiply-add long
146 5 Alexander Protsenko
Specification: umaddl
147 6 Alexander Protsenko
###  UMSUBL. Unsigned multiply-subtract long
148 5 Alexander Protsenko
Specification: umsubl
149 6 Alexander Protsenko
###  UMNEGL. Unsigned multiply-negate long
150 5 Alexander Protsenko
Specification: umnegl
151 6 Alexander Protsenko
###  UMULL. Unsigned multiply long
152 5 Alexander Protsenko
Specification: umull
153 6 Alexander Protsenko
###  UMULH. Unsigned multiply high
154 5 Alexander Protsenko
Specification: umulh
155
156
h3. Divide
157
158 6 Alexander Protsenko
###  SDIV. Signed divide
159 5 Alexander Protsenko
Specification: sdiv, sdiv_32
160
###  UDIV. Unsigned divide
161
Specification: udiv, udiv_32
162
163 7 Alexander Protsenko
h2. Branches, Exception generating, and System instructions
164 1 Alexander Protsenko
165 7 Alexander Protsenko
h3. Conditional Branch
166
167
###  B.cond. Branch conditionally
168
Specification: b
169
### CBNZ. Compare and branch if nonzero
170
Specification: cbnz, cbnz_32
171
### CBZ. Compare and branch if zero
172
Specification: cbz, cbz_32
173
### TBNZ. Test bit and branch if nonzero
174
Specification: tbnz
175
### TBZ. Test bit and branch if zero
176
Specification: tbz
177
178
h3. Unconditional branch (immediate)
179
180
### B. Branch unconditionally
181
Specification: b_imm
182
### BL. Branch with link
183
Specification: bl
184
185
h3. Unconditional branch (register)
186
187
### BLR. Branch with link to register
188
Specification: blr
189
### BR. Branch to register
190
Specification: br
191
### RET. Return from subroutine
192
Specification: ret
193
194
h3. Exception generation and return
195
196
### BRK. Breakpoint Instruction
197
Specification: brk
198
### HLT. Halt Instruction HLT
199
Specification: hlt
200
### HVC. Generate exception targeting Exception level 2 HVC
201
Specification: hvc
202
### SMC. Generate exception targeting Exception level 3 SMC
203
Specification: smc
204
### SVC. Generate exception targeting Exception level 1
205
Specification: svc
206
### ERET. Exception return using current ELR and SPSR
207
Specification: eret
208
209
210
[167]: dcps1
211
[168]: dcps2
212
[169]: dcps3
213
[170]: drps
214
[171]: mrs
215
[172]: msr
216
[173]: msr_dc
217
[174]: msr_ds
218
[175]: msr_ss
219
[176]: msr_uao
220
[177]: sys
221
[178]: sysl
222
[179]: ic
223
[180]: ic_reg
224
[181]: dc
225
[182]: at
226
[183]: tlbi
227
[184]: tlbi_reg
228
[185]: hint
229
[186]: nop
230
[187]: yield_op
231
[188]: wfe
232
[189]: wfi
233
[190]: sev
234
[191]: sevl
235
[192]: clrex
236
[193]: dsb
237
[194]: dmb
238
[195]: isb
239
240 1 Alexander Protsenko
[127]: ldr_postindex
241
[128]: str_postindex
242
[129]: ldxr
243
[130]: ldxr_32
244
[131]: ldxrb_32
245
[132]: ldxrh_32
246
[133]: ldxp
247
[134]: ldxp_32
248
[135]: stxr
249
[136]: stxr_32
250
[137]: stxrb_32
251
[138]: stxrh_32
252
[139]: stxp
253
[140]: stxp_32
254
[141]: ldar
255
[142]: ldar_32
256
[143]: ldarb
257
[144]: ldarh
258
[145]: stlr
259
[146]: stlr_32
260
[147]: stlrb
261
[148]: stlrh
262
[149]: ldaxr
263
[150]: ldaxr_32
264
[151]: ldaxrb_32
265
[152]: ldaxrh_32
266
[153]: ldaxp
267
[154]: ldaxp_32
268
[155]: stlxr
269
[156]: stlxr_32
270
[157]: stlxrb_32
271
[158]: stlxrh_32
272
[159]: stlxp
273
[160]: stlxp_32
274 7 Alexander Protsenko
275 1 Alexander Protsenko
276
[200]: psldr
277
[201]: psldr32