File: x86-64-hlebad.s

package info (click to toggle)
binutils 2.31.1-16
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 309,412 kB
  • sloc: ansic: 1,161,194; asm: 638,508; cpp: 128,829; exp: 68,580; makefile: 55,828; sh: 22,360; yacc: 14,238; lisp: 13,272; perl: 2,111; ada: 1,681; lex: 1,652; pascal: 1,446; cs: 879; sed: 195; python: 154; xml: 95; awk: 25
file content (585 lines) | stat: -rw-r--r-- 14,692 bytes parent folder | download | duplicates (22)
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
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
# Check 64bit unsupported HLE instructions

	.allow_index_reg
	.text
_start:

# Tests for op imm8 al
	xacquire adc $100,%al
	xacquire lock adc $100,%al
	lock xacquire adc $100,%al
	xrelease adc $100,%al
	xrelease lock adc $100,%al
	lock xrelease adc $100,%al

# Tests for op imm16 ax
	xacquire adc $1000,%ax
	xacquire lock adc $1000,%ax
	lock xacquire adc $1000,%ax
	xrelease adc $1000,%ax
	xrelease lock adc $1000,%ax
	lock xrelease adc $1000,%ax

# Tests for op imm32 eax
	xacquire adc $10000000,%eax
	xacquire lock adc $10000000,%eax
	lock xacquire adc $10000000,%eax
	xrelease adc $10000000,%eax
	xrelease lock adc $10000000,%eax
	lock xrelease adc $10000000,%eax


# Tests for op imm32 rax
	xacquire adc $10000000,%rax
	xacquire lock adc $10000000,%rax
	lock xacquire adc $10000000,%rax
	xrelease adc $10000000,%rax
	xrelease lock adc $10000000,%rax
	lock xrelease adc $10000000,%rax

# Tests for op imm8 regb/m8
	xacquire adcb $100,%cl
	xacquire lock adcb $100,%cl
	lock xacquire adcb $100,%cl
	xrelease adcb $100,%cl
	xrelease lock adcb $100,%cl
	lock xrelease adcb $100,%cl
	xacquire adcb $100,(%rcx)
	xrelease adcb $100,(%rcx)

# Tests for op imm16 regs/m16
	xacquire adcw $1000,%cx
	xacquire lock adcw $1000,%cx
	lock xacquire adcw $1000,%cx
	xrelease adcw $1000,%cx
	xrelease lock adcw $1000,%cx
	lock xrelease adcw $1000,%cx
	xacquire adcw $1000,(%rcx)
	xrelease adcw $1000,(%rcx)

# Tests for op imm32 regl/m32
	xacquire adcl $10000000,%ecx
	xacquire lock adcl $10000000,%ecx
	lock xacquire adcl $10000000,%ecx
	xrelease adcl $10000000,%ecx
	xrelease lock adcl $10000000,%ecx
	lock xrelease adcl $10000000,%ecx
	xacquire adcl $10000000,(%rcx)
	xrelease adcl $10000000,(%rcx)

# Tests for op imm32 regq/m64
	xacquire adcq $10000000,%rcx
	xacquire lock adcq $10000000,%rcx
	lock xacquire adcq $10000000,%rcx
	xrelease adcq $10000000,%rcx
	xrelease lock adcq $10000000,%rcx
	lock xrelease adcq $10000000,%rcx
	xacquire adcq $10000000,(%rcx)
	xrelease adcq $10000000,(%rcx)

# Tests for op imm8 regs/m16
	xacquire adcw $100,%cx
	xacquire lock adcw $100,%cx
	lock xacquire adcw $100,%cx
	xrelease adcw $100,%cx
	xrelease lock adcw $100,%cx
	lock xrelease adcw $100,%cx
	xacquire adcw $100,(%rcx)
	xrelease adcw $100,(%rcx)

# Tests for op imm8 regl/m32
	xacquire adcl $100,%ecx
	xacquire lock adcl $100,%ecx
	lock xacquire adcl $100,%ecx
	xrelease adcl $100,%ecx
	xrelease lock adcl $100,%ecx
	lock xrelease adcl $100,%ecx
	xacquire adcl $100,(%rcx)
	xrelease adcl $100,(%rcx)

# Tests for op imm8 regq/m64
	xacquire adcq $100,%rcx
	xacquire lock adcq $100,%rcx
	lock xacquire adcq $100,%rcx
	xrelease adcq $100,%rcx
	xrelease lock adcq $100,%rcx
	lock xrelease adcq $100,%rcx
	xacquire adcq $100,(%rcx)
	xrelease adcq $100,(%rcx)

