1
2
3
4
5 package main
6
7 import "strings"
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 var regNamesARM64 = []string{
32 "R0",
33 "R1",
34 "R2",
35 "R3",
36 "R4",
37 "R5",
38 "R6",
39 "R7",
40 "R8",
41 "R9",
42 "R10",
43 "R11",
44 "R12",
45 "R13",
46 "R14",
47 "R15",
48 "R16",
49 "R17",
50 "R18",
51 "R19",
52 "R20",
53 "R21",
54 "R22",
55 "R23",
56 "R24",
57 "R25",
58 "R26",
59
60 "g",
61 "R29",
62 "R30",
63 "SP",
64
65 "F0",
66 "F1",
67 "F2",
68 "F3",
69 "F4",
70 "F5",
71 "F6",
72 "F7",
73 "F8",
74 "F9",
75 "F10",
76 "F11",
77 "F12",
78 "F13",
79 "F14",
80 "F15",
81 "F16",
82 "F17",
83 "F18",
84 "F19",
85 "F20",
86 "F21",
87 "F22",
88 "F23",
89 "F24",
90 "F25",
91 "F26",
92 "F27",
93 "F28",
94 "F29",
95 "F30",
96 "F31",
97
98
99
100
101 "SB",
102 }
103
104 func init() {
105
106 if len(regNamesARM64) > 64 {
107 panic("too many registers")
108 }
109 num := map[string]int{}
110 for i, name := range regNamesARM64 {
111 num[name] = i
112 }
113 buildReg := func(s string) regMask {
114 m := regMask(0)
115 for _, r := range strings.Split(s, " ") {
116 if n, ok := num[r]; ok {
117 m |= regMask(1) << uint(n)
118 continue
119 }
120 panic("register " + r + " not found")
121 }
122 return m
123 }
124
125
126 var (
127 gp = buildReg("R0 R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R13 R14 R15 R16 R17 R19 R20 R21 R22 R23 R24 R25 R26 R30")
128 gpg = gp | buildReg("g")
129 gpsp = gp | buildReg("SP")
130 gpspg = gpg | buildReg("SP")
131 gpspsbg = gpspg | buildReg("SB")
132 fp = buildReg("F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15 F16 F17 F18 F19 F20 F21 F22 F23 F24 F25 F26 F27 F28 F29 F30 F31")
133 callerSave = gp | fp | buildReg("g")
134 r0 = buildReg("R0")
135 r1 = buildReg("R1")
136 r2 = buildReg("R2")
137 r3 = buildReg("R3")
138 )
139
140 var (
141 gp01 = regInfo{inputs: nil, outputs: []regMask{gp}}
142 gp0flags1 = regInfo{inputs: []regMask{0}, outputs: []regMask{gp}}
143 gp11 = regInfo{inputs: []regMask{gpg}, outputs: []regMask{gp}}
144 gp11sp = regInfo{inputs: []regMask{gpspg}, outputs: []regMask{gp}}
145 gp1flags = regInfo{inputs: []regMask{gpg}}
146 gp1flags1 = regInfo{inputs: []regMask{gpg}, outputs: []regMask{gp}}
147 gp11flags = regInfo{inputs: []regMask{gpg}, outputs: []regMask{gp, 0}}
148 gp21 = regInfo{inputs: []regMask{gpg, gpg}, outputs: []regMask{gp}}
149 gp21nog = regInfo{inputs: []regMask{gp, gp}, outputs: []regMask{gp}}
150 gp21flags = regInfo{inputs: []regMask{gp, gp}, outputs: []regMask{gp, 0}}
151 gp2flags = regInfo{inputs: []regMask{gpg, gpg}}
152 gp2flags1 = regInfo{inputs: []regMask{gp, gp}, outputs: []regMask{gp}}
153 gp2flags1flags = regInfo{inputs: []regMask{gp, gp, 0}, outputs: []regMask{gp, 0}}
154 gp2load = regInfo{inputs: []regMask{gpspsbg, gpg}, outputs: []regMask{gp}}
155 gp31 = regInfo{inputs: []regMask{gpg, gpg, gpg}, outputs: []regMask{gp}}
156 gpload = regInfo{inputs: []regMask{gpspsbg}, outputs: []regMask{gp}}
157 gpload2 = regInfo{inputs: []regMask{gpspsbg}, outputs: []regMask{gpg, gpg}}
158 gpstore = regInfo{inputs: []regMask{gpspsbg, gpg}}
159 gpstore0 = regInfo{inputs: []regMask{gpspsbg}}
160 gpstore2 = regInfo{inputs: []regMask{gpspsbg, gpg, gpg}}
161 gpxchg = regInfo{inputs: []regMask{gpspsbg, gpg}, outputs: []regMask{gp}}
162 gpcas = regInfo{inputs: []regMask{gpspsbg, gpg, gpg}, outputs: []regMask{gp}}
163 fp01 = regInfo{inputs: nil, outputs: []regMask{fp}}
164 fp11 = regInfo{inputs: []regMask{fp}, outputs: []regMask{fp}}
165 fpgp = regInfo{inputs: []regMask{fp}, outputs: []regMask{gp}}
166 gpfp = regInfo{inputs: []regMask{gp}, outputs: []regMask{fp}}
167 fp21 = regInfo{inputs: []regMask{fp, fp}, outputs: []regMask{fp}}
168 fp31 = regInfo{inputs: []regMask{fp, fp, fp}, outputs: []regMask{fp}}
169 fp2flags = regInfo{inputs: []regMask{fp, fp}}
170 fp1flags = regInfo{inputs: []regMask{fp}}
171 fpload = regInfo{inputs: []regMask{gpspsbg}, outputs: []regMask{fp}}
172 fp2load = regInfo{inputs: []regMask{gpspsbg, gpg}, outputs: []regMask{fp}}
173 fpstore = regInfo{inputs: []regMask{gpspsbg, fp}}
174 fpstore2 = regInfo{inputs: []regMask{gpspsbg, gpg, fp}}
175 readflags = regInfo{inputs: nil, outputs: []regMask{gp}}
176 prefreg = regInfo{inputs: []regMask{gpspsbg}}
177 )
178 ops := []opData{
179
180 {name: "ADCSflags", argLength: 3, reg: gp2flags1flags, typ: "(UInt64,Flags)", asm: "ADCS", commutative: true},
181 {name: "ADCzerocarry", argLength: 1, reg: gp0flags1, typ: "UInt64", asm: "ADC"},
182 {name: "ADD", argLength: 2, reg: gp21, asm: "ADD", commutative: true},
183 {name: "ADDconst", argLength: 1, reg: gp11sp, asm: "ADD", aux: "Int64"},
184 {name: "ADDSconstflags", argLength: 1, reg: gp11flags, typ: "(UInt64,Flags)", asm: "ADDS", aux: "Int64"},
185 {name: "ADDSflags", argLength: 2, reg: gp21flags, typ: "(UInt64,Flags)", asm: "ADDS", commutative: true},
186 {name: "SUB", argLength: 2, reg: gp21, asm: "SUB"},
187 {name: "SUBconst", argLength: 1, reg: gp11, asm: "SUB", aux: "Int64"},
188 {name: "SBCSflags", argLength: 3, reg: gp2flags1flags, typ: "(UInt64,Flags)", asm: "SBCS"},
189 {name: "SUBSflags", argLength: 2, reg: gp21flags, typ: "(UInt64,Flags)", asm: "SUBS"},
190 {name: "MUL", argLength: 2, reg: gp21, asm: "MUL", commutative: true},
191 {name: "MULW", argLength: 2, reg: gp21, asm: "MULW", commutative: true},
192 {name: "MNEG", argLength: 2, reg: gp21, asm: "MNEG", commutative: true},
193 {name: "MNEGW", argLength: 2, reg: gp21, asm: "MNEGW", commutative: true},
194 {name: "MULH", argLength: 2, reg: gp21, asm: "SMULH", commutative: true},
195 {name: "UMULH", argLength: 2, reg: gp21, asm: "UMULH", commutative: true},
196 {name: "MULL", argLength: 2, reg: gp21, asm: "SMULL", commutative: true},
197 {name: "UMULL", argLength: 2, reg: gp21, asm: "UMULL", commutative: true},
198 {name: "DIV", argLength: 2, reg: gp21, asm: "SDIV"},
199 {name: "UDIV", argLength: 2, reg: gp21, asm: "UDIV"},
200 {name: "DIVW", argLength: 2, reg: gp21, asm: "SDIVW"},
201 {name: "UDIVW", argLength: 2, reg: gp21, asm: "UDIVW"},
202 {name: "MOD", argLength: 2, reg: gp21, asm: "REM"},
203 {name: "UMOD", argLength: 2, reg: gp21, asm: "UREM"},
204 {name: "MODW", argLength: 2, reg: gp21, asm: "REMW"},
205 {name: "UMODW", argLength: 2, reg: gp21, asm: "UREMW"},
206
207 {name: "FADDS", argLength: 2, reg: fp21, asm: "FADDS", commutative: true},
208 {name: "FADDD", argLength: 2, reg: fp21, asm: "FADDD", commutative: true},
209 {name: "FSUBS", argLength: 2, reg: fp21, asm: "FSUBS"},
210 {name: "FSUBD", argLength: 2, reg: fp21, asm: "FSUBD"},
211 {name: "FMULS", argLength: 2, reg: fp21, asm: "FMULS", commutative: true},
212 {name: "FMULD", argLength: 2, reg: fp21, asm: "FMULD", commutative: true},
213 {name: "FNMULS", argLength: 2, reg: fp21, asm: "FNMULS", commutative: true},
214 {name: "FNMULD", argLength: 2, reg: fp21, asm: "FNMULD", commutative: true},
215 {name: "FDIVS", argLength: 2, reg: fp21, asm: "FDIVS"},
216 {name: "FDIVD", argLength: 2, reg: fp21, asm: "FDIVD"},
217
218 {name: "AND", argLength: 2, reg: gp21, asm: "AND", commutative: true},
219 {name: "ANDconst", argLength: 1, reg: gp11, asm: "AND", aux: "Int64"},
220 {name: "OR", argLength: 2, reg: gp21, asm: "ORR", commutative: true},
221 {name: "ORconst", argLength: 1, reg: gp11, asm: "ORR", aux: "Int64"},
222 {name: "XOR", argLength: 2, reg: gp21, asm: "EOR", commutative: true},
223 {name: "XORconst", argLength: 1, reg: gp11, asm: "EOR", aux: "Int64"},
224 {name: "BIC", argLength: 2, reg: gp21, asm: "BIC"},
225 {name: "EON", argLength: 2, reg: gp21, asm: "EON"},
226 {name: "ORN", argLength: 2, reg: gp21, asm: "ORN"},
227
228
229 {name: "MVN", argLength: 1, reg: gp11, asm: "MVN"},
230 {name: "NEG", argLength: 1, reg: gp11, asm: "NEG"},
231 {name: "NEGSflags", argLength: 1, reg: gp11flags, typ: "(UInt64,Flags)", asm: "NEGS"},
232 {name: "NGCzerocarry", argLength: 1, reg: gp0flags1, typ: "UInt64", asm: "NGC"},
233 {name: "FABSD", argLength: 1, reg: fp11, asm: "FABSD"},
234 {name: "FNEGS", argLength: 1, reg: fp11, asm: "FNEGS"},
235 {name: "FNEGD", argLength: 1, reg: fp11, asm: "FNEGD"},
236 {name: "FSQRTD", argLength: 1, reg: fp11, asm: "FSQRTD"},
237 {name: "FSQRTS", argLength: 1, reg: fp11, asm: "FSQRTS"},
238 {name: "FMIND", argLength: 2, reg: fp21, asm: "FMIND"},
239 {name: "FMINS", argLength: 2, reg: fp21, asm: "FMINS"},
240 {name: "FMAXD", argLength: 2, reg: fp21, asm: "FMAXD"},
241 {name: "FMAXS", argLength: 2, reg: fp21, asm: "FMAXS"},
242 {name: "REV", argLength: 1, reg: gp11, asm: "REV"},
243 {name: "REVW", argLength: 1, reg: gp11, asm: "REVW"},
244 {name: "REV16", argLength: 1, reg: gp11, asm: "REV16"},
245 {name: "REV16W", argLength: 1, reg: gp11, asm: "REV16W"},
246 {name: "RBIT", argLength: 1, reg: gp11, asm: "RBIT"},
247 {name: "RBITW", argLength: 1, reg: gp11, asm: "RBITW"},
248 {name: "CLZ", argLength: 1, reg: gp11, asm: "CLZ"},
249 {name: "CLZW", argLength: 1, reg: gp11, asm: "CLZW"},
250 {name: "VCNT", argLength: 1, reg: fp11, asm: "VCNT"},
251 {name: "VUADDLV", argLength: 1, reg: fp11, asm: "VUADDLV"},
252 {name: "LoweredRound32F", argLength: 1, reg: fp11, resultInArg0: true, zeroWidth: true},
253 {name: "LoweredRound64F", argLength: 1, reg: fp11, resultInArg0: true, zeroWidth: true},
254
255
256 {name: "FMADDS", argLength: 3, reg: fp31, asm: "FMADDS"},
257 {name: "FMADDD", argLength: 3, reg: fp31, asm: "FMADDD"},
258 {name: "FNMADDS", argLength: 3, reg: fp31, asm: "FNMADDS"},
259 {name: "FNMADDD", argLength: 3, reg: fp31, asm: "FNMADDD"},
260 {name: "FMSUBS", argLength: 3, reg: fp31, asm: "FMSUBS"},
261 {name: "FMSUBD", argLength: 3, reg: fp31, asm: "FMSUBD"},
262 {name: "FNMSUBS", argLength: 3, reg: fp31, asm: "FNMSUBS"},
263 {name: "FNMSUBD", argLength: 3, reg: fp31, asm: "FNMSUBD"},
264 {name: "MADD", argLength: 3, reg: gp31, asm: "MADD"},
265 {name: "MADDW", argLength: 3, reg: gp31, asm: "MADDW"},
266 {name: "MSUB", argLength: 3, reg: gp31, asm: "MSUB"},
267 {name: "MSUBW", argLength: 3, reg: gp31, asm: "MSUBW"},
268
269
270 {name: "SLL", argLength: 2, reg: gp21, asm: "LSL"},
271 {name: "SLLconst", argLength: 1, reg: gp11, asm: "LSL", aux: "Int64"},
272 {name: "SRL", argLength: 2, reg: gp21, asm: "LSR"},
273 {name: "SRLconst", argLength: 1, reg: gp11, asm: "LSR", aux: "Int64"},
274 {name: "SRA", argLength: 2, reg: gp21, asm: "ASR"},
275 {name: "SRAconst", argLength: 1, reg: gp11, asm: "ASR", aux: "Int64"},
276 {name: "ROR", argLength: 2, reg: gp21, asm: "ROR"},
277 {name: "RORW", argLength: 2, reg: gp21, asm: "RORW"},
278 {name: "RORconst", argLength: 1, reg: gp11, asm: "ROR", aux: "Int64"},
279 {name: "RORWconst", argLength: 1, reg: gp11, asm: "RORW", aux: "Int64"},
280 {name: "EXTRconst", argLength: 2, reg: gp21, asm: "EXTR", aux: "Int64"},
281 {name: "EXTRWconst", argLength: 2, reg: gp21, asm: "EXTRW", aux: "Int64"},
282
283
284 {name: "CMP", argLength: 2, reg: gp2flags, asm: "CMP", typ: "Flags"},
285 {name: "CMPconst", argLength: 1, reg: gp1flags, asm: "CMP", aux: "Int64", typ: "Flags"},
286 {name: "CMPW", argLength: 2, reg: gp2flags, asm: "CMPW", typ: "Flags"},
287 {name: "CMPWconst", argLength: 1, reg: gp1flags, asm: "CMPW", aux: "Int32", typ: "Flags"},
288 {name: "CMN", argLength: 2, reg: gp2flags, asm: "CMN", typ: "Flags", commutative: true},
289 {name: "CMNconst", argLength: 1, reg: gp1flags, asm: "CMN", aux: "Int64", typ: "Flags"},
290 {name: "CMNW", argLength: 2, reg: gp2flags, asm: "CMNW", typ: "Flags", commutative: true},
291 {name: "CMNWconst", argLength: 1, reg: gp1flags, asm: "CMNW", aux: "Int32", typ: "Flags"},
292 {name: "TST", argLength: 2, reg: gp2flags, asm: "TST", typ: "Flags", commutative: true},
293 {name: "TSTconst", argLength: 1, reg: gp1flags, asm: "TST", aux: "Int64", typ: "Flags"},
294 {name: "TSTW", argLength: 2, reg: gp2flags, asm: "TSTW", typ: "Flags", commutative: true},
295 {name: "TSTWconst", argLength: 1, reg: gp1flags, asm: "TSTW", aux: "Int32", typ: "Flags"},
296 {name: "FCMPS", argLength: 2, reg: fp2flags, asm: "FCMPS", typ: "Flags"},
297 {name: "FCMPD", argLength: 2, reg: fp2flags, asm: "FCMPD", typ: "Flags"},
298 {name: "FCMPS0", argLength: 1, reg: fp1flags, asm: "FCMPS", typ: "Flags"},
299 {name: "FCMPD0", argLength: 1, reg: fp1flags, asm: "FCMPD", typ: "Flags"},
300
301
302 {name: "MVNshiftLL", argLength: 1, reg: gp11, asm: "MVN", aux: "Int64"},
303 {name: "MVNshiftRL", argLength: 1, reg: gp11, asm: "MVN", aux: "Int64"},
304 {name: "MVNshiftRA", argLength: 1, reg: gp11, asm: "MVN", aux: "Int64"},
305 {name: "MVNshiftRO", argLength: 1, reg: gp11, asm: "MVN", aux: "Int64"},
306 {name: "NEGshiftLL", argLength: 1, reg: gp11, asm: "NEG", aux: "Int64"},
307 {name: "NEGshiftRL", argLength: 1, reg: gp11, asm: "NEG", aux: "Int64"},
308 {name: "NEGshiftRA", argLength: 1, reg: gp11, asm: "NEG", aux: "Int64"},
309 {name: "ADDshiftLL", argLength: 2, reg: gp21, asm: "ADD", aux: "Int64"},
310 {name: "ADDshiftRL", argLength: 2, reg: gp21, asm: "ADD", aux: "Int64"},
311 {name: "ADDshiftRA", argLength: 2, reg: gp21, asm: "ADD", aux: "Int64"},
312 {name: "SUBshiftLL", argLength: 2, reg: gp21, asm: "SUB", aux: "Int64"},
313 {name: "SUBshiftRL", argLength: 2, reg: gp21, asm: "SUB", aux: "Int64"},
314 {name: "SUBshiftRA", argLength: 2, reg: gp21, asm: "SUB", aux: "Int64"},
315 {name: "ANDshiftLL", argLength: 2, reg: gp21, asm: "AND", aux: "Int64"},
316 {name: "ANDshiftRL", argLength: 2, reg: gp21, asm: "AND", aux: "Int64"},
317 {name: "ANDshiftRA", argLength: 2, reg: gp21, asm: "AND", aux: "Int64"},
318 {name: "ANDshiftRO", argLength: 2, reg: gp21, asm: "AND", aux: "Int64"},
319 {name: "ORshiftLL", argLength: 2, reg: gp21, asm: "ORR", aux: "Int64"},
320 {name: "ORshiftRL", argLength: 2, reg: gp21, asm: "ORR", aux: "Int64"},
321 {name: "ORshiftRA", argLength: 2, reg: gp21, asm: "ORR", aux: "Int64"},
322 {name: "ORshiftRO", argLength: 2, reg: gp21, asm: "ORR", aux: "Int64"},
323 {name: "XORshiftLL", argLength: 2, reg: gp21, asm: "EOR", aux: "Int64"},
324 {name: "XORshiftRL", argLength: 2, reg: gp21, asm: "EOR", aux: "Int64"},
325 {name: "XORshiftRA", argLength: 2, reg: gp21, asm: "EOR", aux: "Int64"},
326 {name: "XORshiftRO", argLength: 2, reg: gp21, asm: "EOR", aux: "Int64"},
327 {name: "BICshiftLL", argLength: 2, reg: gp21, asm: "BIC", aux: "Int64"},
328 {name: "BICshiftRL", argLength: 2, reg: gp21, asm: "BIC", aux: "Int64"},
329 {name: "BICshiftRA", argLength: 2, reg: gp21, asm: "BIC", aux: "Int64"},
330 {name: "BICshiftRO", argLength: 2, reg: gp21, asm: "BIC", aux: "Int64"},
331 {name: "EONshiftLL", argLength: 2, reg: gp21, asm: "EON", aux: "Int64"},
332 {name: "EONshiftRL", argLength: 2, reg: gp21, asm: "EON", aux: "Int64"},
333 {name: "EONshiftRA", argLength: 2, reg: gp21, asm: "EON", aux: "Int64"},
334 {name: "EONshiftRO", argLength: 2, reg: gp21, asm: "EON", aux: "Int64"},
335 {name: "ORNshiftLL", argLength: 2, reg: gp21, asm: "ORN", aux: "Int64"},
336 {name: "ORNshiftRL", argLength: 2, reg: gp21, asm: "ORN", aux: "Int64"},
337 {name: "ORNshiftRA", argLength: 2, reg: gp21, asm: "ORN", aux: "Int64"},
338 {name: "ORNshiftRO", argLength: 2, reg: gp21, asm: "ORN", aux: "Int64"},
339 {name: "CMPshiftLL", argLength: 2, reg: gp2flags, asm: "CMP", aux: "Int64", typ: "Flags"},
340 {name: "CMPshiftRL", argLength: 2, reg: gp2flags, asm: "CMP", aux: "Int64", typ: "Flags"},
341 {name: "CMPshiftRA", argLength: 2, reg: gp2flags, asm: "CMP", aux: "Int64", typ: "Flags"},
342 {name: "CMNshiftLL", argLength: 2, reg: gp2flags, asm: "CMN", aux: "Int64", typ: "Flags"},
343 {name: "CMNshiftRL", argLength: 2, reg: gp2flags, asm: "CMN", aux: "Int64", typ: "Flags"},
344 {name: "CMNshiftRA", argLength: 2, reg: gp2flags, asm: "CMN", aux: "Int64", typ: "Flags"},
345 {name: "TSTshiftLL", argLength: 2, reg: gp2flags, asm: "TST", aux: "Int64", typ: "Flags"},
346 {name: "TSTshiftRL", argLength: 2, reg: gp2flags, asm: "TST", aux: "Int64", typ: "Flags"},
347 {name: "TSTshiftRA", argLength: 2, reg: gp2flags, asm: "TST", aux: "Int64", typ: "Flags"},
348 {name: "TSTshiftRO", argLength: 2, reg: gp2flags, asm: "TST", aux: "Int64", typ: "Flags"},
349
350
351
352
353 {name: "BFI", argLength: 2, reg: gp21nog, asm: "BFI", aux: "ARM64BitField", resultInArg0: true},
354
355 {name: "BFXIL", argLength: 2, reg: gp21nog, asm: "BFXIL", aux: "ARM64BitField", resultInArg0: true},
356
357 {name: "SBFIZ", argLength: 1, reg: gp11, asm: "SBFIZ", aux: "ARM64BitField"},
358
359 {name: "SBFX", argLength: 1, reg: gp11, asm: "SBFX", aux: "ARM64BitField"},
360
361 {name: "UBFIZ", argLength: 1, reg: gp11, asm: "UBFIZ", aux: "ARM64BitField"},
362
363 {name: "UBFX", argLength: 1, reg: gp11, asm: "UBFX", aux: "ARM64BitField"},
364
365
366 {name: "MOVDconst", argLength: 0, reg: gp01, aux: "Int64", asm: "MOVD", typ: "UInt64", rematerializeable: true},
367 {name: "FMOVSconst", argLength: 0, reg: fp01, aux: "Float64", asm: "FMOVS", typ: "Float32", rematerializeable: true},
368 {name: "FMOVDconst", argLength: 0, reg: fp01, aux: "Float64", asm: "FMOVD", typ: "Float64", rematerializeable: true},
369
370 {name: "MOVDaddr", argLength: 1, reg: regInfo{inputs: []regMask{buildReg("SP") | buildReg("SB")}, outputs: []regMask{gp}}, aux: "SymOff", asm: "MOVD", rematerializeable: true, symEffect: "Addr"},
371
372 {name: "MOVBload", argLength: 2, reg: gpload, aux: "SymOff", asm: "MOVB", typ: "Int8", faultOnNilArg0: true, symEffect: "Read"},
373 {name: "MOVBUload", argLength: 2, reg: gpload, aux: "SymOff", asm: "MOVBU", typ: "UInt8", faultOnNilArg0: true, symEffect: "Read"},
374 {name: "MOVHload", argLength: 2, reg: gpload, aux: "SymOff", asm: "MOVH", typ: "Int16", faultOnNilArg0: true, symEffect: "Read"},
375 {name: "MOVHUload", argLength: 2, reg: gpload, aux: "SymOff", asm: "MOVHU", typ: "UInt16", faultOnNilArg0: true, symEffect: "Read"},
376 {name: "MOVWload", argLength: 2, reg: gpload, aux: "SymOff", asm: "MOVW", typ: "Int32", faultOnNilArg0: true, symEffect: "Read"},
377 {name: "MOVWUload", argLength: 2, reg: gpload, aux: "SymOff", asm: "MOVWU", typ: "UInt32", faultOnNilArg0: true, symEffect: "Read"},
378 {name: "MOVDload", argLength: 2, reg: gpload, aux: "SymOff", asm: "MOVD", typ: "UInt64", faultOnNilArg0: true, symEffect: "Read"},
379 {name: "LDP", argLength: 2, reg: gpload2, aux: "SymOff", asm: "LDP", typ: "(UInt64,UInt64)", faultOnNilArg0: true, symEffect: "Read"},
380 {name: "FMOVSload", argLength: 2, reg: fpload, aux: "SymOff", asm: "FMOVS", typ: "Float32", faultOnNilArg0: true, symEffect: "Read"},
381 {name: "FMOVDload", argLength: 2, reg: fpload, aux: "SymOff", asm: "FMOVD", typ: "Float64", faultOnNilArg0: true, symEffect: "Read"},
382
383
384 {name: "MOVDloadidx", argLength: 3, reg: gp2load, asm: "MOVD", typ: "UInt64"},
385 {name: "MOVWloadidx", argLength: 3, reg: gp2load, asm: "MOVW", typ: "Int32"},
386 {name: "MOVWUloadidx", argLength: 3, reg: gp2load, asm: "MOVWU", typ: "UInt32"},
387 {name: "MOVHloadidx", argLength: 3, reg: gp2load, asm: "MOVH", typ: "Int16"},
388 {name: "MOVHUloadidx", argLength: 3, reg: gp2load, asm: "MOVHU", typ: "UInt16"},
389 {name: "MOVBloadidx", argLength: 3, reg: gp2load, asm: "MOVB", typ: "Int8"},
390 {name: "MOVBUloadidx", argLength: 3, reg: gp2load, asm: "MOVBU", typ: "UInt8"},
391 {name: "FMOVSloadidx", argLength: 3, reg: fp2load, asm: "FMOVS", typ: "Float32"},
392 {name: "FMOVDloadidx", argLength: 3, reg: fp2load, asm: "FMOVD", typ: "Float64"},
393
394
395 {name: "MOVHloadidx2", argLength: 3, reg: gp2load, asm: "MOVH", typ: "Int16"},
396 {name: "MOVHUloadidx2", argLength: 3, reg: gp2load, asm: "MOVHU", typ: "UInt16"},
397 {name: "MOVWloadidx4", argLength: 3, reg: gp2load, asm: "MOVW", typ: "Int32"},
398 {name: "MOVWUloadidx4", argLength: 3, reg: gp2load, asm: "MOVWU", typ: "UInt32"},
399 {name: "MOVDloadidx8", argLength: 3, reg: gp2load, asm: "MOVD", typ: "UInt64"},
400 {name: "FMOVSloadidx4", argLength: 3, reg: fp2load, asm: "FMOVS", typ: "Float32"},
401 {name: "FMOVDloadidx8", argLength: 3, reg: fp2load, asm: "FMOVD", typ: "Float64"},
402
403 {name: "MOVBstore", argLength: 3, reg: gpstore, aux: "SymOff", asm: "MOVB", typ: "Mem", faultOnNilArg0: true, symEffect: "Write"},
404 {name: "MOVHstore", argLength: 3, reg: gpstore, aux: "SymOff", asm: "MOVH", typ: "Mem", faultOnNilArg0: true, symEffect: "Write"},
405 {name: "MOVWstore", argLength: 3, reg: gpstore, aux: "SymOff", asm: "MOVW", typ: "Mem", faultOnNilArg0: true, symEffect: "Write"},
406 {name: "MOVDstore", argLength: 3, reg: gpstore, aux: "SymOff", asm: "MOVD", typ: "Mem", faultOnNilArg0: true, symEffect: "Write"},
407 {name: "STP", argLength: 4, reg: gpstore2, aux: "SymOff", asm: "STP", typ: "Mem", faultOnNilArg0: true, symEffect: "Write"},
408 {name: "FMOVSstore", argLength: 3, reg: fpstore, aux: "SymOff", asm: "FMOVS", typ: "Mem", faultOnNilArg0: true, symEffect: "Write"},
409 {name: "FMOVDstore", argLength: 3, reg: fpstore, aux: "SymOff", asm: "FMOVD", typ: "Mem", faultOnNilArg0: true, symEffect: "Write"},
410
411
412 {name: "MOVBstoreidx", argLength: 4, reg: gpstore2, asm: "MOVB", typ: "Mem"},
413 {name: "MOVHstoreidx", argLength: 4, reg: gpstore2, asm: "MOVH", typ: "Mem"},
414 {name: "MOVWstoreidx", argLength: 4, reg: gpstore2, asm: "MOVW", typ: "Mem"},
415 {name: "MOVDstoreidx", argLength: 4, reg: gpstore2, asm: "MOVD", typ: "Mem"},
416 {name: "FMOVSstoreidx", argLength: 4, reg: fpstore2, asm: "FMOVS", typ: "Mem"},
417 {name: "FMOVDstoreidx", argLength: 4, reg: fpstore2, asm: "FMOVD", typ: "Mem"},
418
419
420 {name: "MOVHstoreidx2", argLength: 4, reg: gpstore2, asm: "MOVH", typ: "Mem"},
421 {name: "MOVWstoreidx4", argLength: 4, reg: gpstore2, asm: "MOVW", typ: "Mem"},
422 {name: "MOVDstoreidx8", argLength: 4, reg: gpstore2, asm: "MOVD", typ: "Mem"},
423 {name: "FMOVSstoreidx4", argLength: 4, reg: fpstore2, asm: "FMOVS", typ: "Mem"},
424 {name: "FMOVDstoreidx8", argLength: 4, reg: fpstore2, asm: "FMOVD", typ: "Mem"},
425
426 {name: "MOVBstorezero", argLength: 2, reg: gpstore0, aux: "SymOff", asm: "MOVB", typ: "Mem", faultOnNilArg0: true, symEffect: "Write"},
427 {name: "MOVHstorezero", argLength: 2, reg: gpstore0, aux: "SymOff", asm: "MOVH", typ: "Mem", faultOnNilArg0: true, symEffect: "Write"},
428 {name: "MOVWstorezero", argLength: 2, reg: gpstore0, aux: "SymOff", asm: "MOVW", typ: "Mem", faultOnNilArg0: true, symEffect: "Write"},
429 {name: "MOVDstorezero", argLength: 2, reg: gpstore0, aux: "SymOff", asm: "MOVD", typ: "Mem", faultOnNilArg0: true, symEffect: "Write"},
430 {name: "MOVQstorezero", argLength: 2, reg: gpstore0, aux: "SymOff", asm: "STP", typ: "Mem", faultOnNilArg0: true, symEffect: "Write"},
431
432
433 {name: "MOVBstorezeroidx", argLength: 3, reg: gpstore, asm: "MOVB", typ: "Mem"},
434 {name: "MOVHstorezeroidx", argLength: 3, reg: gpstore, asm: "MOVH", typ: "Mem"},
435 {name: "MOVWstorezeroidx", argLength: 3, reg: gpstore, asm: "MOVW", typ: "Mem"},
436 {name: "MOVDstorezeroidx", argLength: 3, reg: gpstore, asm: "MOVD", typ: "Mem"},
437
438
439 {name: "MOVHstorezeroidx2", argLength: 3, reg: gpstore, asm: "MOVH", typ: "Mem"},
440 {name: "MOVWstorezeroidx4", argLength: 3, reg: gpstore, asm: "MOVW", typ: "Mem"},
441 {name: "MOVDstorezeroidx8", argLength: 3, reg: gpstore, asm: "MOVD", typ: "Mem"},
442
443 {name: "FMOVDgpfp", argLength: 1, reg: gpfp, asm: "FMOVD"},
444 {name: "FMOVDfpgp", argLength: 1, reg: fpgp, asm: "FMOVD"},
445 {name: "FMOVSgpfp", argLength: 1, reg: gpfp, asm: "FMOVS"},
446 {name: "FMOVSfpgp", argLength: 1, reg: fpgp, asm: "FMOVS"},
447
448
449 {name: "MOVBreg", argLength: 1, reg: gp11, asm: "MOVB"},
450 {name: "MOVBUreg", argLength: 1, reg: gp11, asm: "MOVBU"},
451 {name: "MOVHreg", argLength: 1, reg: gp11, asm: "MOVH"},
452 {name: "MOVHUreg", argLength: 1, reg: gp11, asm: "MOVHU"},
453 {name: "MOVWreg", argLength: 1, reg: gp11, asm: "MOVW"},
454 {name: "MOVWUreg", argLength: 1, reg: gp11, asm: "MOVWU"},
455 {name: "MOVDreg", argLength: 1, reg: gp11, asm: "MOVD"},
456
457 {name: "MOVDnop", argLength: 1, reg: regInfo{inputs: []regMask{gp}, outputs: []regMask{gp}}, resultInArg0: true},
458
459 {name: "SCVTFWS", argLength: 1, reg: gpfp, asm: "SCVTFWS"},
460 {name: "SCVTFWD", argLength: 1, reg: gpfp, asm: "SCVTFWD"},
461 {name: "UCVTFWS", argLength: 1, reg: gpfp, asm: "UCVTFWS"},
462 {name: "UCVTFWD", argLength: 1, reg: gpfp, asm: "UCVTFWD"},
463 {name: "SCVTFS", argLength: 1, reg: gpfp, asm: "SCVTFS"},
464 {name: "SCVTFD", argLength: 1, reg: gpfp, asm: "SCVTFD"},
465 {name: "UCVTFS", argLength: 1, reg: gpfp, asm: "UCVTFS"},
466 {name: "UCVTFD", argLength: 1, reg: gpfp, asm: "UCVTFD"},
467 {name: "FCVTZSSW", argLength: 1, reg: fpgp, asm: "FCVTZSSW"},
468 {name: "FCVTZSDW", argLength: 1, reg: fpgp, asm: "FCVTZSDW"},
469 {name: "FCVTZUSW", argLength: 1, reg: fpgp, asm: "FCVTZUSW"},
470 {name: "FCVTZUDW", argLength: 1, reg: fpgp, asm: "FCVTZUDW"},
471 {name: "FCVTZSS", argLength: 1, reg: fpgp, asm: "FCVTZSS"},
472 {name: "FCVTZSD", argLength: 1, reg: fpgp, asm: "FCVTZSD"},
473 {name: "FCVTZUS", argLength: 1, reg: fpgp, asm: "FCVTZUS"},
474 {name: "FCVTZUD", argLength: 1, reg: fpgp, asm: "FCVTZUD"},
475 {name: "FCVTSD", argLength: 1, reg: fp11, asm: "FCVTSD"},
476 {name: "FCVTDS", argLength: 1, reg: fp11, asm: "FCVTDS"},
477
478
479 {name: "FRINTAD", argLength: 1, reg: fp11, asm: "FRINTAD"},
480 {name: "FRINTMD", argLength: 1, reg: fp11, asm: "FRINTMD"},
481 {name: "FRINTND", argLength: 1, reg: fp11, asm: "FRINTND"},
482 {name: "FRINTPD", argLength: 1, reg: fp11, asm: "FRINTPD"},
483 {name: "FRINTZD", argLength: 1, reg: fp11, asm: "FRINTZD"},
484
485
486
487 {name: "CSEL", argLength: 3, reg: gp2flags1, asm: "CSEL", aux: "CCop"},
488 {name: "CSEL0", argLength: 2, reg: gp1flags1, asm: "CSEL", aux: "CCop"},
489 {name: "CSINC", argLength: 3, reg: gp2flags1, asm: "CSINC", aux: "CCop"},
490 {name: "CSINV", argLength: 3, reg: gp2flags1, asm: "CSINV", aux: "CCop"},
491 {name: "CSNEG", argLength: 3, reg: gp2flags1, asm: "CSNEG", aux: "CCop"},
492 {name: "CSETM", argLength: 1, reg: readflags, asm: "CSETM", aux: "CCop"},
493
494
495 {name: "CALLstatic", argLength: -1, reg: regInfo{clobbers: callerSave}, aux: "CallOff", clobberFlags: true, call: true},
496 {name: "CALLtail", argLength: -1, reg: regInfo{clobbers: callerSave}, aux: "CallOff", clobberFlags: true, call: true, tailCall: true},
497 {name: "CALLclosure", argLength: -1, reg: regInfo{inputs: []regMask{gpsp, buildReg("R26"), 0}, clobbers: callerSave}, aux: "CallOff", clobberFlags: true, call: true},
498 {name: "CALLinter", argLength: -1, reg: regInfo{inputs: []regMask{gp}, clobbers: callerSave}, aux: "CallOff", clobberFlags: true, call: true},
499
500
501 {name: "LoweredNilCheck", argLength: 2, reg: regInfo{inputs: []regMask{gpg}}, nilCheck: true, faultOnNilArg0: true},
502
503 {name: "Equal", argLength: 1, reg: readflags},
504 {name: "NotEqual", argLength: 1, reg: readflags},
505 {name: "LessThan", argLength: 1, reg: readflags},
506 {name: "LessEqual", argLength: 1, reg: readflags},
507 {name: "GreaterThan", argLength: 1, reg: readflags},
508 {name: "GreaterEqual", argLength: 1, reg: readflags},
509 {name: "LessThanU", argLength: 1, reg: readflags},
510 {name: "LessEqualU", argLength: 1, reg: readflags},
511 {name: "GreaterThanU", argLength: 1, reg: readflags},
512 {name: "GreaterEqualU", argLength: 1, reg: readflags},
513 {name: "LessThanF", argLength: 1, reg: readflags},
514 {name: "LessEqualF", argLength: 1, reg: readflags},
515 {name: "GreaterThanF", argLength: 1, reg: readflags},
516 {name: "GreaterEqualF", argLength: 1, reg: readflags},
517 {name: "NotLessThanF", argLength: 1, reg: readflags},
518 {name: "NotLessEqualF", argLength: 1, reg: readflags},
519 {name: "NotGreaterThanF", argLength: 1, reg: readflags},
520 {name: "NotGreaterEqualF", argLength: 1, reg: readflags},
521 {name: "LessThanNoov", argLength: 1, reg: readflags},
522 {name: "GreaterEqualNoov", argLength: 1, reg: readflags},
523
524
525
526
527
528
529
530
531 {
532 name: "DUFFZERO",
533 aux: "Int64",
534 argLength: 2,
535 reg: regInfo{
536 inputs: []regMask{buildReg("R20")},
537 clobbers: buildReg("R16 R17 R20 R30"),
538 },
539 faultOnNilArg0: true,
540 unsafePoint: true,
541 },
542
543
544
545
546
547
548
549
550
551
552
553 {
554 name: "LoweredZero",
555 argLength: 3,
556 reg: regInfo{
557 inputs: []regMask{buildReg("R16"), gp},
558 clobbers: buildReg("R16"),
559 },
560 clobberFlags: true,
561 faultOnNilArg0: true,
562 },
563
564
565
566
567
568
569
570
571
572 {
573 name: "DUFFCOPY",
574 aux: "Int64",
575 argLength: 3,
576 reg: regInfo{
577 inputs: []regMask{buildReg("R21"), buildReg("R20")},
578 clobbers: buildReg("R16 R17 R20 R21 R26 R30"),
579 },
580 faultOnNilArg0: true,
581 faultOnNilArg1: true,
582 unsafePoint: true,
583 },
584
585
586
587
588
589
590
591
592
593
594
595
596
597 {
598 name: "LoweredMove",
599 argLength: 4,
600 reg: regInfo{
601 inputs: []regMask{buildReg("R17"), buildReg("R16"), gp &^ buildReg("R25")},
602 clobbers: buildReg("R16 R17 R25"),
603 },
604 clobberFlags: true,
605 faultOnNilArg0: true,
606 faultOnNilArg1: true,
607 },
608
609
610
611
612 {name: "LoweredGetClosurePtr", reg: regInfo{outputs: []regMask{buildReg("R26")}}, zeroWidth: true},
613
614
615 {name: "LoweredGetCallerSP", argLength: 1, reg: gp01, rematerializeable: true},
616
617
618
619
620
621 {name: "LoweredGetCallerPC", reg: gp01, rematerializeable: true},
622
623
624
625
626
627
628 {name: "FlagConstant", aux: "FlagConstant"},
629
630
631
632 {name: "InvertFlags", argLength: 1},
633
634
635
636
637 {name: "LDAR", argLength: 2, reg: gpload, asm: "LDAR", faultOnNilArg0: true},
638 {name: "LDARB", argLength: 2, reg: gpload, asm: "LDARB", faultOnNilArg0: true},
639 {name: "LDARW", argLength: 2, reg: gpload, asm: "LDARW", faultOnNilArg0: true},
640
641
642
643 {name: "STLRB", argLength: 3, reg: gpstore, asm: "STLRB", faultOnNilArg0: true, hasSideEffects: true},
644 {name: "STLR", argLength: 3, reg: gpstore, asm: "STLR", faultOnNilArg0: true, hasSideEffects: true},
645 {name: "STLRW", argLength: 3, reg: gpstore, asm: "STLRW", faultOnNilArg0: true, hasSideEffects: true},
646
647
648
649
650
651
652 {name: "LoweredAtomicExchange64", argLength: 3, reg: gpxchg, resultNotInArgs: true, faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true},
653 {name: "LoweredAtomicExchange32", argLength: 3, reg: gpxchg, resultNotInArgs: true, faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true},
654
655
656
657
658 {name: "LoweredAtomicExchange64Variant", argLength: 3, reg: gpxchg, resultNotInArgs: true, faultOnNilArg0: true, hasSideEffects: true},
659 {name: "LoweredAtomicExchange32Variant", argLength: 3, reg: gpxchg, resultNotInArgs: true, faultOnNilArg0: true, hasSideEffects: true},
660
661
662
663
664
665
666
667 {name: "LoweredAtomicAdd64", argLength: 3, reg: gpxchg, resultNotInArgs: true, faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true},
668 {name: "LoweredAtomicAdd32", argLength: 3, reg: gpxchg, resultNotInArgs: true, faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true},
669
670
671
672
673
674 {name: "LoweredAtomicAdd64Variant", argLength: 3, reg: gpxchg, resultNotInArgs: true, faultOnNilArg0: true, hasSideEffects: true},
675 {name: "LoweredAtomicAdd32Variant", argLength: 3, reg: gpxchg, resultNotInArgs: true, faultOnNilArg0: true, hasSideEffects: true},
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691 {name: "LoweredAtomicCas64", argLength: 4, reg: gpcas, resultNotInArgs: true, clobberFlags: true, faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true},
692 {name: "LoweredAtomicCas32", argLength: 4, reg: gpcas, resultNotInArgs: true, clobberFlags: true, faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true},
693
694
695
696
697
698
699
700
701
702
703
704
705
706 {name: "LoweredAtomicCas64Variant", argLength: 4, reg: gpcas, resultNotInArgs: true, clobberFlags: true, faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true},
707 {name: "LoweredAtomicCas32Variant", argLength: 4, reg: gpcas, resultNotInArgs: true, clobberFlags: true, faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true},
708
709
710
711
712
713
714
715 {name: "LoweredAtomicAnd8", argLength: 3, reg: gpxchg, resultNotInArgs: true, asm: "AND", faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true, needIntTemp: true},
716 {name: "LoweredAtomicOr8", argLength: 3, reg: gpxchg, resultNotInArgs: true, asm: "ORR", faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true, needIntTemp: true},
717 {name: "LoweredAtomicAnd64", argLength: 3, reg: gpxchg, resultNotInArgs: true, asm: "AND", faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true, needIntTemp: true},
718 {name: "LoweredAtomicOr64", argLength: 3, reg: gpxchg, resultNotInArgs: true, asm: "ORR", faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true, needIntTemp: true},
719 {name: "LoweredAtomicAnd32", argLength: 3, reg: gpxchg, resultNotInArgs: true, asm: "AND", faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true, needIntTemp: true},
720 {name: "LoweredAtomicOr32", argLength: 3, reg: gpxchg, resultNotInArgs: true, asm: "ORR", faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true, needIntTemp: true},
721
722
723
724
725
726
727
728
729 {name: "LoweredAtomicAnd8Variant", argLength: 3, reg: gpxchg, resultNotInArgs: true, faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true},
730 {name: "LoweredAtomicOr8Variant", argLength: 3, reg: gpxchg, resultNotInArgs: true, faultOnNilArg0: true, hasSideEffects: true},
731 {name: "LoweredAtomicAnd64Variant", argLength: 3, reg: gpxchg, resultNotInArgs: true, faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true},
732 {name: "LoweredAtomicOr64Variant", argLength: 3, reg: gpxchg, resultNotInArgs: true, faultOnNilArg0: true, hasSideEffects: true},
733 {name: "LoweredAtomicAnd32Variant", argLength: 3, reg: gpxchg, resultNotInArgs: true, faultOnNilArg0: true, hasSideEffects: true, unsafePoint: true},
734 {name: "LoweredAtomicOr32Variant", argLength: 3, reg: gpxchg, resultNotInArgs: true, faultOnNilArg0: true, hasSideEffects: true},
735
736
737
738
739
740
741 {name: "LoweredWB", argLength: 1, reg: regInfo{clobbers: (callerSave &^ gpg) | buildReg("R16 R17 R30"), outputs: []regMask{buildReg("R25")}}, clobberFlags: true, aux: "Int64"},
742
743
744
745
746 {name: "LoweredPanicBoundsA", argLength: 3, aux: "Int64", reg: regInfo{inputs: []regMask{r2, r3}}, typ: "Mem", call: true},
747 {name: "LoweredPanicBoundsB", argLength: 3, aux: "Int64", reg: regInfo{inputs: []regMask{r1, r2}}, typ: "Mem", call: true},
748 {name: "LoweredPanicBoundsC", argLength: 3, aux: "Int64", reg: regInfo{inputs: []regMask{r0, r1}}, typ: "Mem", call: true},
749
750
751
752 {name: "PRFM", argLength: 2, aux: "Int64", reg: prefreg, asm: "PRFM", hasSideEffects: true},
753
754
755 {name: "DMB", argLength: 1, aux: "Int64", asm: "DMB", hasSideEffects: true},
756 }
757
758 blocks := []blockData{
759 {name: "EQ", controls: 1},
760 {name: "NE", controls: 1},
761 {name: "LT", controls: 1},
762 {name: "LE", controls: 1},
763 {name: "GT", controls: 1},
764 {name: "GE", controls: 1},
765 {name: "ULT", controls: 1},
766 {name: "ULE", controls: 1},
767 {name: "UGT", controls: 1},
768 {name: "UGE", controls: 1},
769 {name: "Z", controls: 1},
770 {name: "NZ", controls: 1},
771 {name: "ZW", controls: 1},
772 {name: "NZW", controls: 1},
773 {name: "TBZ", controls: 1, aux: "Int64"},
774 {name: "TBNZ", controls: 1, aux: "Int64"},
775 {name: "FLT", controls: 1},
776 {name: "FLE", controls: 1},
777 {name: "FGT", controls: 1},
778 {name: "FGE", controls: 1},
779 {name: "LTnoov", controls: 1},
780 {name: "LEnoov", controls: 1},
781 {name: "GTnoov", controls: 1},
782 {name: "GEnoov", controls: 1},
783
784
785
786
787
788 {name: "JUMPTABLE", controls: 2, aux: "Sym"},
789 }
790
791 archs = append(archs, arch{
792 name: "ARM64",
793 pkg: "cmd/internal/obj/arm64",
794 genfile: "../../arm64/ssa.go",
795 ops: ops,
796 blocks: blocks,
797 regnames: regNamesARM64,
798 ParamIntRegNames: "R0 R1 R2 R3 R4 R5 R6 R7 R8 R9 R10 R11 R12 R13 R14 R15",
799 ParamFloatRegNames: "F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 F13 F14 F15",
800 gpregmask: gp,
801 fpregmask: fp,
802 framepointerreg: -1,
803 linkreg: int8(num["R30"]),
804 })
805 }
806
View as plain text