File: hle.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 (1274 lines) | stat: -rw-r--r-- 46,714 bytes parent folder | download | duplicates (11)
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
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
# Check 32bit HLE instructions

	.allow_index_reg
	.text
_start:

# Tests for op imm8 regb/m8
	xacquire lock adcb $100,(%ecx)
	lock xacquire adcb $100,(%ecx)
	xrelease lock adcb $100,(%ecx)
	lock xrelease adcb $100,(%ecx)
	.byte 0xf0; .byte 0xf2; adcb $100,(%ecx)
	.byte 0xf0; .byte 0xf3; adcb $100,(%ecx)
	xacquire lock addb $100,(%ecx)
	lock xacquire addb $100,(%ecx)
	xrelease lock addb $100,(%ecx)
	lock xrelease addb $100,(%ecx)
	.byte 0xf0; .byte 0xf2; addb $100,(%ecx)
	.byte 0xf0; .byte 0xf3; addb $100,(%ecx)
	xacquire lock andb $100,(%ecx)
	lock xacquire andb $100,(%ecx)
	xrelease lock andb $100,(%ecx)
	lock xrelease andb $100,(%ecx)
	.byte 0xf0; .byte 0xf2; andb $100,(%ecx)
	.byte 0xf0; .byte 0xf3; andb $100,(%ecx)
	xrelease movb $100,(%ecx)
	xacquire lock orb $100,(%ecx)
	lock xacquire orb $100,(%ecx)
	xrelease lock orb $100,(%ecx)
	lock xrelease orb $100,(%ecx)
	.byte 0xf0; .byte 0xf2; orb $100,(%ecx)
	.byte 0xf0; .byte 0xf3; orb $100,(%ecx)
	xacquire lock sbbb $100,(%ecx)
	lock xacquire sbbb $100,(%ecx)
	xrelease lock sbbb $100,(%ecx)
	lock xrelease sbbb $100,(%ecx)
	.byte 0xf0; .byte 0xf2; sbbb $100,(%ecx)
	.byte 0xf0; .byte 0xf3; sbbb $100,(%ecx)
	xacquire lock subb $100,(%ecx)
	lock xacquire subb $100,(%ecx)
	xrelease lock subb $100,(%ecx)
	lock xrelease subb $100,(%ecx)
	.byte 0xf0; .byte 0xf2; subb $100,(%ecx)
	.byte 0xf0; .byte 0xf3; subb $100,(%ecx)
	xacquire lock xorb $100,(%ecx)
	lock xacquire xorb $100,(%ecx)
	xrelease lock xorb $100,(%ecx)
	lock xrelease xorb $100,(%ecx)
	.byte 0xf0; .byte 0xf2; xorb $100,(%ecx)
	.byte 0xf0; .byte 0xf3; xorb $100,(%ecx)

# Tests for op imm16 regs/m16
	xacquire lock adcw $1000,(%ecx)
	lock xacquire adcw $1000,(%ecx)
	xrelease lock adcw $1000,(%ecx)
	lock xrelease adcw $1000,(%ecx)
	.byte 0xf0; .byte 0xf2; adcw $1000,(%ecx)
	.byte 0xf0; .byte 0xf3; adcw $1000,(%ecx)
	xacquire lock addw $1000,(%ecx)
	lock xacquire addw $1000,(%ecx)
	xrelease lock addw $1000,(%ecx)
	lock xrelease addw $1000,(%ecx)
	.byte 0xf0; .byte 0xf2; addw $1000,(%ecx)
	.byte 0xf0; .byte 0xf3; addw $1000,(%ecx)
	xacquire lock andw $1000,(%ecx)
	lock xacquire andw $1000,(%ecx)
	xrelease lock andw $1000,(%ecx)
	lock xrelease andw $1000,(%ecx)
	.byte 0xf0; .byte 0xf2; andw $1000,(%ecx)
	.byte 0xf0; .byte 0xf3; andw $1000,(%ecx)
	xrelease movw $1000,(%ecx)
	xacquire lock orw $1000,(%ecx)
	lock xacquire orw $1000,(%ecx)
	xrelease lock orw $1000,(%ecx)
	lock xrelease orw $1000,(%ecx)
	.byte 0xf0; .byte 0xf2; orw $1000,(%ecx)
	.byte 0xf0; .byte 0xf3; orw $1000,(%ecx)
	xacquire lock sbbw $1000,(%ecx)
	lock xacquire sbbw $1000,(%ecx)
	xrelease lock sbbw $1000,(%ecx)
	lock xrelease sbbw $1000,(%ecx)
	.byte 0xf0; .byte 0xf2; sbbw $1000,(%ecx)
	.byte 0xf0; .byte 0xf3; sbbw $1000,(%ecx)
	xacquire lock subw $1000,(%ecx)
	lock xacquire subw $1000,(%ecx)
	xrelease lock subw $1000,(%ecx)
	lock xrelease subw $1000,(%ecx)
	.byte 0xf0; .byte 0xf2; subw $1000,(%ecx)
	.byte 0xf0; .byte 0xf3; subw $1000,(%ecx)
	xacquire lock xorw $1000,(%ecx)
	lock xacquire xorw $1000,(%ecx)
	xrelease lock xorw $1000,(%ecx)
	lock xrelease xorw $1000,(%ecx)
	.byte 0xf0; .byte 0xf2; xorw $1000,(%ecx)
	.byte 0xf0; .byte 0xf3; xorw $1000,(%ecx)

# Tests for op imm32 regl/m32
	xacquire lock adcl $10000000,(%ecx)
	lock xacquire adcl $10000000,(%ecx)
	xrelease lock adcl $10000000,(%ecx)
	lock xrelease adcl $10000000,(%ecx)
	.byte 0xf0; .byte 0xf2; adcl $10000000,(%ecx)
	.byte 0xf0; .byte 0xf3; adcl $10000000,(%ecx)
	xacquire lock addl $10000000,(%ecx)
	lock xacquire addl $10000000,(%ecx)
	xrelease lock addl $10000000,(%ecx)
	lock xrelease addl $10000000,(%ecx)
	.byte 0xf0; .byte 0xf2; addl $10000000,(%ecx)
	.byte 0xf0; .byte 0xf3; addl $10000000,(%ecx)
	xacquire lock andl $10000000,(%ecx)
	lock xacquire andl $10000000,(%ecx)
	xrelease lock andl $10000000,(%ecx)
	lock xrelease andl $10000000,(%ecx)
	.byte 0xf0; .byte 0xf2; andl $10000000,(%ecx)
	.byte 0xf0; .byte 0xf3; andl $10000000,(%ecx)
	xrelease movl $10000000,(%ecx)
	xacquire lock orl $10000000,(%ecx)
	lock xacquire orl $10000000,(%ecx)
	xrelease lock orl $10000000,(%ecx)
	lock xrelease orl $10000000,(%ecx)
	.byte 0xf0; .byte 0xf2; orl $10000000,(%ecx)
	.byte 0xf0; .byte 0xf3; orl $10000000,(%ecx)
	xacquire lock sbbl $10000000,(%ecx)
	lock xacquire sbbl $10000000,(%ecx)
	xrelease lock sbbl $10000000,(%ecx)
	lock xrelease sbbl $10000000,(%ecx)
	.byte 0xf0; .byte 0xf2; sbbl $10000000,(%ecx)
	.byte 0xf0; .byte 0xf3; sbbl $10000000,(%ecx)
	xacquire lock subl $10000000,(%ecx)
	lock xacquire subl $10000000,(%ecx)
	xrelease lock subl $10000000,(%ecx)
	lock xrelease subl $10000000,(%ecx)
	.byte 0xf0; .byte 0xf2; subl $10000000,(%ecx)
	.byte 0xf0; .byte 0xf3; subl $10000000,(%ecx)
	xacquire lock xorl $10000000,(%ecx)
	lock xacquire xorl $10000000,(%ecx)
	xrelease lock xorl $10000000,(%ecx)
	lock xrelease xorl $10000000,(%ecx)
	.byte 0xf0; .byte 0xf2; xorl $10000000,(%ecx)
	.byte 0xf0; .byte 0xf3; xorl $10000000,(%ecx)