# Tests for op imm8 regb/m8
	xacquire adcb $100,%cl
	xacquire lock adcb $100,%cl
	lock xacquire adcb $100,%cl
	xrelease adcb $100,%cl
	xrelease lock adcb $100,%cl
	lock xrelease adcb $100,%cl
	xacquire adcb $100,(%rcx)
	xrelease adcb $100,(%rcx)

# Tests for op regb regb/m8
# Tests for op regb/m8 regb
	xacquire adcb %al,%cl
	xacquire lock adcb %al,%cl
	lock xacquire adcb %al,%cl
	xrelease adcb %al,%cl
	xrelease lock adcb %al,%cl
	lock xrelease adcb %al,%cl
	xacquire adcb %al,(%rcx)
	xrelease adcb %al,(%rcx)
	xacquire adcb %cl,%al
	xacquire lock adcb %cl,%al
	lock xacquire adcb %cl,%al
	xrelease adcb %cl,%al
	xrelease lock adcb %cl,%al
	lock xrelease adcb %cl,%al
	xacquire adcb (%rcx),%al
	xacquire lock adcb (%rcx),%al
	lock xacquire adcb (%rcx),%al
	xrelease adcb (%rcx),%al
	xrelease lock adcb (%rcx),%al
	lock xrelease adcb (%rcx),%al

# Tests for op regs regs/m16
# Tests for op regs/m16 regs
	xacquire adcw %ax,%cx
	xacquire lock adcw %ax,%cx
	lock xacquire adcw %ax,%cx
	xrelease adcw %ax,%cx
	xrelease lock adcw %ax,%cx
	lock xrelease adcw %ax,%cx
	xacquire adcw %ax,(%rcx)
	xrelease adcw %ax,(%rcx)
	xacquire adcw %cx,%ax
	xacquire lock adcw %cx,%ax
	lock xacquire adcw %cx,%ax
	xrelease adcw %cx,%ax
	xrelease lock adcw %cx,%ax
	lock xrelease adcw %cx,%ax
	xacquire adcw (%rcx),%ax
	xacquire lock adcw (%rcx),%ax
	lock xacquire adcw (%rcx),%ax
	xrelease adcw (%rcx),%ax
	xrelease lock adcw (%rcx),%ax
	lock xrelease adcw (%rcx),%ax

# Tests for op regl regl/m32
# Tests for op regl/m32 regl
	xacquire adcl %eax,%ecx
	xacquire lock adcl %eax,%ecx
	lock xacquire adcl %eax,%ecx
	xrelease adcl %eax,%ecx
	xrelease lock adcl %eax,%ecx
	lock xrelease adcl %eax,%ecx
	xacquire adcl %eax,(%rcx)
	xrelease adcl %eax,(%rcx)
	xacquire adcl %ecx,%eax
	xacquire lock adcl %ecx,%eax
	lock xacquire adcl %ecx,%eax
	xrelease adcl %ecx,%eax
	xrelease lock adcl %ecx,%eax
	lock xrelease adcl %ecx,%eax
	xacquire adcl (%rcx),%eax
	xacquire lock adcl (%rcx),%eax
	lock xacquire adcl (%rcx),%eax
	xrelease adcl (%rcx),%eax
	xrelease lock adcl (%rcx),%eax
	lock xrelease adcl (%rcx),%eax

# Tests for op regq regq/m64
# Tests for op regq/m64 regq
	xacquire adcq %rax,%rcx
	xacquire lock adcq %rax,%rcx
	lock xacquire adcq %rax,%rcx
	xrelease adcq %rax,%rcx
	xrelease lock adcq %rax,%rcx
	lock xrelease adcq %rax,%rcx
	xacquire adcq %rax,(%rcx)
	xrelease adcq %rax,(%rcx)
	xacquire adcq %rcx,%rax
	xacquire lock adcq %rcx,%rax
	lock xacquire adcq %rcx,%rax
	xrelease adcq %rcx,%rax
	xrelease lock adcq %rcx,%rax
	lock xrelease adcq %rcx,%rax
	xacquire adcq (%rcx),%rax
	xacquire lock adcq (%rcx),%rax
	lock xacquire adcq (%rcx),%rax
	xrelease adcq (%rcx),%rax
	xrelease lock adcq (%rcx),%rax
	lock xrelease adcq (%rcx),%rax

