BR 3392279: Fix duplicated REX prefixes
commit0a9250c2ab32028dfdca6578655882b4be6a5c04
authorH. Peter Anvin <hpa@zytor.com>
Wed, 21 May 2014 15:19:16 +0000 (21 08:19 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 21 May 2014 15:24:21 +0000 (21 08:24 -0700)
treea1a48e04b96a2060c8ef4eb464c0fedd080ee510
parent13558c1e7cb2a1a2ea1b1c13ff554063de8afaf0
BR 3392279: Fix duplicated REX prefixes

The fix for BR 3392278:

aa29b1d93f5a assemble.c: Don't drop rex prefix from instruction itself

... would cause multiple REX prefixes to be emitted for some
instructions.  Create a new flag to indicate that REX has already been
emitted, which can be cleared for each instance of an instruction.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
assemble.c
nasm.h
test/times.asm [new file with mode: 0644]