NASM 2.00rc3
[nasm/avx512.git] / test / xchg.asm
blobad634c161dd85bb1650e9d6898189a3f836bc829
1 %macro x 2
2 xchg %1,%2
3 xchg %2,%1
4 %endmacro
6 bits 16
8 x ax,ax
9 x ax,cx
10 x ax,dx
11 x ax,bx
12 x ax,sp
13 x ax,bp
14 x ax,si
15 x ax,di
16 x eax,eax
17 x eax,ecx
18 x eax,edx
19 x eax,ebx
20 x eax,esp
21 x eax,ebp
22 x eax,esi
23 x eax,edi
25 bits 32
27 x ax,ax
28 x ax,cx
29 x ax,dx
30 x ax,bx
31 x ax,sp
32 x ax,bp
33 x ax,si
34 x ax,di
35 x eax,eax
36 x eax,ecx
37 x eax,edx
38 x eax,ebx
39 x eax,esp
40 x eax,ebp
41 x eax,esi
42 x eax,edi
44 bits 64
46 x ax,ax
47 x ax,cx
48 x ax,dx
49 x ax,bx
50 x ax,sp
51 x ax,bp
52 x ax,si
53 x ax,di
54 x ax,r8w
55 x ax,r9w
56 x ax,r10w
57 x ax,r11w
58 x ax,r12w
59 x ax,r13w
60 x ax,r14w
61 x ax,r15w
62 x eax,eax
63 x eax,ecx
64 x eax,edx
65 x eax,ebx
66 x eax,esp
67 x eax,ebp
68 x eax,esi
69 x eax,edi
70 x eax,r8d
71 x eax,r9d
72 x eax,r10d
73 x eax,r11d
74 x eax,r12d
75 x eax,r13d
76 x eax,r14d
77 x eax,r15d
78 x rax,rax
79 x rax,rcx
80 x rax,rdx
81 x rax,rbx
82 x rax,rsp
83 x rax,rbp
84 x rax,rsi
85 x rax,rdi
86 x rax,r8
87 x rax,r9
88 x rax,r10
89 x rax,r11
90 x rax,r12
91 x rax,r13
92 x rax,r14
93 x rax,r15