# Tests for op regs, regs/m16
	xacquire btcw %ax,%cx
	xacquire lock btcw %ax,%cx
	lock xacquire btcw %ax,%cx
	xrelease btcw %ax,%cx
	xrelease lock btcw %ax,%cx
	lock xrelease btcw %ax,%cx
	xacquire btcw %ax,(%rcx)
	xrelease btcw %ax,(%rcx)

# Tests for op regl regl/m32
	xacquire btcl %eax,%ecx
	xacquire lock btcl %eax,%ecx
	lock xacquire btcl %eax,%ecx
	xrelease btcl %eax,%ecx
	xrelease lock btcl %eax,%ecx
	lock xrelease btcl %eax,%ecx
	xacquire btcl %eax,(%rcx)
	xrelease btcl %eax,(%rcx)

# Tests for op regq regq/m64
	xacquire btcq %rax,%rcx
	xacquire lock btcq %rax,%rcx
	lock xacquire btcq %rax,%rcx
	xrelease btcq %rax,%rcx
	xrelease lock btcq %rax,%rcx
	lock xrelease btcq %rax,%rcx
	xacquire btcq %rax,(%rcx)
	xrelease btcq %rax,(%rcx)

# Tests for op regb/m8
	xacquire decb %cl
	xacquire lock decb %cl
	lock xacquire decb %cl
	xrelease decb %cl
	xrelease lock decb %cl
	lock xrelease decb %cl
	xacquire decb (%rcx)
	xrelease decb (%rcx)

# Tests for op regs/m16
	xacquire decw %cx
	xacquire lock decw %cx
	lock xacquire decw %cx
	xrelease decw %cx
	xrelease lock decw %cx
	lock xrelease decw %cx
	xacquire decw (%rcx)
	xrelease decw (%rcx)

# Tests for op regl/m32
	xacquire decl %ecx
	xacquire lock decl %ecx
	lock xacquire decl %ecx
	xrelease decl %ecx
	xrelease lock decl %ecx
	lock xrelease decl %ecx
	xacquire decl (%rcx)
	xrelease decl (%rcx)

# Tests for op regq/m64
	xacquire decq %rcx
	xacquire lock decq %rcx
	lock xacquire decq %rcx
	xrelease decq %rcx
	xrelease lock decq %rcx
	lock xrelease decq %rcx
	xacquire decq (%rcx)
	xrelease decq (%rcx)

# Tests for op m64
	xacquire cmpxchg8bq (%rcx)
	xrelease cmpxchg8bq (%rcx)

# Tests for op regb, regb/m8
	xacquire cmpxchgb %cl,%al
	xacquire lock cmpxchgb %cl,%al
	lock xacquire cmpxchgb %cl,%al
	xrelease cmpxchgb %cl,%al
	xrelease lock cmpxchgb %cl,%al
	lock xrelease cmpxchgb %cl,%al
	xacquire cmpxchgb %cl,(%rcx)
	xrelease cmpxchgb %cl,(%rcx)

	.intel_syntax noprefix

# Tests for op imm8 al
	xacquire adc al,100
	xacquire lock adc al,100
	lock xacquire adc al,100
	xrelease adc al,100
	xrelease lock adc al,100
	lock xrelease adc al,100

# Tests for op imm16 ax
	xacquire adc ax,1000
	xacquire lock adc ax,1000
	lock xacquire adc ax,1000
	xrelease adc ax,1000
	xrelease lock adc ax,1000
	lock xrelease adc ax,1000

# Tests for op imm32 eax
	xacquire adc eax,10000000
	xacquire lock adc eax,10000000
	lock xacquire adc eax,10000000
	xrelease adc eax,10000000
	xrelease lock adc eax,10000000
	lock xrelease adc eax,10000000


# Tests for op imm32 rax
	xacquire adc rax,10000000
	xacquire lock adc rax,10000000
	lock xacquire adc rax,10000000
	xrelease adc rax,10000000
	xrelease lock adc rax,10000000
	lock xrelease adc rax,10000000

# Tests for op imm8 regb/m8
	xacquire adc cl,100
	xacquire lock adc cl,100
	lock xacquire adc cl,100
	xrelease adc cl,100
	xrelease lock adc cl,100
	lock xrelease adc cl,100
	xacquire adc BYTE PTR [rcx],100
	xrelease adc BYTE PTR [rcx],100

# Tests for op imm16 regs/m16
	xacquire adc cx,1000
	xacquire lock adc cx,1000
	lock xacquire adc cx,1000
	xrelease adc cx,1000
	xrelease lock adc cx,1000
	lock xrelease adc cx,1000
	xacquire adc WORD PTR [rcx],1000
	xrelease adc WORD PTR [rcx],1000

