mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-10-10 00:25:06 -04:00
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>
12 lines
135 B
NASM
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]
|