0
0
mirror of https://github.com/netwide-assembler/nasm.git synced 2025-10-10 00:25:06 -04:00
Files
nasm/test/ccmp2.asm
H. Peter Anvin 4b0a1a4539 test: simple tests for Scc syntax
Test more Scc syntax cases.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2025-09-23 11:57:58 -07:00

12 lines
370 B
NASM

bits 64
default rel
ccmpl {dfv=of,cf} rdx, r30
ccmpl {dfv=of,cf}, rdx, r30
ccmpl 0x9, rdx, r30 ; Comma required
ccmpl ({dfv=of}|{dfv=cf}), rdx, r30 ; Parens, comma required
ofcf1 equ {dfv=of,cf} ; Parens not required
ccmpl ofcf1, rdx, r30 ; Comma required
ofcf2 equ ({dfv=of,sf,cf} & ~{dfv=cf}) ; Parens required
ccmpl ofcf2, rdx, r30 ; Comma required