# Tests for op imm32 regl/m32
	xacquire adc ecx,10000000
	xacquire lock adc ecx,10000000
	lock xacquire adc ecx,10000000
	xrelease adc ecx,10000000
	xrelease lock adc ecx,10000000
	lock xrelease adc ecx,10000000
	xacquire adc DWORD PTR [rcx],10000000
	xrelease adc DWORD PTR [rcx],10000000

# Tests for op imm32 regq/m64
	xacquire adc rcx,10000000
	xacquire lock adc rcx,10000000
	lock xacquire adc rcx,10000000
	xrelease adc rcx,10000000
	xrelease lock adc rcx,10000000
	lock xrelease adc rcx,10000000
	xacquire adc QWORD PTR [rcx],10000000
	xrelease adc QWORD PTR [rcx],10000000

# Tests for op imm8 regs/m16
	xacquire adc cx,100
	xacquire lock adc cx,100
	lock xacquire adc cx,100
	xrelease adc cx,100
	xrelease lock adc cx,100
	lock xrelease adc cx,100
	xacquire adc WORD PTR [rcx],100
	xrelease adc WORD PTR [rcx],100

# Tests for op imm8 regl/m32
	xacquire adc ecx,100
	xacquire lock adc ecx,100
	lock xacquire adc ecx,100
	xrelease adc ecx,100
	xrelease lock adc ecx,100
	lock xrelease adc ecx,100
	xacquire adc DWORD PTR [rcx],100
	xrelease adc DWORD PTR [rcx],100

# Tests for op imm8 regq/m64
	xacquire adc rcx,100
	xacquire lock adc rcx,100
	lock xacquire adc rcx,100
	xrelease adc rcx,100
	xrelease lock adc rcx,100
	lock xrelease adc rcx,100
	xacquire adc QWORD PTR [rcx],100
	xrelease adc QWORD PTR [rcx],100

# Tests for op imm8 regb/m8
	xacquire adc cl,100
	xacquire lock adc cl,100
	lock xacquire adc cl,100
	xrelease adc cl,100
	xrelease lock adc cl,100
	lock xrelease adc cl,100
	xacquire adc BYTE PTR [rcx],100
	xrelease adc BYTE PTR [rcx],100

# Tests for op regb regb/m8
# Tests for op regb/m8 regb
	xacquire adc cl,al
	xacquire lock adc cl,al
	lock xacquire adc cl,al
	xrelease adc cl,al
	xrelease lock adc cl,al
	lock xrelease adc cl,al
	xacquire adc BYTE PTR [rcx],al
	xrelease adc BYTE PTR [rcx],al
	xacquire adc al,cl
	xacquire lock adc al,cl
	lock xacquire adc al,cl
	xrelease adc al,cl
	xrelease lock adc al,cl
	lock xrelease adc al,cl
	xacquire adc al,BYTE PTR [rcx]
	xacquire lock adc al,BYTE PTR [rcx]
	lock xacquire adc al,BYTE PTR [rcx]
	xrelease adc al,BYTE PTR [rcx]
	xrelease lock adc al,BYTE PTR [rcx]
	lock xrelease adc al,BYTE PTR [rcx]

# Tests for op regs regs/m16
# Tests for op regs/m16 regs
	xacquire adc cx,ax
	xacquire lock adc cx,ax
	lock xacquire adc cx,ax
	xrelease adc cx,ax
	xrelease lock adc cx,ax
	lock xrelease adc cx,ax
	xacquire adc WORD PTR [rcx],ax
	xrelease adc WORD PTR [rcx],ax
	xacquire adc ax,cx
	xacquire lock adc ax,cx
	lock xacquire adc ax,cx
	xrelease adc ax,cx
	xrelease lock adc ax,cx
	lock xrelease adc ax,cx
	xacquire adc ax,WORD PTR [rcx]
	xacquire lock adc ax,WORD PTR [rcx]
	lock xacquire adc ax,WORD PTR [rcx]
	xrelease adc ax,WORD PTR [rcx]
	xrelease lock adc ax,WORD PTR [rcx]
	lock xrelease adc ax,WORD PTR [rcx]