# Tests for op imm8 regs/m16
	xacquire lock adcw $100,(%ecx)
	lock xacquire adcw $100,(%ecx)
	xrelease lock adcw $100,(%ecx)
	lock xrelease adcw $100,(%ecx)
	.byte 0xf0; .byte 0xf2; adcw $100,(%ecx)
	.byte 0xf0; .byte 0xf3; adcw $100,(%ecx)
	xacquire lock addw $100,(%ecx)
	lock xacquire addw $100,(%ecx)
	xrelease lock addw $100,(%ecx)
	lock xrelease addw $100,(%ecx)
	.byte 0xf0; .byte 0xf2; addw $100,(%ecx)
	.byte 0xf0; .byte 0xf3; addw $100,(%ecx)
	xacquire lock andw $100,(%ecx)
	lock xacquire andw $100,(%ecx)
	xrelease lock andw $100,(%ecx)
	lock xrelease andw $100,(%ecx)
	.byte 0xf0; .byte 0xf2; andw $100,(%ecx)
	.byte 0xf0; .byte 0xf3; andw $100,(%ecx)
	xacquire lock btcw $100,(%ecx)
	lock xacquire btcw $100,(%ecx)
	xrelease lock btcw $100,(%ecx)
	lock xrelease btcw $100,(%ecx)
	.byte 0xf0; .byte 0xf2; btcw $100,(%ecx)
	.byte 0xf0; .byte 0xf3; btcw $100,(%ecx)
	xacquire lock btrw $100,(%ecx)
	lock xacquire btrw $100,(%ecx)
	xrelease lock btrw $100,(%ecx)
	lock xrelease btrw $100,(%ecx)
	.byte 0xf0; .byte 0xf2; btrw $100,(%ecx)
	.byte 0xf0; .byte 0xf3; btrw $100,(%ecx)
	xacquire lock btsw $100,(%ecx)
	lock xacquire btsw $100,(%ecx)
	xrelease lock btsw $100,(%ecx)
	lock xrelease btsw $100,(%ecx)
	.byte 0xf0; .byte 0xf2; btsw $100,(%ecx)
	.byte 0xf0; .byte 0xf3; btsw $100,(%ecx)
	xrelease movw $100,(%ecx)
	xacquire lock orw $100,(%ecx)
	lock xacquire orw $100,(%ecx)
	xrelease lock orw $100,(%ecx)
	lock xrelease orw $100,(%ecx)
	.byte 0xf0; .byte 0xf2; orw $100,(%ecx)
	.byte 0xf0; .byte 0xf3; orw $100,(%ecx)
	xacquire lock sbbw $100,(%ecx)
	lock xacquire sbbw $100,(%ecx)
	xrelease lock sbbw $100,(%ecx)
	lock xrelease sbbw $100,(%ecx)
	.byte 0xf0; .byte 0xf2; sbbw $100,(%ecx)
	.byte 0xf0; .byte 0xf3; sbbw $100,(%ecx)
	xacquire lock subw $100,(%ecx)
	lock xacquire subw $100,(%ecx)
	xrelease lock subw $100,(%ecx)
	lock xrelease subw $100,(%ecx)
	.byte 0xf0; .byte 0xf2; subw $100,(%ecx)
	.byte 0xf0; .byte 0xf3; subw $100,(%ecx)
	xacquire lock xorw $100,(%ecx)
	lock xacquire xorw $100,(%ecx)
	xrelease lock xorw $100,(%ecx)
	lock xrelease xorw $100,(%ecx)
	.byte 0xf0; .byte 0xf2; xorw $100,(%ecx)
	.byte 0xf0; .byte 0xf3; xorw $100,(%ecx)

# Tests for op imm8 regl/m32
	xacquire lock adcl $100,(%ecx)
	lock xacquire adcl $100,(%ecx)
	xrelease lock adcl $100,(%ecx)
	lock xrelease adcl $100,(%ecx)
	.byte 0xf0; .byte 0xf2; adcl $100,(%ecx)
	.byte 0xf0; .byte 0xf3; adcl $100,(%ecx)
	xacquire lock addl $100,(%ecx)
	lock xacquire addl $100,(%ecx)
	xrelease lock addl $100,(%ecx)
	lock xrelease addl $100,(%ecx)
	.byte 0xf0; .byte 0xf2; addl $100,(%ecx)
	.byte 0xf0; .byte 0xf3; addl $100,(%ecx)
	xacquire lock andl $100,(%ecx)
	lock xacquire andl $100,(%ecx)
	xrelease lock andl $100,(%ecx)
	lock xrelease andl $100,(%ecx)
	.byte 0xf0; .byte 0xf2; andl $100,(%ecx)
	.byte 0xf0; .byte 0xf3; andl $100,(%ecx)
	xacquire lock btcl $100,(%ecx)
	lock xacquire btcl $100,(%ecx)
	xrelease lock btcl $100,(%ecx)
	lock xrelease btcl $100,(%ecx)
	.byte 0xf0; .byte 0xf2; btcl $100,(%ecx)
	.byte 0xf0; .byte 0xf3; btcl $100,(%ecx)
	xacquire lock btrl $100,(%ecx)
	lock xacquire btrl $100,(%ecx)
	xrelease lock btrl $100,(%ecx)
	lock xrelease btrl $100,(%ecx)
	.byte 0xf0; .byte 0xf2; btrl $100,(%ecx)
	.byte 0xf0; .byte 0xf3; btrl $100,(%ecx)
	xacquire lock btsl $100,(%ecx)
	lock xacquire btsl $100,(%ecx)
	xrelease lock btsl $100,(%ecx)
	lock xrelease btsl $100,(%ecx)
	.byte 0xf0; .byte 0xf2; btsl $100,(%ecx)
	.byte 0xf0; .byte 0xf3; btsl $100,(%ecx)
	xrelease movl $100,(%ecx)
	xacquire lock orl $100,(%ecx)
	lock xacquire orl $100,(%ecx)
	xrelease lock orl $100,(%ecx)
	lock xrelease orl $100,(%ecx)
	.byte 0xf0; .byte 0xf2; orl $100,(%ecx)
	.byte 0xf0; .byte 0xf3; orl $100,(%ecx)
	xacquire lock sbbl $100,(%ecx)
	lock xacquire sbbl $100,(%ecx)
	xrelease lock sbbl $100,(%ecx)
	lock xrelease sbbl $100,(%ecx)
	.byte 0xf0; .byte 0xf2; sbbl $100,(%ecx)
	.byte 0xf0; .byte 0xf3; sbbl $100,(%ecx)
	xacquire lock subl $100,(%ecx)
	lock xacquire subl $100,(%ecx)
	xrelease lock subl $100,(%ecx)
	lock xrelease subl $100,(%ecx)
	.byte 0xf0; .byte 0xf2; subl $100,(%ecx)
	.byte 0xf0; .byte 0xf3; subl $100,(%ecx)
	xacquire lock xorl $100,(%ecx)
	lock xacquire xorl $100,(%ecx)
	xrelease lock xorl $100,(%ecx)
	lock xrelease xorl $100,(%ecx)
	.byte 0xf0; .byte 0xf2; xorl $100,(%ecx)
	.byte 0xf0; .byte 0xf3; xorl $100,(%ecx)

# Tests for op imm8 regb/m8
	xacquire lock adcb $100,(%ecx)
	lock xacquire adcb $100,(%ecx)
	xrelease lock adcb $100,(%ecx)
	lock xrelease adcb $100,(%ecx)
	.byte 0xf0; .byte 0xf2; adcb $100,(%ecx)
	.byte 0xf0; .byte 0xf3; adcb $100,(%ecx)
	xacquire lock addb $100,(%ecx)
	lock xacquire addb $100,(%ecx)
	xrelease lock addb $100,(%ecx)
	lock xrelease addb $100,(%ecx)
	.byte 0xf0; .byte 0xf2; addb $100,(%ecx)
	.byte 0xf0; .byte 0xf3; addb $100,(%ecx)
	xacquire lock andb $100,(%ecx)
	lock xacquire andb $100,(%ecx)
	xrelease lock andb $100,(%ecx)
	lock xrelease andb $100,(%ecx)
	.byte 0xf0; .byte 0xf2; andb $100,(%ecx)
	.byte 0xf0; .byte 0xf3; andb $100,(%ecx)
	xrelease movb $100,(%ecx)
	xacquire lock orb $100,(%ecx)
	lock xacquire orb $100,(%ecx)
	xrelease lock orb $100,(%ecx)
	lock xrelease orb $100,(%ecx)
	.byte 0xf0; .byte 0xf2; orb $100,(%ecx)
	.byte 0xf0; .byte 0xf3; orb $100,(%ecx)
	xacquire lock sbbb $100,(%ecx)
	lock xacquire sbbb $100,(%ecx)
	xrelease lock sbbb $100,(%ecx)
	lock xrelease sbbb $100,(%ecx)
	.byte 0xf0; .byte 0xf2; sbbb $100,(%ecx)
	.byte 0xf0; .byte 0xf3; sbbb $100,(%ecx)
	xacquire lock subb $100,(%ecx)
	lock xacquire subb $100,(%ecx)
	xrelease lock subb $100,(%ecx)
	lock xrelease subb $100,(%ecx)
	.byte 0xf0; .byte 0xf2; subb $100,(%ecx)
	.byte 0xf0; .byte 0xf3; subb $100,(%ecx)
	xacquire lock xorb $100,(%ecx)
	lock xacquire xorb $100,(%ecx)
	xrelease lock xorb $100,(%ecx)
	lock xrelease xorb $100,(%ecx)
	.byte 0xf0; .byte 0xf2; xorb $100,(%ecx)
	.byte 0xf0; .byte 0xf3; xorb $100,(%ecx)

