File: x86-64-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 (1717 lines) | stat: -rw-r--r-- 63,430 bytes parent folder | download | duplicates (20)
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
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
# Check 64bit HLE instructions

	.allow_index_reg
	.text
_start:


# Tests for op imm32 rax

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

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

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

# Tests for op imm32 regq/m64
	xacquire lock adcq $10000000,(%rcx)
	lock xacquire adcq $10000000,(%rcx)
	xrelease lock adcq $10000000,(%rcx)
	lock xrelease adcq $10000000,(%rcx)
	.byte 0xf0; .byte 0xf2; adcq $10000000,(%rcx)
	.byte 0xf0; .byte 0xf3; adcq $10000000,(%rcx)
	xacquire lock addq $10000000,(%rcx)
	lock xacquire addq $10000000,(%rcx)
	xrelease lock addq $10000000,(%rcx)
	lock xrelease addq $10000000,(%rcx)
	.byte 0xf0; .byte 0xf2; addq $10000000,(%rcx)
	.byte 0xf0; .byte 0xf3; addq $10000000,(%rcx)
	xacquire lock andq $10000000,(%rcx)
	lock xacquire andq $10000000,(%rcx)
	xrelease lock andq $10000000,(%rcx)
	lock xrelease andq $10000000,(%rcx)
	.byte 0xf0; .byte 0xf2; andq $10000000,(%rcx)
	.byte 0xf0; .byte 0xf3; andq $10000000,(%rcx)
	xrelease movq $10000000,(%rcx)
	xacquire lock orq $10000000,(%rcx)
	lock xacquire orq $10000000,(%rcx)
	xrelease lock orq $10000000,(%rcx)
	lock xrelease orq $10000000,(%rcx)
	.byte 0xf0; .byte 0xf2; orq $10000000,(%rcx)
	.byte 0xf0; .byte 0xf3; orq $10000000,(%rcx)
	xacquire lock sbbq $10000000,(%rcx)
	lock xacquire sbbq $10000000,(%rcx)
	xrelease lock sbbq $10000000,(%rcx)
	lock xrelease sbbq $10000000,(%rcx)
	.byte 0xf0; .byte 0xf2; sbbq $10000000,(%rcx)
	.byte 0xf0; .byte 0xf3; sbbq $10000000,(%rcx)
	xacquire lock subq $10000000,(%rcx)
	lock xacquire subq $10000000,(%rcx)
	xrelease lock subq $10000000,(%rcx)
	lock xrelease subq $10000000,(%rcx)
	.byte 0xf0; .byte 0xf2; subq $10000000,(%rcx)
	.byte 0xf0; .byte 0xf3; subq $10000000,(%rcx)
	xacquire lock xorq $10000000,(%rcx)
	lock xacquire xorq $10000000,(%rcx)
	xrelease lock xorq $10000000,(%rcx)
	lock xrelease xorq $10000000,(%rcx)
	.byte 0xf0; .byte 0xf2; xorq $10000000,(%rcx)
	.byte 0xf0; .byte 0xf3; xorq $10000000,(%rcx)

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

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