# Tests for op regl regl/m32
# Tests for op regl/m32 regl
	xacquire adc ecx,eax
	xacquire lock adc ecx,eax
	lock xacquire adc ecx,eax
	xrelease adc ecx,eax
	xrelease lock adc ecx,eax
	lock xrelease adc ecx,eax
	xacquire adc DWORD PTR [rcx],eax
	xrelease adc DWORD PTR [rcx],eax
	xacquire adc eax,ecx
	xacquire lock adc eax,ecx
	lock xacquire adc eax,ecx
	xrelease adc eax,ecx
	xrelease lock adc eax,ecx
	lock xrelease adc eax,ecx
	xacquire adc eax,DWORD PTR [rcx]
	xacquire lock adc eax,DWORD PTR [rcx]
	lock xacquire adc eax,DWORD PTR [rcx]
	xrelease adc eax,DWORD PTR [rcx]
	xrelease lock adc eax,DWORD PTR [rcx]
	lock xrelease adc eax,DWORD PTR [rcx]

# Tests for op regq regq/m64
# Tests for op regq/m64 regq
	xacquire adc rcx,rax
	xacquire lock adc rcx,rax
	lock xacquire adc rcx,rax
	xrelease adc rcx,rax
	xrelease lock adc rcx,rax
	lock xrelease adc rcx,rax
	xacquire adc QWORD PTR [rcx],rax
	xrelease adc QWORD PTR [rcx],rax
	xacquire adc rax,rcx
	xacquire lock adc rax,rcx
	lock xacquire adc rax,rcx
	xrelease adc rax,rcx
	xrelease lock adc rax,rcx
	lock xrelease adc rax,rcx
	xacquire adc rax,QWORD PTR [rcx]
	xacquire lock adc rax,QWORD PTR [rcx]
	lock xacquire adc rax,QWORD PTR [rcx]
	xrelease adc rax,QWORD PTR [rcx]
	xrelease lock adc rax,QWORD PTR [rcx]
	lock xrelease adc rax,QWORD PTR [rcx]

# Tests for op regs, regs/m16
	xacquire btc cx,ax
	xacquire lock btc cx,ax
	lock xacquire btc cx,ax
	xrelease btc cx,ax
	xrelease lock btc cx,ax
	lock xrelease btc cx,ax
	xacquire btc WORD PTR [rcx],ax
	xrelease btc WORD PTR [rcx],ax

# Tests for op regl regl/m32
	xacquire btc ecx,eax
	xacquire lock btc ecx,eax
	lock xacquire btc ecx,eax
	xrelease btc ecx,eax
	xrelease lock btc ecx,eax
	lock xrelease btc ecx,eax
	xacquire btc DWORD PTR [rcx],eax
	xrelease btc DWORD PTR [rcx],eax

# Tests for op regq regq/m64
	xacquire btc rcx,rax
	xacquire lock btc rcx,rax
	lock xacquire btc rcx,rax
	xrelease btc rcx,rax
	xrelease lock btc rcx,rax
	lock xrelease btc rcx,rax
	xacquire btc QWORD PTR [rcx],rax
	xrelease btc QWORD PTR [rcx],rax

# Tests for op regb/m8
	xacquire dec cl
	xacquire lock dec cl
	lock xacquire dec cl
	xrelease dec cl
	xrelease lock dec cl
	lock xrelease dec cl
	xacquire dec BYTE PTR [rcx]
	xrelease dec BYTE PTR [rcx]

# Tests for op regs/m16
	xacquire dec cx
	xacquire lock dec cx
	lock xacquire dec cx
	xrelease dec cx
	xrelease lock dec cx
	lock xrelease dec cx
	xacquire dec WORD PTR [rcx]
	xrelease dec WORD PTR [rcx]

# Tests for op regl/m32
	xacquire dec ecx
	xacquire lock dec ecx
	lock xacquire dec ecx
	xrelease dec ecx
	xrelease lock dec ecx
	lock xrelease dec ecx
	xacquire dec DWORD PTR [rcx]
	xrelease dec DWORD PTR [rcx]

# Tests for op regq/m64
	xacquire dec rcx
	xacquire lock dec rcx
	lock xacquire dec rcx
	xrelease dec rcx
	xrelease lock dec rcx
	lock xrelease dec rcx
	xacquire dec QWORD PTR [rcx]
	xrelease dec QWORD PTR [rcx]

# Tests for op m64
	xacquire cmpxchg8b QWORD PTR [rcx]
	xrelease cmpxchg8b QWORD PTR [rcx]

# Tests for op regb, regb/m8
	xacquire cmpxchg al,cl
	xacquire lock cmpxchg al,cl
	lock xacquire cmpxchg al,cl
	xrelease cmpxchg al,cl
	xrelease lock cmpxchg al,cl
	lock xrelease cmpxchg al,cl
	xacquire cmpxchg BYTE PTR [rcx],cl
	xrelease cmpxchg BYTE PTR [rcx],cl