# Tests for op regb regb/m8
# Tests for op regb/m8 regb
	xacquire lock adcb %al,(%ecx)
	lock xacquire adcb %al,(%ecx)
	xrelease lock adcb %al,(%ecx)
	lock xrelease adcb %al,(%ecx)
	.byte 0xf0; .byte 0xf2; adcb %al,(%ecx)
	.byte 0xf0; .byte 0xf3; adcb %al,(%ecx)
	xacquire lock addb %al,(%ecx)
	lock xacquire addb %al,(%ecx)
	xrelease lock addb %al,(%ecx)
	lock xrelease addb %al,(%ecx)
	.byte 0xf0; .byte 0xf2; addb %al,(%ecx)
	.byte 0xf0; .byte 0xf3; addb %al,(%ecx)
	xacquire lock andb %al,(%ecx)
	lock xacquire andb %al,(%ecx)
	xrelease lock andb %al,(%ecx)
	lock xrelease andb %al,(%ecx)
	.byte 0xf0; .byte 0xf2; andb %al,(%ecx)
	.byte 0xf0; .byte 0xf3; andb %al,(%ecx)
	xrelease movb %al,(%ecx)
	xrelease movb %al,0x12345678
	xacquire lock orb %al,(%ecx)
	lock xacquire orb %al,(%ecx)
	xrelease lock orb %al,(%ecx)
	lock xrelease orb %al,(%ecx)
	.byte 0xf0; .byte 0xf2; orb %al,(%ecx)
	.byte 0xf0; .byte 0xf3; orb %al,(%ecx)
	xacquire lock sbbb %al,(%ecx)
	lock xacquire sbbb %al,(%ecx)
	xrelease lock sbbb %al,(%ecx)
	lock xrelease sbbb %al,(%ecx)
	.byte 0xf0; .byte 0xf2; sbbb %al,(%ecx)
	.byte 0xf0; .byte 0xf3; sbbb %al,(%ecx)
	xacquire lock subb %al,(%ecx)
	lock xacquire subb %al,(%ecx)
	xrelease lock subb %al,(%ecx)
	lock xrelease subb %al,(%ecx)
	.byte 0xf0; .byte 0xf2; subb %al,(%ecx)
	.byte 0xf0; .byte 0xf3; subb %al,(%ecx)
	xacquire lock xchgb %al,(%ecx)
	lock xacquire xchgb %al,(%ecx)
	xacquire xchgb %al,(%ecx)
	xrelease lock xchgb %al,(%ecx)
	lock xrelease xchgb %al,(%ecx)
	xrelease xchgb %al,(%ecx)
	.byte 0xf0; .byte 0xf2; xchgb %al,(%ecx)
	.byte 0xf0; .byte 0xf3; xchgb %al,(%ecx)
	xacquire lock xorb %al,(%ecx)
	lock xacquire xorb %al,(%ecx)
	xrelease lock xorb %al,(%ecx)
	lock xrelease xorb %al,(%ecx)
	.byte 0xf0; .byte 0xf2; xorb %al,(%ecx)
	.byte 0xf0; .byte 0xf3; xorb %al,(%ecx)

# Tests for op regs regs/m16
# Tests for op regs/m16 regs
	xacquire lock adcw %ax,(%ecx)
	lock xacquire adcw %ax,(%ecx)
	xrelease lock adcw %ax,(%ecx)
	lock xrelease adcw %ax,(%ecx)
	.byte 0xf0; .byte 0xf2; adcw %ax,(%ecx)
	.byte 0xf0; .byte 0xf3; adcw %ax,(%ecx)
	xacquire lock addw %ax,(%ecx)
	lock xacquire addw %ax,(%ecx)
	xrelease lock addw %ax,(%ecx)
	lock xrelease addw %ax,(%ecx)
	.byte 0xf0; .byte 0xf2; addw %ax,(%ecx)
	.byte 0xf0; .byte 0xf3; addw %ax,(%ecx)
	xacquire lock andw %ax,(%ecx)
	lock xacquire andw %ax,(%ecx)
	xrelease lock andw %ax,(%ecx)
	lock xrelease andw %ax,(%ecx)
	.byte 0xf0; .byte 0xf2; andw %ax,(%ecx)
	.byte 0xf0; .byte 0xf3; andw %ax,(%ecx)
	xrelease movw %ax,(%ecx)
	xrelease movw %ax,0x12345678
	xacquire lock orw %ax,(%ecx)
	lock xacquire orw %ax,(%ecx)
	xrelease lock orw %ax,(%ecx)
	lock xrelease orw %ax,(%ecx)
	.byte 0xf0; .byte 0xf2; orw %ax,(%ecx)
	.byte 0xf0; .byte 0xf3; orw %ax,(%ecx)
	xacquire lock sbbw %ax,(%ecx)
	lock xacquire sbbw %ax,(%ecx)
	xrelease lock sbbw %ax,(%ecx)
	lock xrelease sbbw %ax,(%ecx)
	.byte 0xf0; .byte 0xf2; sbbw %ax,(%ecx)
	.byte 0xf0; .byte 0xf3; sbbw %ax,(%ecx)
	xacquire lock subw %ax,(%ecx)
	lock xacquire subw %ax,(%ecx)
	xrelease lock subw %ax,(%ecx)
	lock xrelease subw %ax,(%ecx)
	.byte 0xf0; .byte 0xf2; subw %ax,(%ecx)
	.byte 0xf0; .byte 0xf3; subw %ax,(%ecx)
	xacquire lock xchgw %ax,(%ecx)
	lock xacquire xchgw %ax,(%ecx)
	xacquire xchgw %ax,(%ecx)
	xrelease lock xchgw %ax,(%ecx)
	lock xrelease xchgw %ax,(%ecx)
	xrelease xchgw %ax,(%ecx)
	.byte 0xf0; .byte 0xf2; xchgw %ax,(%ecx)
	.byte 0xf0; .byte 0xf3; xchgw %ax,(%ecx)
	xacquire lock xorw %ax,(%ecx)
	lock xacquire xorw %ax,(%ecx)
	xrelease lock xorw %ax,(%ecx)
	lock xrelease xorw %ax,(%ecx)
	.byte 0xf0; .byte 0xf2; xorw %ax,(%ecx)
	.byte 0xf0; .byte 0xf3; xorw %ax,(%ecx)