# Tests for op imm8 regq/m64
	xacquire lock adcq $100,(%rcx)
	lock xacquire adcq $100,(%rcx)
	xrelease lock adcq $100,(%rcx)
	lock xrelease adcq $100,(%rcx)
	.byte 0xf0; .byte 0xf2; adcq $100,(%rcx)
	.byte 0xf0; .byte 0xf3; adcq $100,(%rcx)
	xacquire lock addq $100,(%rcx)
	lock xacquire addq $100,(%rcx)
	xrelease lock addq $100,(%rcx)
	lock xrelease addq $100,(%rcx)
	.byte 0xf0; .byte 0xf2; addq $100,(%rcx)
	.byte 0xf0; .byte 0xf3; addq $100,(%rcx)
	xacquire lock andq $100,(%rcx)
	lock xacquire andq $100,(%rcx)
	xrelease lock andq $100,(%rcx)
	lock xrelease andq $100,(%rcx)
	.byte 0xf0; .byte 0xf2; andq $100,(%rcx)
	.byte 0xf0; .byte 0xf3; andq $100,(%rcx)
	xacquire lock btcq $100,(%rcx)
	lock xacquire btcq $100,(%rcx)
	xrelease lock btcq $100,(%rcx)
	lock xrelease btcq $100,(%rcx)
	.byte 0xf0; .byte 0xf2; btcq $100,(%rcx)
	.byte 0xf0; .byte 0xf3; btcq $100,(%rcx)
	xacquire lock btrq $100,(%rcx)
	lock xacquire btrq $100,(%rcx)
	xrelease lock btrq $100,(%rcx)
	lock xrelease btrq $100,(%rcx)
	.byte 0xf0; .byte 0xf2; btrq $100,(%rcx)
	.byte 0xf0; .byte 0xf3; btrq $100,(%rcx)
	xacquire lock btsq $100,(%rcx)
	lock xacquire btsq $100,(%rcx)
	xrelease lock btsq $100,(%rcx)
	lock xrelease btsq $100,(%rcx)
	.byte 0xf0; .byte 0xf2; btsq $100,(%rcx)
	.byte 0xf0; .byte 0xf3; btsq $100,(%rcx)
	xrelease movq $100,(%rcx)
	xacquire lock orq $100,(%rcx)
	lock xacquire orq $100,(%rcx)
	xrelease lock orq $100,(%rcx)
	lock xrelease orq $100,(%rcx)
	.byte 0xf0; .byte 0xf2; orq $100,(%rcx)
	.byte 0xf0; .byte 0xf3; orq $100,(%rcx)
	xacquire lock sbbq $100,(%rcx)
	lock xacquire sbbq $100,(%rcx)
	xrelease lock sbbq $100,(%rcx)
	lock xrelease sbbq $100,(%rcx)
	.byte 0xf0; .byte 0xf2; sbbq $100,(%rcx)
	.byte 0xf0; .byte 0xf3; sbbq $100,(%rcx)
	xacquire lock subq $100,(%rcx)
	lock xacquire subq $100,(%rcx)
	xrelease lock subq $100,(%rcx)
	lock xrelease subq $100,(%rcx)
	.byte 0xf0; .byte 0xf2; subq $100,(%rcx)
	.byte 0xf0; .byte 0xf3; subq $100,(%rcx)
	xacquire lock xorq $100,(%rcx)
	lock xacquire xorq $100,(%rcx)
	xrelease lock xorq $100,(%rcx)
	lock xrelease xorq $100,(%rcx)
	.byte 0xf0; .byte 0xf2; xorq $100,(%rcx)
	.byte 0xf0; .byte 0xf3; xorq $100,(%rcx)

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

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

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

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

# Tests for op regq regq/m64
# Tests for op regq/m64 regq
	xacquire lock adcq %rax,(%rcx)
	lock xacquire adcq %rax,(%rcx)
	xrelease lock adcq %rax,(%rcx)
	lock xrelease adcq %rax,(%rcx)
	.byte 0xf0; .byte 0xf2; adcq %rax,(%rcx)
	.byte 0xf0; .byte 0xf3; adcq %rax,(%rcx)
	xacquire lock addq %rax,(%rcx)
	lock xacquire addq %rax,(%rcx)
	xrelease lock addq %rax,(%rcx)
	lock xrelease addq %rax,(%rcx)
	.byte 0xf0; .byte 0xf2; addq %rax,(%rcx)
	.byte 0xf0; .byte 0xf3; addq %rax,(%rcx)
	xacquire lock andq %rax,(%rcx)
	lock xacquire andq %rax,(%rcx)
	xrelease lock andq %rax,(%rcx)
	lock xrelease andq %rax,(%rcx)
	.byte 0xf0; .byte 0xf2; andq %rax,(%rcx)
	.byte 0xf0; .byte 0xf3; andq %rax,(%rcx)
	xrelease movq %rax,(%rcx)
	xacquire lock orq %rax,(%rcx)
	lock xacquire orq %rax,(%rcx)
	xrelease lock orq %rax,(%rcx)
	lock xrelease orq %rax,(%rcx)
	.byte 0xf0; .byte 0xf2; orq %rax,(%rcx)
	.byte 0xf0; .byte 0xf3; orq %rax,(%rcx)
	xacquire lock sbbq %rax,(%rcx)
	lock xacquire sbbq %rax,(%rcx)
	xrelease lock sbbq %rax,(%rcx)
	lock xrelease sbbq %rax,(%rcx)
	.byte 0xf0; .byte 0xf2; sbbq %rax,(%rcx)
	.byte 0xf0; .byte 0xf3; sbbq %rax,(%rcx)
	xacquire lock subq %rax,(%rcx)
	lock xacquire subq %rax,(%rcx)
	xrelease lock subq %rax,(%rcx)
	lock xrelease subq %rax,(%rcx)
	.byte 0xf0; .byte 0xf2; subq %rax,(%rcx)
	.byte 0xf0; .byte 0xf3; subq %rax,(%rcx)
	xacquire lock xchgq %rax,(%rcx)
	lock xacquire xchgq %rax,(%rcx)
	xacquire xchgq %rax,(%rcx)
	xrelease lock xchgq %rax,(%rcx)
	lock xrelease xchgq %rax,(%rcx)
	xrelease xchgq %rax,(%rcx)
	.byte 0xf0; .byte 0xf2; xchgq %rax,(%rcx)
	.byte 0xf0; .byte 0xf3; xchgq %rax,(%rcx)
	xacquire lock xorq %rax,(%rcx)
	lock xacquire xorq %rax,(%rcx)
	xrelease lock xorq %rax,(%rcx)
	lock xrelease xorq %rax,(%rcx)
	.byte 0xf0; .byte 0xf2; xorq %rax,(%rcx)
	.byte 0xf0; .byte 0xf3; xorq %rax,(%rcx)

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

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

