0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00
Files
nasm/travis/test/testmem.asm
H. Peter Anvin b3358fe63e insns.dat: reinstate TEST reg,mem alias
Officially the syntax for TEST is "rm,reg"; however TEST is
commutative in every aspect, and as such "reg,mem" is an equivalent
form that NASM has also supported in the past.

Reinstate it properly.

Fixes: https://bugzilla.nasm.us/show_bug.cgi?id=3392962
Reported-by: E. C. Masloch <pushbx@ulukai.org>
Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-10-06 13:07:09 -07:00

12 lines
135 B
NASM

bits 64
test al,[rbx]
test ax,[rbx]
test eax,[rbx]
test rax,[rbx]
test cl,[rbx]
test cx,[rbx]
test ecx,[rbx]
test rcx,[rbx]