# Tests for op regl regl/m32
# Tests for op regl/m32 regl
	xacquire lock adcl %eax,(%ecx)
	lock xacquire adcl %eax,(%ecx)
	xrelease lock adcl %eax,(%ecx)
	lock xrelease adcl %eax,(%ecx)
	.byte 0xf0; .byte 0xf2; adcl %eax,(%ecx)
	.byte 0xf0; .byte 0xf3; adcl %eax,(%ecx)
	xacquire lock addl %eax,(%ecx)
	lock xacquire addl %eax,(%ecx)
	xrelease lock addl %eax,(%ecx)
	lock xrelease addl %eax,(%ecx)
	.byte 0xf0; .byte 0xf2; addl %eax,(%ecx)
	.byte 0xf0; .byte 0xf3; addl %eax,(%ecx)
	xacquire lock andl %eax,(%ecx)
	lock xacquire andl %eax,(%ecx)
	xrelease lock andl %eax,(%ecx)
	lock xrelease andl %eax,(%ecx)
	.byte 0xf0; .byte 0xf2; andl %eax,(%ecx)
	.byte 0xf0; .byte 0xf3; andl %eax,(%ecx)
	xrelease movl %eax,(%ecx)
	xrelease movl %eax,0x12345678
	xacquire lock orl %eax,(%ecx)
	lock xacquire orl %eax,(%ecx)
	xrelease lock orl %eax,(%ecx)
	lock xrelease orl %eax,(%ecx)
	.byte 0xf0; .byte 0xf2; orl %eax,(%ecx)
	.byte 0xf0; .byte 0xf3; orl %eax,(%ecx)
	xacquire lock sbbl %eax,(%ecx)
	lock xacquire sbbl %eax,(%ecx)
	xrelease lock sbbl %eax,(%ecx)
	lock xrelease sbbl %eax,(%ecx)
	.byte 0xf0; .byte 0xf2; sbbl %eax,(%ecx)
	.byte 0xf0; .byte 0xf3; sbbl %eax,(%ecx)
	xacquire lock subl %eax,(%ecx)
	lock xacquire subl %eax,(%ecx)
	xrelease lock subl %eax,(%ecx)
	lock xrelease subl %eax,(%ecx)
	.byte 0xf0; .byte 0xf2; subl %eax,(%ecx)
	.byte 0xf0; .byte 0xf3; subl %eax,(%ecx)
	xacquire lock xchgl %eax,(%ecx)
	lock xacquire xchgl %eax,(%ecx)
	xacquire xchgl %eax,(%ecx)
	xrelease lock xchgl %eax,(%ecx)
	lock xrelease xchgl %eax,(%ecx)
	xrelease xchgl %eax,(%ecx)
	.byte 0xf0; .byte 0xf2; xchgl %eax,(%ecx)
	.byte 0xf0; .byte 0xf3; xchgl %eax,(%ecx)
	xacquire lock xorl %eax,(%ecx)
	lock xacquire xorl %eax,(%ecx)
	xrelease lock xorl %eax,(%ecx)
	lock xrelease xorl %eax,(%ecx)
	.byte 0xf0; .byte 0xf2; xorl %eax,(%ecx)
	.byte 0xf0; .byte 0xf3; xorl %eax,(%ecx)

# Tests for op regs, regs/m16
	xacquire lock btcw %ax,(%ecx)
	lock xacquire btcw %ax,(%ecx)
	xrelease lock btcw %ax,(%ecx)
	lock xrelease btcw %ax,(%ecx)
	.byte 0xf0; .byte 0xf2; btcw %ax,(%ecx)
	.byte 0xf0; .byte 0xf3; btcw %ax,(%ecx)
	xacquire lock btrw %ax,(%ecx)
	lock xacquire btrw %ax,(%ecx)
	xrelease lock btrw %ax,(%ecx)
	lock xrelease btrw %ax,(%ecx)
	.byte 0xf0; .byte 0xf2; btrw %ax,(%ecx)
	.byte 0xf0; .byte 0xf3; btrw %ax,(%ecx)
	xacquire lock btsw %ax,(%ecx)
	lock xacquire btsw %ax,(%ecx)
	xrelease lock btsw %ax,(%ecx)
	lock xrelease btsw %ax,(%ecx)
	.byte 0xf0; .byte 0xf2; btsw %ax,(%ecx)
	.byte 0xf0; .byte 0xf3; btsw %ax,(%ecx)
	xacquire lock cmpxchgw %ax,(%ecx)
	lock xacquire cmpxchgw %ax,(%ecx)
	xrelease lock cmpxchgw %ax,(%ecx)
	lock xrelease cmpxchgw %ax,(%ecx)
	.byte 0xf0; .byte 0xf2; cmpxchgw %ax,(%ecx)
	.byte 0xf0; .byte 0xf3; cmpxchgw %ax,(%ecx)
	xacquire lock xaddw %ax,(%ecx)
	lock xacquire xaddw %ax,(%ecx)
	xrelease lock xaddw %ax,(%ecx)
	lock xrelease xaddw %ax,(%ecx)
	.byte 0xf0; .byte 0xf2; xaddw %ax,(%ecx)
	.byte 0xf0; .byte 0xf3; xaddw %ax,(%ecx)

# Tests for op regl regl/m32
	xacquire lock btcl %eax,(%ecx)
	lock xacquire btcl %eax,(%ecx)
	xrelease lock btcl %eax,(%ecx)
	lock xrelease btcl %eax,(%ecx)
	.byte 0xf0; .byte 0xf2; btcl %eax,(%ecx)
	.byte 0xf0; .byte 0xf3; btcl %eax,(%ecx)
	xacquire lock btrl %eax,(%ecx)
	lock xacquire btrl %eax,(%ecx)
	xrelease lock btrl %eax,(%ecx)
	lock xrelease btrl %eax,(%ecx)
	.byte 0xf0; .byte 0xf2; btrl %eax,(%ecx)
	.byte 0xf0; .byte 0xf3; btrl %eax,(%ecx)
	xacquire lock btsl %eax,(%ecx)
	lock xacquire btsl %eax,(%ecx)
	xrelease lock btsl %eax,(%ecx)
	lock xrelease btsl %eax,(%ecx)
	.byte 0xf0; .byte 0xf2; btsl %eax,(%ecx)
	.byte 0xf0; .byte 0xf3; btsl %eax,(%ecx)
	xacquire lock cmpxchgl %eax,(%ecx)
	lock xacquire cmpxchgl %eax,(%ecx)
	xrelease lock cmpxchgl %eax,(%ecx)
	lock xrelease cmpxchgl %eax,(%ecx)
	.byte 0xf0; .byte 0xf2; cmpxchgl %eax,(%ecx)
	.byte 0xf0; .byte 0xf3; cmpxchgl %eax,(%ecx)
	xacquire lock xaddl %eax,(%ecx)
	lock xacquire xaddl %eax,(%ecx)
	xrelease lock xaddl %eax,(%ecx)
	lock xrelease xaddl %eax,(%ecx)
	.byte 0xf0; .byte 0xf2; xaddl %eax,(%ecx)
	.byte 0xf0; .byte 0xf3; xaddl %eax,(%ecx)

# Tests for op regb/m8
	xacquire lock decb (%ecx)
	lock xacquire decb (%ecx)
	xrelease lock decb (%ecx)
	lock xrelease decb (%ecx)
	.byte 0xf0; .byte 0xf2; decb (%ecx)
	.byte 0xf0; .byte 0xf3; decb (%ecx)
	xacquire lock incb (%ecx)
	lock xacquire incb (%ecx)
	xrelease lock incb (%ecx)
	lock xrelease incb (%ecx)
	.byte 0xf0; .byte 0xf2; incb (%ecx)
	.byte 0xf0; .byte 0xf3; incb (%ecx)
	xacquire lock negb (%ecx)
	lock xacquire negb (%ecx)
	xrelease lock negb (%ecx)
	lock xrelease negb (%ecx)
	.byte 0xf0; .byte 0xf2; negb (%ecx)
	.byte 0xf0; .byte 0xf3; negb (%ecx)
	xacquire lock notb (%ecx)
	lock xacquire notb (%ecx)
	xrelease lock notb (%ecx)
	lock xrelease notb (%ecx)
	.byte 0xf0; .byte 0xf2; notb (%ecx)
	.byte 0xf0; .byte 0xf3; notb (%ecx)

# Tests for op regs/m16
	xacquire lock decw (%ecx)
	lock xacquire decw (%ecx)
	xrelease lock decw (%ecx)
	lock xrelease decw (%ecx)
	.byte 0xf0; .byte 0xf2; decw (%ecx)
	.byte 0xf0; .byte 0xf3; decw (%ecx)
	xacquire lock incw (%ecx)
	lock xacquire incw (%ecx)
	xrelease lock incw (%ecx)
	lock xrelease incw (%ecx)
	.byte 0xf0; .byte 0xf2; incw (%ecx)
	.byte 0xf0; .byte 0xf3; incw (%ecx)
	xacquire lock negw (%ecx)
	lock xacquire negw (%ecx)
	xrelease lock negw (%ecx)
	lock xrelease negw (%ecx)
	.byte 0xf0; .byte 0xf2; negw (%ecx)
	.byte 0xf0; .byte 0xf3; negw (%ecx)
	xacquire lock notw (%ecx)
	lock xacquire notw (%ecx)
	xrelease lock notw (%ecx)
	lock xrelease notw (%ecx)
	.byte 0xf0; .byte 0xf2; notw (%ecx)
	.byte 0xf0; .byte 0xf3; notw (%ecx)