# Tests for op regq regq/m64
	xacquire lock btcq %rax,(%rcx)
	lock xacquire btcq %rax,(%rcx)
	xrelease lock btcq %rax,(%rcx)
	lock xrelease btcq %rax,(%rcx)
	.byte 0xf0; .byte 0xf2; btcq %rax,(%rcx)
	.byte 0xf0; .byte 0xf3; btcq %rax,(%rcx)
	xacquire lock btrq %rax,(%rcx)
	lock xacquire btrq %rax,(%rcx)
	xrelease lock btrq %rax,(%rcx)
	lock xrelease btrq %rax,(%rcx)
	.byte 0xf0; .byte 0xf2; btrq %rax,(%rcx)
	.byte 0xf0; .byte 0xf3; btrq %rax,(%rcx)
	xacquire lock btsq %rax,(%rcx)
	lock xacquire btsq %rax,(%rcx)
	xrelease lock btsq %rax,(%rcx)
	lock xrelease btsq %rax,(%rcx)
	.byte 0xf0; .byte 0xf2; btsq %rax,(%rcx)
	.byte 0xf0; .byte 0xf3; btsq %rax,(%rcx)
	xacquire lock cmpxchgq %rax,(%rcx)
	lock xacquire cmpxchgq %rax,(%rcx)
	xrelease lock cmpxchgq %rax,(%rcx)
	lock xrelease cmpxchgq %rax,(%rcx)
	.byte 0xf0; .byte 0xf2; cmpxchgq %rax,(%rcx)
	.byte 0xf0; .byte 0xf3; cmpxchgq %rax,(%rcx)
	xacquire lock xaddq %rax,(%rcx)
	lock xacquire xaddq %rax,(%rcx)
	xrelease lock xaddq %rax,(%rcx)
	lock xrelease xaddq %rax,(%rcx)
	.byte 0xf0; .byte 0xf2; xaddq %rax,(%rcx)
	.byte 0xf0; .byte 0xf3; xaddq %rax,(%rcx)

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

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

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

# Tests for op regq/m64
	xacquire lock decq (%rcx)
	lock xacquire decq (%rcx)
	xrelease lock decq (%rcx)
	lock xrelease decq (%rcx)
	.byte 0xf0; .byte 0xf2; decq (%rcx)
	.byte 0xf0; .byte 0xf3; decq (%rcx)
	xacquire lock incq (%rcx)
	lock xacquire incq (%rcx)
	xrelease lock incq (%rcx)
	lock xrelease incq (%rcx)
	.byte 0xf0; .byte 0xf2; incq (%rcx)
	.byte 0xf0; .byte 0xf3; incq (%rcx)
	xacquire lock negq (%rcx)
	lock xacquire negq (%rcx)
	xrelease lock negq (%rcx)
	lock xrelease negq (%rcx)
	.byte 0xf0; .byte 0xf2; negq (%rcx)
	.byte 0xf0; .byte 0xf3; negq (%rcx)
	xacquire lock notq (%rcx)
	lock xacquire notq (%rcx)
	xrelease lock notq (%rcx)
	lock xrelease notq (%rcx)
	.byte 0xf0; .byte 0xf2; notq (%rcx)
	.byte 0xf0; .byte 0xf3; notq (%rcx)

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

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

	.intel_syntax noprefix


# Tests for op imm32 rax

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

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

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

