repo.or.cz
/
nasm
/
avx512.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
BR3189064: Fixes for VEXTRACTF128, VMASKMOVPS
[nasm/avx512.git]
/
test
/
xchg.asm
blob
9c826dd9421fa786098f2349019f596c238ede86
1
;Testname=unoptimized; Arguments=-fbin -oxchg.bin -O0; Files=stdout stderr xchg.bin
2
;Testname=optimized; Arguments=-fbin -oxchg.bin -Ox; Files=stdout stderr xchg.bin
3
4
%
macro
x
2
5
xchg
%
1
,%
2
6
xchg
%
2
,%
1
7
%
endmacro
8
9
bits
16
10
11
x
ax
,
ax
12
x
ax
,
cx
13
x
ax
,
dx
14
x
ax
,
bx
15
x
ax
,
sp
16
x
ax
,
bp
17
x
ax
,
si
18
x
ax
,
di
19
x
eax
,
eax
20
x
eax
,
ecx
21
x
eax
,
edx
22
x
eax
,
ebx
23
x
eax
,
esp
24
x
eax
,
ebp
25
x
eax
,
esi
26
x
eax
,
edi
27
28
bits
32
29
30
x
ax
,
ax
31
x
ax
,
cx
32
x
ax
,
dx
33
x
ax
,
bx
34
x
ax
,
sp
35
x
ax
,
bp
36
x
ax
,
si
37
x
ax
,
di
38
x
eax
,
eax
39
x
eax
,
ecx
40
x
eax
,
edx
41
x
eax
,
ebx
42
x
eax
,
esp
43
x
eax
,
ebp
44
x
eax
,
esi
45
x
eax
,
edi
46
47
bits
64
48
49
x
ax
,
ax
50
x
ax
,
cx
51
x
ax
,
dx
52
x
ax
,
bx
53
x
ax
,
sp
54
x
ax
,
bp
55
x
ax
,
si
56
x
ax
,
di
57
x
ax
,
r8w
58
x
ax
,
r9w
59
x
ax
,
r10w
60
x
ax
,
r11w
61
x
ax
,
r12w
62
x
ax
,
r13w
63
x
ax
,
r14w
64
x
ax
,
r15w
65
x
eax
,
eax
66
x
eax
,
ecx
67
x
eax
,
edx
68
x
eax
,
ebx
69
x
eax
,
esp
70
x
eax
,
ebp
71
x
eax
,
esi
72
x
eax
,
edi
73
x
eax
,
r8d
74
x
eax
,
r9d
75
x
eax
,
r10d
76
x
eax
,
r11d
77
x
eax
,
r12d
78
x
eax
,
r13d
79
x
eax
,
r14d
80
x
eax
,
r15d
81
x rax
,
rax
82
x rax
,
rcx
83
x rax
,
rdx
84
x rax
,
rbx
85
x rax
,
rsp
86
x rax
,
rbp
87
x rax
,
rsi
88
x rax
,
rdi
89
x rax
,
r8
90
x rax
,
r9
91
x rax
,
r10
92
x rax
,
r11
93
x rax
,
r12
94
x rax
,
r13
95
x rax
,
r14
96
x rax
,
r15