# Tests for op regl/m32
	xacquire lock decl (%ecx)
	lock xacquire decl (%ecx)
	xrelease lock decl (%ecx)
	lock xrelease decl (%ecx)
	.byte 0xf0; .byte 0xf2; decl (%ecx)
	.byte 0xf0; .byte 0xf3; decl (%ecx)
	xacquire lock incl (%ecx)
	lock xacquire incl (%ecx)
	xrelease lock incl (%ecx)
	lock xrelease incl (%ecx)
	.byte 0xf0; .byte 0xf2; incl (%ecx)
	.byte 0xf0; .byte 0xf3; incl (%ecx)
	xacquire lock negl (%ecx)
	lock xacquire negl (%ecx)
	xrelease lock negl (%ecx)
	lock xrelease negl (%ecx)
	.byte 0xf0; .byte 0xf2; negl (%ecx)
	.byte 0xf0; .byte 0xf3; negl (%ecx)
	xacquire lock notl (%ecx)
	lock xacquire notl (%ecx)
	xrelease lock notl (%ecx)
	lock xrelease notl (%ecx)
	.byte 0xf0; .byte 0xf2; notl (%ecx)
	.byte 0xf0; .byte 0xf3; notl (%ecx)

# Tests for op m64
	xacquire lock cmpxchg8bq (%ecx)
	lock xacquire cmpxchg8bq (%ecx)
	xrelease lock cmpxchg8bq (%ecx)
	lock xrelease cmpxchg8bq (%ecx)
	.byte 0xf0; .byte 0xf2; cmpxchg8bq (%ecx)
	.byte 0xf0; .byte 0xf3; cmpxchg8bq (%ecx)

# Tests for op regb, regb/m8
	xacquire lock cmpxchgb %cl,(%ecx)
	lock xacquire cmpxchgb %cl,(%ecx)
	xrelease lock cmpxchgb %cl,(%ecx)
	lock xrelease cmpxchgb %cl,(%ecx)
	.byte 0xf0; .byte 0xf2; cmpxchgb %cl,(%ecx)
	.byte 0xf0; .byte 0xf3; cmpxchgb %cl,(%ecx)
	xacquire lock xaddb %cl,(%ecx)
	lock xacquire xaddb %cl,(%ecx)
	xrelease lock xaddb %cl,(%ecx)
	lock xrelease xaddb %cl,(%ecx)
	.byte 0xf0; .byte 0xf2; xaddb %cl,(%ecx)
	.byte 0xf0; .byte 0xf3; xaddb %cl,(%ecx)

	.intel_syntax noprefix

# Tests for op imm8 regb/m8
	xacquire lock adc BYTE PTR [ecx],100
	lock xacquire adc BYTE PTR [ecx],100
	xrelease lock adc BYTE PTR [ecx],100
	lock xrelease adc BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf2; adc BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf3; adc BYTE PTR [ecx],100
	xacquire lock add BYTE PTR [ecx],100
	lock xacquire add BYTE PTR [ecx],100
	xrelease lock add BYTE PTR [ecx],100
	lock xrelease add BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf2; add BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf3; add BYTE PTR [ecx],100
	xacquire lock and BYTE PTR [ecx],100
	lock xacquire and BYTE PTR [ecx],100
	xrelease lock and BYTE PTR [ecx],100
	lock xrelease and BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf2; and BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf3; and BYTE PTR [ecx],100
	xrelease mov BYTE PTR [ecx],100
	xacquire lock or BYTE PTR [ecx],100
	lock xacquire or BYTE PTR [ecx],100
	xrelease lock or BYTE PTR [ecx],100
	lock xrelease or BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf2; or BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf3; or BYTE PTR [ecx],100
	xacquire lock sbb BYTE PTR [ecx],100
	lock xacquire sbb BYTE PTR [ecx],100
	xrelease lock sbb BYTE PTR [ecx],100
	lock xrelease sbb BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf2; sbb BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf3; sbb BYTE PTR [ecx],100
	xacquire lock sub BYTE PTR [ecx],100
	lock xacquire sub BYTE PTR [ecx],100
	xrelease lock sub BYTE PTR [ecx],100
	lock xrelease sub BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf2; sub BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf3; sub BYTE PTR [ecx],100
	xacquire lock xor BYTE PTR [ecx],100
	lock xacquire xor BYTE PTR [ecx],100
	xrelease lock xor BYTE PTR [ecx],100
	lock xrelease xor BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf2; xor BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf3; xor BYTE PTR [ecx],100

# Tests for op imm16 regs/m16
	xacquire lock adc WORD PTR [ecx],1000
	lock xacquire adc WORD PTR [ecx],1000
	xrelease lock adc WORD PTR [ecx],1000
	lock xrelease adc WORD PTR [ecx],1000
	.byte 0xf0; .byte 0xf2; adc WORD PTR [ecx],1000
	.byte 0xf0; .byte 0xf3; adc WORD PTR [ecx],1000
	xacquire lock add WORD PTR [ecx],1000
	lock xacquire add WORD PTR [ecx],1000
	xrelease lock add WORD PTR [ecx],1000
	lock xrelease add WORD PTR [ecx],1000
	.byte 0xf0; .byte 0xf2; add WORD PTR [ecx],1000
	.byte 0xf0; .byte 0xf3; add WORD PTR [ecx],1000
	xacquire lock and WORD PTR [ecx],1000
	lock xacquire and WORD PTR [ecx],1000
	xrelease lock and WORD PTR [ecx],1000
	lock xrelease and WORD PTR [ecx],1000
	.byte 0xf0; .byte 0xf2; and WORD PTR [ecx],1000
	.byte 0xf0; .byte 0xf3; and WORD PTR [ecx],1000
	xrelease mov WORD PTR [ecx],1000
	xacquire lock or WORD PTR [ecx],1000
	lock xacquire or WORD PTR [ecx],1000
	xrelease lock or WORD PTR [ecx],1000
	lock xrelease or WORD PTR [ecx],1000
	.byte 0xf0; .byte 0xf2; or WORD PTR [ecx],1000
	.byte 0xf0; .byte 0xf3; or WORD PTR [ecx],1000
	xacquire lock sbb WORD PTR [ecx],1000
	lock xacquire sbb WORD PTR [ecx],1000
	xrelease lock sbb WORD PTR [ecx],1000
	lock xrelease sbb WORD PTR [ecx],1000
	.byte 0xf0; .byte 0xf2; sbb WORD PTR [ecx],1000
	.byte 0xf0; .byte 0xf3; sbb WORD PTR [ecx],1000
	xacquire lock sub WORD PTR [ecx],1000
	lock xacquire sub WORD PTR [ecx],1000
	xrelease lock sub WORD PTR [ecx],1000
	lock xrelease sub WORD PTR [ecx],1000
	.byte 0xf0; .byte 0xf2; sub WORD PTR [ecx],1000
	.byte 0xf0; .byte 0xf3; sub WORD PTR [ecx],1000
	xacquire lock xor WORD PTR [ecx],1000
	lock xacquire xor WORD PTR [ecx],1000
	xrelease lock xor WORD PTR [ecx],1000
	lock xrelease xor WORD PTR [ecx],1000
	.byte 0xf0; .byte 0xf2; xor WORD PTR [ecx],1000
	.byte 0xf0; .byte 0xf3; xor WORD PTR [ecx],1000