# Tests for op imm32 regq/m64
	xacquire lock adc QWORD PTR [rcx],10000000
	lock xacquire adc QWORD PTR [rcx],10000000
	xrelease lock adc QWORD PTR [rcx],10000000
	lock xrelease adc QWORD PTR [rcx],10000000
	.byte 0xf0; .byte 0xf2; adc QWORD PTR [rcx],10000000
	.byte 0xf0; .byte 0xf3; adc QWORD PTR [rcx],10000000
	xacquire lock add QWORD PTR [rcx],10000000
	lock xacquire add QWORD PTR [rcx],10000000
	xrelease lock add QWORD PTR [rcx],10000000
	lock xrelease add QWORD PTR [rcx],10000000
	.byte 0xf0; .byte 0xf2; add QWORD PTR [rcx],10000000
	.byte 0xf0; .byte 0xf3; add QWORD PTR [rcx],10000000
	xacquire lock and QWORD PTR [rcx],10000000
	lock xacquire and QWORD PTR [rcx],10000000
	xrelease lock and QWORD PTR [rcx],10000000
	lock xrelease and QWORD PTR [rcx],10000000
	.byte 0xf0; .byte 0xf2; and QWORD PTR [rcx],10000000
	.byte 0xf0; .byte 0xf3; and QWORD PTR [rcx],10000000
	xrelease mov QWORD PTR [rcx],10000000
	xacquire lock or QWORD PTR [rcx],10000000
	lock xacquire or QWORD PTR [rcx],10000000
	xrelease lock or QWORD PTR [rcx],10000000
	lock xrelease or QWORD PTR [rcx],10000000
	.byte 0xf0; .byte 0xf2; or QWORD PTR [rcx],10000000
	.byte 0xf0; .byte 0xf3; or QWORD PTR [rcx],10000000
	xacquire lock sbb QWORD PTR [rcx],10000000
	lock xacquire sbb QWORD PTR [rcx],10000000
	xrelease lock sbb QWORD PTR [rcx],10000000
	lock xrelease sbb QWORD PTR [rcx],10000000
	.byte 0xf0; .byte 0xf2; sbb QWORD PTR [rcx],10000000
	.byte 0xf0; .byte 0xf3; sbb QWORD PTR [rcx],10000000
	xacquire lock sub QWORD PTR [rcx],10000000
	lock xacquire sub QWORD PTR [rcx],10000000
	xrelease lock sub QWORD PTR [rcx],10000000
	lock xrelease sub QWORD PTR [rcx],10000000
	.byte 0xf0; .byte 0xf2; sub QWORD PTR [rcx],10000000
	.byte 0xf0; .byte 0xf3; sub QWORD PTR [rcx],10000000
	xacquire lock xor QWORD PTR [rcx],10000000
	lock xacquire xor QWORD PTR [rcx],10000000
	xrelease lock xor QWORD PTR [rcx],10000000
	lock xrelease xor QWORD PTR [rcx],10000000
	.byte 0xf0; .byte 0xf2; xor QWORD PTR [rcx],10000000
	.byte 0xf0; .byte 0xf3; xor QWORD PTR [rcx],10000000

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

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

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

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

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

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

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

# Tests for op regq regq/m64
# Tests for op regq/m64 regq
	xacquire lock adc QWORD PTR [rcx],rax
	lock xacquire adc QWORD PTR [rcx],rax
	xrelease lock adc QWORD PTR [rcx],rax
	lock xrelease adc QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf2; adc QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf3; adc QWORD PTR [rcx],rax
	xacquire lock add QWORD PTR [rcx],rax
	lock xacquire add QWORD PTR [rcx],rax
	xrelease lock add QWORD PTR [rcx],rax
	lock xrelease add QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf2; add QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf3; add QWORD PTR [rcx],rax
	xacquire lock and QWORD PTR [rcx],rax
	lock xacquire and QWORD PTR [rcx],rax
	xrelease lock and QWORD PTR [rcx],rax
	lock xrelease and QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf2; and QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf3; and QWORD PTR [rcx],rax
	xrelease mov QWORD PTR [rcx],rax
	xacquire lock or QWORD PTR [rcx],rax
	lock xacquire or QWORD PTR [rcx],rax
	xrelease lock or QWORD PTR [rcx],rax
	lock xrelease or QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf2; or QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf3; or QWORD PTR [rcx],rax
	xacquire lock sbb QWORD PTR [rcx],rax
	lock xacquire sbb QWORD PTR [rcx],rax
	xrelease lock sbb QWORD PTR [rcx],rax
	lock xrelease sbb QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf2; sbb QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf3; sbb QWORD PTR [rcx],rax
	xacquire lock sub QWORD PTR [rcx],rax
	lock xacquire sub QWORD PTR [rcx],rax
	xrelease lock sub QWORD PTR [rcx],rax
	lock xrelease sub QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf2; sub QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf3; sub QWORD PTR [rcx],rax
	xacquire lock xchg QWORD PTR [rcx],rax
	lock xacquire xchg QWORD PTR [rcx],rax
	xacquire xchg QWORD PTR [rcx],rax
	xrelease lock xchg QWORD PTR [rcx],rax
	lock xrelease xchg QWORD PTR [rcx],rax
	xrelease xchg QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf2; xchg QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf3; xchg QWORD PTR [rcx],rax
	xacquire lock xor QWORD PTR [rcx],rax
	lock xacquire xor QWORD PTR [rcx],rax
	xrelease lock xor QWORD PTR [rcx],rax
	lock xrelease xor QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf2; xor QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf3; xor QWORD PTR [rcx],rax

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

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

