1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
|
/// @file
/// IPF specific application register reading functions
///
/// Copyright (c) 2008, Intel Corporation
/// All rights reserved. This program and the accompanying materials
/// are licensed and made available under the terms and conditions of the BSD License
/// which accompanies this distribution. The full text of the license may be found at
/// http://opensource.org/licenses/bsd-license.php
///
/// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
/// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
///
///
///
.text
.type AsmReadApplicationRegisterK0, @function
.proc AsmReadApplicationRegisterK0
//
// Reads appplication register K0.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_K0
//
// @return The 64-bit application register K0.
//
AsmReadApplicationRegisterK0::
mov r8 = ar.k0;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterK0
.text
.type AsmReadApplicationRegisterK1, @function
.proc AsmReadApplicationRegisterK1
//
// Reads appplication register K1.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_K1
//
// @return The 64-bit application register K1.
//
AsmReadApplicationRegisterK1::
mov r8 = ar.k1;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterK1
.text
.type AsmReadApplicationRegisterK2, @function
.proc AsmReadApplicationRegisterK2
//
// Reads appplication register K2.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_K2
//
// @return The 64-bit application register K2.
//
AsmReadApplicationRegisterK2::
mov r8 = ar.k2;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterK2
.text
.type AsmReadApplicationRegisterK3, @function
.proc AsmReadApplicationRegisterK3
//
// Reads appplication register K3.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_K3
//
// @return The 64-bit application register K3.
//
AsmReadApplicationRegisterK3::
mov r8 = ar.k3;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterK3
.text
.type AsmReadApplicationRegisterK4, @function
.proc AsmReadApplicationRegisterK4
//
// Reads appplication register K4.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_K4
//
// @return The 64-bit application register K4.
//
AsmReadApplicationRegisterK4::
mov r8 = ar.k4;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterK4
.text
.type AsmReadApplicationRegisterK5, @function
.proc AsmReadApplicationRegisterK5
//
// Reads appplication register K5.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_K5
//
// @return The 64-bit application register K5.
//
AsmReadApplicationRegisterK5::
mov r8 = ar.k5;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterK5
.text
.type AsmReadApplicationRegisterK6, @function
.proc AsmReadApplicationRegisterK6
//
// Reads appplication register K6.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_K6
//
// @return The 64-bit application register K6.
//
AsmReadApplicationRegisterK6::
mov r8 = ar.k6;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterK6
.text
.type AsmReadApplicationRegisterK7, @function
.proc AsmReadApplicationRegisterK7
//
// Reads appplication register K7.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_K7
//
// @return The 64-bit application register K7.
//
AsmReadApplicationRegisterK7::
mov r8 = ar.k7;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterK7
.text
.type AsmReadApplicationRegisterRsc, @function
.proc AsmReadApplicationRegisterRsc
//
// Reads appplication register RSC.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_RSC
//
// @return The 64-bit application register RSC.
//
AsmReadApplicationRegisterRsc::
mov r8 = ar.rsc;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterRsc
.text
.type AsmReadApplicationRegisterBsp, @function
.proc AsmReadApplicationRegisterBsp
//
// Reads appplication register BSP.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_BSP
//
// @return The 64-bit application register BSP.
//
AsmReadApplicationRegisterBsp::
mov r8 = ar.bsp;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterBsp
.text
.type AsmReadApplicationRegisterBspstore, @function
.proc AsmReadApplicationRegisterBspstore
//
// Reads appplication register BSPSTORE.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_BSPSTORE
//
// @return The 64-bit application register BSPSTORE.
//
AsmReadApplicationRegisterBspstore::
mov r8 = ar.bspstore;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterBspstore
.text
.type AsmReadApplicationRegisterRnat, @function
.proc AsmReadApplicationRegisterRnat
//
// Reads appplication register RNAT.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_RNAT
//
// @return The 64-bit application register RNAT.
//
AsmReadApplicationRegisterRnat::
mov r8 = ar.rnat;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterRnat
.text
.type AsmReadApplicationRegisterFcr, @function
.proc AsmReadApplicationRegisterFcr
//
// Reads appplication register FCR.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_FCR
//
// @return The 64-bit application register FCR.
//
AsmReadApplicationRegisterFcr::
mov r8 = ar.fcr;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterFcr
.text
.type AsmReadApplicationRegisterEflag, @function
.proc AsmReadApplicationRegisterEflag
//
// Reads appplication register EFLAG.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_EFLAG
//
// @return The 64-bit application register EFLAG.
//
AsmReadApplicationRegisterEflag::
mov r8 = ar.eflag;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterEflag
.text
.type AsmReadApplicationRegisterCsd, @function
.proc AsmReadApplicationRegisterCsd
//
// Reads appplication register CSD.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_CSD
//
// @return The 64-bit application register CSD.
//
AsmReadApplicationRegisterCsd::
mov r8 = ar.csd;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterCsd
.text
.type AsmReadApplicationRegisterSsd, @function
.proc AsmReadApplicationRegisterSsd
//
// Reads appplication register SSD.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_SSD
//
// @return The 64-bit application register SSD.
//
AsmReadApplicationRegisterSsd::
mov r8 = ar.ssd;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterSsd
.text
.type AsmReadApplicationRegisterCflg, @function
.proc AsmReadApplicationRegisterCflg
//
// Reads appplication register CFLG.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_CFLG
//
// @return The 64-bit application register CFLG.
//
AsmReadApplicationRegisterCflg::
mov r8 = ar.cflg;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterCflg
.text
.type AsmReadApplicationRegisterFsr, @function
.proc AsmReadApplicationRegisterFsr
//
// Reads appplication register FSR.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_FSR
//
// @return The 64-bit application register FSR.
//
AsmReadApplicationRegisterFsr::
mov r8 = ar.fsr;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterFsr
.text
.type AsmReadApplicationRegisterFir, @function
.proc AsmReadApplicationRegisterFir
//
// Reads appplication register FIR.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_FIR
//
// @return The 64-bit application register FIR.
//
AsmReadApplicationRegisterFir::
mov r8 = ar.fir;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterFir
.text
.type AsmReadApplicationRegisterFdr, @function
.proc AsmReadApplicationRegisterFdr
//
// Reads appplication register FDR.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_FDR
//
// @return The 64-bit application register FDR.
//
AsmReadApplicationRegisterFdr::
mov r8 = ar.fdr;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterFdr
.text
.type AsmReadApplicationRegisterCcv, @function
.proc AsmReadApplicationRegisterCcv
//
// Reads appplication register CCV.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_CCV
//
// @return The 64-bit application register CCV.
//
AsmReadApplicationRegisterCcv::
mov r8 = ar.ccv;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterCcv
.text
.type AsmReadApplicationRegisterUnat, @function
.proc AsmReadApplicationRegisterUnat
//
// Reads appplication register UNAT.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_UNAT
//
// @return The 64-bit application register UNAT.
//
AsmReadApplicationRegisterUnat::
mov r8 = ar.unat;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterUnat
.text
.type AsmReadApplicationRegisterFpsr, @function
.proc AsmReadApplicationRegisterFpsr
//
// Reads appplication register FPSR.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_FPSR
//
// @return The 64-bit application register FPSR.
//
AsmReadApplicationRegisterFpsr::
mov r8 = ar.fpsr;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterFpsr
.text
.type AsmReadApplicationRegisterItc, @function
.proc AsmReadApplicationRegisterItc
//
// Reads appplication register ITC.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_ITC
//
// @return The 64-bit application register ITC.
//
AsmReadApplicationRegisterItc::
mov r8 = ar.itc;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterItc
.text
.type AsmReadApplicationRegisterPfs, @function
.proc AsmReadApplicationRegisterPfs
//
// Reads appplication register PFS.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_PFS
//
// @return The 64-bit application register PFS.
//
AsmReadApplicationRegisterPfs::
mov r8 = ar.pfs;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterPfs
.text
.type AsmReadApplicationRegisterLc, @function
.proc AsmReadApplicationRegisterLc
//
// Reads appplication register LC.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_LC
//
// @return The 64-bit application register LC.
//
AsmReadApplicationRegisterLc::
mov r8 = ar.lc;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterLc
.text
.type AsmReadApplicationRegisterEc, @function
.proc AsmReadApplicationRegisterEc
//
// Reads appplication register EC.
//
// This is a worker function for AsmReadApplicationRegister()
// when its parameter Index is IPF_APPLICATION_REGISTER_EC
//
// @return The 64-bit application register EC.
//
AsmReadApplicationRegisterEc::
mov r8 = ar.ec;;
br.ret.dpnt b0;;
.endp AsmReadApplicationRegisterEc
|