# Tests for op imm32 regl/m32
	xacquire lock adc DWORD PTR [ecx],10000000
	lock xacquire adc DWORD PTR [ecx],10000000
	xrelease lock adc DWORD PTR [ecx],10000000
	lock xrelease adc DWORD PTR [ecx],10000000
	.byte 0xf0; .byte 0xf2; adc DWORD PTR [ecx],10000000
	.byte 0xf0; .byte 0xf3; adc DWORD PTR [ecx],10000000
	xacquire lock add DWORD PTR [ecx],10000000
	lock xacquire add DWORD PTR [ecx],10000000
	xrelease lock add DWORD PTR [ecx],10000000
	lock xrelease add DWORD PTR [ecx],10000000
	.byte 0xf0; .byte 0xf2; add DWORD PTR [ecx],10000000
	.byte 0xf0; .byte 0xf3; add DWORD PTR [ecx],10000000
	xacquire lock and DWORD PTR [ecx],10000000
	lock xacquire and DWORD PTR [ecx],10000000
	xrelease lock and DWORD PTR [ecx],10000000
	lock xrelease and DWORD PTR [ecx],10000000
	.byte 0xf0; .byte 0xf2; and DWORD PTR [ecx],10000000
	.byte 0xf0; .byte 0xf3; and DWORD PTR [ecx],10000000
	xrelease mov DWORD PTR [ecx],10000000
	xacquire lock or DWORD PTR [ecx],10000000
	lock xacquire or DWORD PTR [ecx],10000000
	xrelease lock or DWORD PTR [ecx],10000000
	lock xrelease or DWORD PTR [ecx],10000000
	.byte 0xf0; .byte 0xf2; or DWORD PTR [ecx],10000000
	.byte 0xf0; .byte 0xf3; or DWORD PTR [ecx],10000000
	xacquire lock sbb DWORD PTR [ecx],10000000
	lock xacquire sbb DWORD PTR [ecx],10000000
	xrelease lock sbb DWORD PTR [ecx],10000000
	lock xrelease sbb DWORD PTR [ecx],10000000
	.byte 0xf0; .byte 0xf2; sbb DWORD PTR [ecx],10000000
	.byte 0xf0; .byte 0xf3; sbb DWORD PTR [ecx],10000000
	xacquire lock sub DWORD PTR [ecx],10000000
	lock xacquire sub DWORD PTR [ecx],10000000
	xrelease lock sub DWORD PTR [ecx],10000000
	lock xrelease sub DWORD PTR [ecx],10000000
	.byte 0xf0; .byte 0xf2; sub DWORD PTR [ecx],10000000
	.byte 0xf0; .byte 0xf3; sub DWORD PTR [ecx],10000000
	xacquire lock xor DWORD PTR [ecx],10000000
	lock xacquire xor DWORD PTR [ecx],10000000
	xrelease lock xor DWORD PTR [ecx],10000000
	lock xrelease xor DWORD PTR [ecx],10000000
	.byte 0xf0; .byte 0xf2; xor DWORD PTR [ecx],10000000
	.byte 0xf0; .byte 0xf3; xor DWORD PTR [ecx],10000000

# Tests for op imm8 regs/m16
	xacquire lock adc WORD PTR [ecx],100
	lock xacquire adc WORD PTR [ecx],100
	xrelease lock adc WORD PTR [ecx],100
	lock xrelease adc WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; adc WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; adc WORD PTR [ecx],100
	xacquire lock add WORD PTR [ecx],100
	lock xacquire add WORD PTR [ecx],100
	xrelease lock add WORD PTR [ecx],100
	lock xrelease add WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; add WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; add WORD PTR [ecx],100
	xacquire lock and WORD PTR [ecx],100
	lock xacquire and WORD PTR [ecx],100
	xrelease lock and WORD PTR [ecx],100
	lock xrelease and WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; and WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; and WORD PTR [ecx],100
	xacquire lock btc WORD PTR [ecx],100
	lock xacquire btc WORD PTR [ecx],100
	xrelease lock btc WORD PTR [ecx],100
	lock xrelease btc WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; btc WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; btc WORD PTR [ecx],100
	xacquire lock btr WORD PTR [ecx],100
	lock xacquire btr WORD PTR [ecx],100
	xrelease lock btr WORD PTR [ecx],100
	lock xrelease btr WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; btr WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; btr WORD PTR [ecx],100
	xacquire lock bts WORD PTR [ecx],100
	lock xacquire bts WORD PTR [ecx],100
	xrelease lock bts WORD PTR [ecx],100
	lock xrelease bts WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; bts WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; bts WORD PTR [ecx],100
	xrelease mov WORD PTR [ecx],100
	xacquire lock or WORD PTR [ecx],100
	lock xacquire or WORD PTR [ecx],100
	xrelease lock or WORD PTR [ecx],100
	lock xrelease or WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; or WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; or WORD PTR [ecx],100
	xacquire lock sbb WORD PTR [ecx],100
	lock xacquire sbb WORD PTR [ecx],100
	xrelease lock sbb WORD PTR [ecx],100
	lock xrelease sbb WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; sbb WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; sbb WORD PTR [ecx],100
	xacquire lock sub WORD PTR [ecx],100
	lock xacquire sub WORD PTR [ecx],100
	xrelease lock sub WORD PTR [ecx],100
	lock xrelease sub WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; sub WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; sub WORD PTR [ecx],100
	xacquire lock xor WORD PTR [ecx],100
	lock xacquire xor WORD PTR [ecx],100
	xrelease lock xor WORD PTR [ecx],100
	lock xrelease xor WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; xor WORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; xor WORD PTR [ecx],100

# Tests for op imm8 regl/m32
	xacquire lock adc DWORD PTR [ecx],100
	lock xacquire adc DWORD PTR [ecx],100
	xrelease lock adc DWORD PTR [ecx],100
	lock xrelease adc DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; adc DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; adc DWORD PTR [ecx],100
	xacquire lock add DWORD PTR [ecx],100
	lock xacquire add DWORD PTR [ecx],100
	xrelease lock add DWORD PTR [ecx],100
	lock xrelease add DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; add DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; add DWORD PTR [ecx],100
	xacquire lock and DWORD PTR [ecx],100
	lock xacquire and DWORD PTR [ecx],100
	xrelease lock and DWORD PTR [ecx],100
	lock xrelease and DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; and DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; and DWORD PTR [ecx],100
	xacquire lock btc DWORD PTR [ecx],100
	lock xacquire btc DWORD PTR [ecx],100
	xrelease lock btc DWORD PTR [ecx],100
	lock xrelease btc DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; btc DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; btc DWORD PTR [ecx],100
	xacquire lock btr DWORD PTR [ecx],100
	lock xacquire btr DWORD PTR [ecx],100
	xrelease lock btr DWORD PTR [ecx],100
	lock xrelease btr DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; btr DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; btr DWORD PTR [ecx],100
	xacquire lock bts DWORD PTR [ecx],100
	lock xacquire bts DWORD PTR [ecx],100
	xrelease lock bts DWORD PTR [ecx],100
	lock xrelease bts DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; bts DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; bts DWORD PTR [ecx],100
	xrelease mov DWORD PTR [ecx],100
	xacquire lock or DWORD PTR [ecx],100
	lock xacquire or DWORD PTR [ecx],100
	xrelease lock or DWORD PTR [ecx],100
	lock xrelease or DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; or DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; or DWORD PTR [ecx],100
	xacquire lock sbb DWORD PTR [ecx],100
	lock xacquire sbb DWORD PTR [ecx],100
	xrelease lock sbb DWORD PTR [ecx],100
	lock xrelease sbb DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; sbb DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; sbb DWORD PTR [ecx],100
	xacquire lock sub DWORD PTR [ecx],100
	lock xacquire sub DWORD PTR [ecx],100
	xrelease lock sub DWORD PTR [ecx],100
	lock xrelease sub DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; sub DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; sub DWORD PTR [ecx],100
	xacquire lock xor DWORD PTR [ecx],100
	lock xacquire xor DWORD PTR [ecx],100
	xrelease lock xor DWORD PTR [ecx],100
	lock xrelease xor DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf2; xor DWORD PTR [ecx],100
	.byte 0xf0; .byte 0xf3; xor DWORD PTR [ecx],100

# Tests for op imm8 regb/m8
	xacquire lock adc BYTE PTR [ecx],100
	lock xacquire adc BYTE PTR [ecx],100
	xrelease lock adc BYTE PTR [ecx],100
	lock xrelease adc BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf2; adc BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf3; adc BYTE PTR [ecx],100
	xacquire lock add BYTE PTR [ecx],100
	lock xacquire add BYTE PTR [ecx],100
	xrelease lock add BYTE PTR [ecx],100
	lock xrelease add BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf2; add BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf3; add BYTE PTR [ecx],100
	xacquire lock and BYTE PTR [ecx],100
	lock xacquire and BYTE PTR [ecx],100
	xrelease lock and BYTE PTR [ecx],100
	lock xrelease and BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf2; and BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf3; and BYTE PTR [ecx],100
	xrelease mov BYTE PTR [ecx],100
	xacquire lock or BYTE PTR [ecx],100
	lock xacquire or BYTE PTR [ecx],100
	xrelease lock or BYTE PTR [ecx],100
	lock xrelease or BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf2; or BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf3; or BYTE PTR [ecx],100
	xacquire lock sbb BYTE PTR [ecx],100
	lock xacquire sbb BYTE PTR [ecx],100
	xrelease lock sbb BYTE PTR [ecx],100
	lock xrelease sbb BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf2; sbb BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf3; sbb BYTE PTR [ecx],100
	xacquire lock sub BYTE PTR [ecx],100
	lock xacquire sub BYTE PTR [ecx],100
	xrelease lock sub BYTE PTR [ecx],100
	lock xrelease sub BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf2; sub BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf3; sub BYTE PTR [ecx],100
	xacquire lock xor BYTE PTR [ecx],100
	lock xacquire xor BYTE PTR [ecx],100
	xrelease lock xor BYTE PTR [ecx],100
	lock xrelease xor BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf2; xor BYTE PTR [ecx],100
	.byte 0xf0; .byte 0xf3; xor BYTE PTR [ecx],100

