[Nasm-bugs] [Bug 3392773] mov [rcx + r9*8 * + 8*0], r11 is wrongly accepted
noreply-nasm at dev.nasm.us
noreply-nasm at dev.nasm.us
Wed Oct 5 11:29:43 PDT 2022
https://bugzilla.nasm.us/show_bug.cgi?id=3392773
H. Peter Anvin <hpa at zytor.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|OPEN |CLOSED
Resolution|--- |INVALID
--- Comment #1 from H. Peter Anvin <hpa at zytor.com> ---
mov [rcx + r9*8 * + 8*0], r11 is not a syntax error. However, it is an error on
your part: in this case, + is parsed as a unary + operator, and the end result
is [rcx + r9*8*8*0], which turns into [rcx + r9*0], which turns into [rcx].
[rcx + r9*8 + 8*1] is rejected because [rcx + r9*8*8*1] is [rcx + r9*64], and
only scaled-SIB instructions support a multiplier that large.
--
You are receiving this mail because:
You are watching all bug changes.
You are on the CC list for the bug.
More information about the Nasm-bugs
mailing list