# Tests for op regq regq/m64
	xacquire lock btc QWORD PTR [rcx],rax
	lock xacquire btc QWORD PTR [rcx],rax
	xrelease lock btc QWORD PTR [rcx],rax
	lock xrelease btc QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf2; btc QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf3; btc QWORD PTR [rcx],rax
	xacquire lock btr QWORD PTR [rcx],rax
	lock xacquire btr QWORD PTR [rcx],rax
	xrelease lock btr QWORD PTR [rcx],rax
	lock xrelease btr QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf2; btr QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf3; btr QWORD PTR [rcx],rax
	xacquire lock bts QWORD PTR [rcx],rax
	lock xacquire bts QWORD PTR [rcx],rax
	xrelease lock bts QWORD PTR [rcx],rax
	lock xrelease bts QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf2; bts QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf3; bts QWORD PTR [rcx],rax
	xacquire lock cmpxchg QWORD PTR [rcx],rax
	lock xacquire cmpxchg QWORD PTR [rcx],rax
	xrelease lock cmpxchg QWORD PTR [rcx],rax
	lock xrelease cmpxchg QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf2; cmpxchg QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf3; cmpxchg QWORD PTR [rcx],rax
	xacquire lock xadd QWORD PTR [rcx],rax
	lock xacquire xadd QWORD PTR [rcx],rax
	xrelease lock xadd QWORD PTR [rcx],rax
	lock xrelease xadd QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf2; xadd QWORD PTR [rcx],rax
	.byte 0xf0; .byte 0xf3; xadd QWORD PTR [rcx],rax

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

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

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

# Tests for op regq/m64
	xacquire lock dec QWORD PTR [rcx]
	lock xacquire dec QWORD PTR [rcx]
	xrelease lock dec QWORD PTR [rcx]
	lock xrelease dec QWORD PTR [rcx]
	.byte 0xf0; .byte 0xf2; dec QWORD PTR [rcx]
	.byte 0xf0; .byte 0xf3; dec QWORD PTR [rcx]
	xacquire lock inc QWORD PTR [rcx]
	lock xacquire inc QWORD PTR [rcx]
	xrelease lock inc QWORD PTR [rcx]
	lock xrelease inc QWORD PTR [rcx]
	.byte 0xf0; .byte 0xf2; inc QWORD PTR [rcx]
	.byte 0xf0; .byte 0xf3; inc QWORD PTR [rcx]
	xacquire lock neg QWORD PTR [rcx]
	lock xacquire neg QWORD PTR [rcx]
	xrelease lock neg QWORD PTR [rcx]
	lock xrelease neg QWORD PTR [rcx]
	.byte 0xf0; .byte 0xf2; neg QWORD PTR [rcx]
	.byte 0xf0; .byte 0xf3; neg QWORD PTR [rcx]
	xacquire lock not QWORD PTR [rcx]
	lock xacquire not QWORD PTR [rcx]
	xrelease lock not QWORD PTR [rcx]
	lock xrelease not QWORD PTR [rcx]
	.byte 0xf0; .byte 0xf2; not QWORD PTR [rcx]
	.byte 0xf0; .byte 0xf3; not QWORD PTR [rcx]

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

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