# Tests for op regb regb/m8
# Tests for op regb/m8 regb
	xacquire lock adc BYTE PTR [ecx],al
	lock xacquire adc BYTE PTR [ecx],al
	xrelease lock adc BYTE PTR [ecx],al
	lock xrelease adc BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf2; adc BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf3; adc BYTE PTR [ecx],al
	xacquire lock add BYTE PTR [ecx],al
	lock xacquire add BYTE PTR [ecx],al
	xrelease lock add BYTE PTR [ecx],al
	lock xrelease add BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf2; add BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf3; add BYTE PTR [ecx],al
	xacquire lock and BYTE PTR [ecx],al
	lock xacquire and BYTE PTR [ecx],al
	xrelease lock and BYTE PTR [ecx],al
	lock xrelease and BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf2; and BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf3; and BYTE PTR [ecx],al
	xrelease mov BYTE PTR [ecx],al
	xacquire lock or BYTE PTR [ecx],al
	lock xacquire or BYTE PTR [ecx],al
	xrelease lock or BYTE PTR [ecx],al
	lock xrelease or BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf2; or BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf3; or BYTE PTR [ecx],al
	xacquire lock sbb BYTE PTR [ecx],al
	lock xacquire sbb BYTE PTR [ecx],al
	xrelease lock sbb BYTE PTR [ecx],al
	lock xrelease sbb BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf2; sbb BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf3; sbb BYTE PTR [ecx],al
	xacquire lock sub BYTE PTR [ecx],al
	lock xacquire sub BYTE PTR [ecx],al
	xrelease lock sub BYTE PTR [ecx],al
	lock xrelease sub BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf2; sub BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf3; sub BYTE PTR [ecx],al
	xacquire lock xchg BYTE PTR [ecx],al
	lock xacquire xchg BYTE PTR [ecx],al
	xacquire xchg BYTE PTR [ecx],al
	xrelease lock xchg BYTE PTR [ecx],al
	lock xrelease xchg BYTE PTR [ecx],al
	xrelease xchg BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf2; xchg BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf3; xchg BYTE PTR [ecx],al
	xacquire lock xor BYTE PTR [ecx],al
	lock xacquire xor BYTE PTR [ecx],al
	xrelease lock xor BYTE PTR [ecx],al
	lock xrelease xor BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf2; xor BYTE PTR [ecx],al
	.byte 0xf0; .byte 0xf3; xor BYTE PTR [ecx],al

# Tests for op regs regs/m16
# Tests for op regs/m16 regs
	xacquire lock adc WORD PTR [ecx],ax
	lock xacquire adc WORD PTR [ecx],ax
	xrelease lock adc WORD PTR [ecx],ax
	lock xrelease adc WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf2; adc WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf3; adc WORD PTR [ecx],ax
	xacquire lock add WORD PTR [ecx],ax
	lock xacquire add WORD PTR [ecx],ax
	xrelease lock add WORD PTR [ecx],ax
	lock xrelease add WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf2; add WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf3; add WORD PTR [ecx],ax
	xacquire lock and WORD PTR [ecx],ax
	lock xacquire and WORD PTR [ecx],ax
	xrelease lock and WORD PTR [ecx],ax
	lock xrelease and WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf2; and WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf3; and WORD PTR [ecx],ax
	xrelease mov WORD PTR [ecx],ax
	xacquire lock or WORD PTR [ecx],ax
	lock xacquire or WORD PTR [ecx],ax
	xrelease lock or WORD PTR [ecx],ax
	lock xrelease or WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf2; or WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf3; or WORD PTR [ecx],ax
	xacquire lock sbb WORD PTR [ecx],ax
	lock xacquire sbb WORD PTR [ecx],ax
	xrelease lock sbb WORD PTR [ecx],ax
	lock xrelease sbb WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf2; sbb WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf3; sbb WORD PTR [ecx],ax
	xacquire lock sub WORD PTR [ecx],ax
	lock xacquire sub WORD PTR [ecx],ax
	xrelease lock sub WORD PTR [ecx],ax
	lock xrelease sub WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf2; sub WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf3; sub WORD PTR [ecx],ax
	xacquire lock xchg WORD PTR [ecx],ax
	lock xacquire xchg WORD PTR [ecx],ax
	xacquire xchg WORD PTR [ecx],ax
	xrelease lock xchg WORD PTR [ecx],ax
	lock xrelease xchg WORD PTR [ecx],ax
	xrelease xchg WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf2; xchg WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf3; xchg WORD PTR [ecx],ax
	xacquire lock xor WORD PTR [ecx],ax
	lock xacquire xor WORD PTR [ecx],ax
	xrelease lock xor WORD PTR [ecx],ax
	lock xrelease xor WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf2; xor WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf3; xor WORD PTR [ecx],ax

# Tests for op regl regl/m32
# Tests for op regl/m32 regl
	xacquire lock adc DWORD PTR [ecx],eax
	lock xacquire adc DWORD PTR [ecx],eax
	xrelease lock adc DWORD PTR [ecx],eax
	lock xrelease adc DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf2; adc DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf3; adc DWORD PTR [ecx],eax
	xacquire lock add DWORD PTR [ecx],eax
	lock xacquire add DWORD PTR [ecx],eax
	xrelease lock add DWORD PTR [ecx],eax
	lock xrelease add DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf2; add DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf3; add DWORD PTR [ecx],eax
	xacquire lock and DWORD PTR [ecx],eax
	lock xacquire and DWORD PTR [ecx],eax
	xrelease lock and DWORD PTR [ecx],eax
	lock xrelease and DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf2; and DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf3; and DWORD PTR [ecx],eax
	xrelease mov DWORD PTR [ecx],eax
	xacquire lock or DWORD PTR [ecx],eax
	lock xacquire or DWORD PTR [ecx],eax
	xrelease lock or DWORD PTR [ecx],eax
	lock xrelease or DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf2; or DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf3; or DWORD PTR [ecx],eax
	xacquire lock sbb DWORD PTR [ecx],eax
	lock xacquire sbb DWORD PTR [ecx],eax
	xrelease lock sbb DWORD PTR [ecx],eax
	lock xrelease sbb DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf2; sbb DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf3; sbb DWORD PTR [ecx],eax
	xacquire lock sub DWORD PTR [ecx],eax
	lock xacquire sub DWORD PTR [ecx],eax
	xrelease lock sub DWORD PTR [ecx],eax
	lock xrelease sub DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf2; sub DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf3; sub DWORD PTR [ecx],eax
	xacquire lock xchg DWORD PTR [ecx],eax
	lock xacquire xchg DWORD PTR [ecx],eax
	xacquire xchg DWORD PTR [ecx],eax
	xrelease lock xchg DWORD PTR [ecx],eax
	lock xrelease xchg DWORD PTR [ecx],eax
	xrelease xchg DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf2; xchg DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf3; xchg DWORD PTR [ecx],eax
	xacquire lock xor DWORD PTR [ecx],eax
	lock xacquire xor DWORD PTR [ecx],eax
	xrelease lock xor DWORD PTR [ecx],eax
	lock xrelease xor DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf2; xor DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf3; xor DWORD PTR [ecx],eax

# Tests for op regs, regs/m16
	xacquire lock btc WORD PTR [ecx],ax
	lock xacquire btc WORD PTR [ecx],ax
	xrelease lock btc WORD PTR [ecx],ax
	lock xrelease btc WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf2; btc WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf3; btc WORD PTR [ecx],ax
	xacquire lock btr WORD PTR [ecx],ax
	lock xacquire btr WORD PTR [ecx],ax
	xrelease lock btr WORD PTR [ecx],ax
	lock xrelease btr WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf2; btr WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf3; btr WORD PTR [ecx],ax
	xacquire lock bts WORD PTR [ecx],ax
	lock xacquire bts WORD PTR [ecx],ax
	xrelease lock bts WORD PTR [ecx],ax
	lock xrelease bts WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf2; bts WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf3; bts WORD PTR [ecx],ax
	xacquire lock cmpxchg WORD PTR [ecx],ax
	lock xacquire cmpxchg WORD PTR [ecx],ax
	xrelease lock cmpxchg WORD PTR [ecx],ax
	lock xrelease cmpxchg WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf2; cmpxchg WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf3; cmpxchg WORD PTR [ecx],ax
	xacquire lock xadd WORD PTR [ecx],ax
	lock xacquire xadd WORD PTR [ecx],ax
	xrelease lock xadd WORD PTR [ecx],ax
	lock xrelease xadd WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf2; xadd WORD PTR [ecx],ax
	.byte 0xf0; .byte 0xf3; xadd WORD PTR [ecx],ax

# Tests for op regl regl/m32
	xacquire lock btc DWORD PTR [ecx],eax
	lock xacquire btc DWORD PTR [ecx],eax
	xrelease lock btc DWORD PTR [ecx],eax
	lock xrelease btc DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf2; btc DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf3; btc DWORD PTR [ecx],eax
	xacquire lock btr DWORD PTR [ecx],eax
	lock xacquire btr DWORD PTR [ecx],eax
	xrelease lock btr DWORD PTR [ecx],eax
	lock xrelease btr DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf2; btr DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf3; btr DWORD PTR [ecx],eax
	xacquire lock bts DWORD PTR [ecx],eax
	lock xacquire bts DWORD PTR [ecx],eax
	xrelease lock bts DWORD PTR [ecx],eax
	lock xrelease bts DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf2; bts DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf3; bts DWORD PTR [ecx],eax
	xacquire lock cmpxchg DWORD PTR [ecx],eax
	lock xacquire cmpxchg DWORD PTR [ecx],eax
	xrelease lock cmpxchg DWORD PTR [ecx],eax
	lock xrelease cmpxchg DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf2; cmpxchg DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf3; cmpxchg DWORD PTR [ecx],eax
	xacquire lock xadd DWORD PTR [ecx],eax
	lock xacquire xadd DWORD PTR [ecx],eax
	xrelease lock xadd DWORD PTR [ecx],eax
	lock xrelease xadd DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf2; xadd DWORD PTR [ecx],eax
	.byte 0xf0; .byte 0xf3; xadd DWORD PTR [ecx],eax

# Tests for op regb/m8
	xacquire lock dec BYTE PTR [ecx]
	lock xacquire dec BYTE PTR [ecx]
	xrelease lock dec BYTE PTR [ecx]
	lock xrelease dec BYTE PTR [ecx]
	.byte 0xf0; .byte 0xf2; dec BYTE PTR [ecx]
	.byte 0xf0; .byte 0xf3; dec BYTE PTR [ecx]
	xacquire lock inc BYTE PTR [ecx]
	lock xacquire inc BYTE PTR [ecx]
	xrelease lock inc BYTE PTR [ecx]
	lock xrelease inc BYTE PTR [ecx]
	.byte 0xf0; .byte 0xf2; inc BYTE PTR [ecx]
	.byte 0xf0; .byte 0xf3; inc BYTE PTR [ecx]
	xacquire lock neg BYTE PTR [ecx]
	lock xacquire neg BYTE PTR [ecx]
	xrelease lock neg BYTE PTR [ecx]
	lock xrelease neg BYTE PTR [ecx]
	.byte 0xf0; .byte 0xf2; neg BYTE PTR [ecx]
	.byte 0xf0; .byte 0xf3; neg BYTE PTR [ecx]
	xacquire lock not BYTE PTR [ecx]
	lock xacquire not BYTE PTR [ecx]
	xrelease lock not BYTE PTR [ecx]
	lock xrelease not BYTE PTR [ecx]
	.byte 0xf0; .byte 0xf2; not BYTE PTR [ecx]
	.byte 0xf0; .byte 0xf3; not BYTE PTR [ecx]

# Tests for op regs/m16
	xacquire lock dec WORD PTR [ecx]
	lock xacquire dec WORD PTR [ecx]
	xrelease lock dec WORD PTR [ecx]
	lock xrelease dec WORD PTR [ecx]
	.byte 0xf0; .byte 0xf2; dec WORD PTR [ecx]
	.byte 0xf0; .byte 0xf3; dec WORD PTR [ecx]
	xacquire lock inc WORD PTR [ecx]
	lock xacquire inc WORD PTR [ecx]
	xrelease lock inc WORD PTR [ecx]
	lock xrelease inc WORD PTR [ecx]
	.byte 0xf0; .byte 0xf2; inc WORD PTR [ecx]
	.byte 0xf0; .byte 0xf3; inc WORD PTR [ecx]
	xacquire lock neg WORD PTR [ecx]
	lock xacquire neg WORD PTR [ecx]
	xrelease lock neg WORD PTR [ecx]
	lock xrelease neg WORD PTR [ecx]
	.byte 0xf0; .byte 0xf2; neg WORD PTR [ecx]
	.byte 0xf0; .byte 0xf3; neg WORD PTR [ecx]
	xacquire lock not WORD PTR [ecx]
	lock xacquire not WORD PTR [ecx]
	xrelease lock not WORD PTR [ecx]
	lock xrelease not WORD PTR [ecx]
	.byte 0xf0; .byte 0xf2; not WORD PTR [ecx]
	.byte 0xf0; .byte 0xf3; not WORD PTR [ecx]

# Tests for op regl/m32
	xacquire lock dec DWORD PTR [ecx]
	lock xacquire dec DWORD PTR [ecx]
	xrelease lock dec DWORD PTR [ecx]
	lock xrelease dec DWORD PTR [ecx]
	.byte 0xf0; .byte 0xf2; dec DWORD PTR [ecx]
	.byte 0xf0; .byte 0xf3; dec DWORD PTR [ecx]
	xacquire lock inc DWORD PTR [ecx]
	lock xacquire inc DWORD PTR [ecx]
	xrelease lock inc DWORD PTR [ecx]
	lock xrelease inc DWORD PTR [ecx]
	.byte 0xf0; .byte 0xf2; inc DWORD PTR [ecx]
	.byte 0xf0; .byte 0xf3; inc DWORD PTR [ecx]
	xacquire lock neg DWORD PTR [ecx]
	lock xacquire neg DWORD PTR [ecx]
	xrelease lock neg DWORD PTR [ecx]
	lock xrelease neg DWORD PTR [ecx]
	.byte 0xf0; .byte 0xf2; neg DWORD PTR [ecx]
	.byte 0xf0; .byte 0xf3; neg DWORD PTR [ecx]
	xacquire lock not DWORD PTR [ecx]
	lock xacquire not DWORD PTR [ecx]
	xrelease lock not DWORD PTR [ecx]
	lock xrelease not DWORD PTR [ecx]
	.byte 0xf0; .byte 0xf2; not DWORD PTR [ecx]
	.byte 0xf0; .byte 0xf3; not DWORD PTR [ecx]

# Tests for op m64
	xacquire lock cmpxchg8b QWORD PTR [ecx]
	lock xacquire cmpxchg8b QWORD PTR [ecx]
	xrelease lock cmpxchg8b QWORD PTR [ecx]
	lock xrelease cmpxchg8b QWORD PTR [ecx]
	.byte 0xf0; .byte 0xf2; cmpxchg8b QWORD PTR [ecx]
	.byte 0xf0; .byte 0xf3; cmpxchg8b QWORD PTR [ecx]

# Tests for op regb, regb/m8
	xacquire lock cmpxchg BYTE PTR [ecx],cl
	lock xacquire cmpxchg BYTE PTR [ecx],cl
	xrelease lock cmpxchg BYTE PTR [ecx],cl
	lock xrelease cmpxchg BYTE PTR [ecx],cl
	.byte 0xf0; .byte 0xf2; cmpxchg BYTE PTR [ecx],cl
	.byte 0xf0; .byte 0xf3; cmpxchg BYTE PTR [ecx],cl
	xacquire lock xadd BYTE PTR [ecx],cl
	lock xacquire xadd BYTE PTR [ecx],cl
	xrelease lock xadd BYTE PTR [ecx],cl
	lock xrelease xadd BYTE PTR [ecx],cl
	.byte 0xf0; .byte 0xf2; xadd BYTE PTR [ecx],cl
	.byte 0xf0; .byte 0xf3; xadd BYTE PTR [ecx],cl