]> granicus.if.org Git - yasm/commit
Don't generate 0x90 opcode for xchg rax, r8 and varieties thereof.
authorPeter Johnson <peter@tortall.net>
Mon, 28 Jan 2008 05:48:26 +0000 (05:48 -0000)
committerPeter Johnson <peter@tortall.net>
Mon, 28 Jan 2008 05:48:26 +0000 (05:48 -0000)
commite212c413209e55be9df90be25ca5d33782418362
tree609369a800783cfc212c8af4585f09ad694bce03
parentd1b8736d7a03b229a9ecd8523a5b6994cca83e77
Don't generate 0x90 opcode for xchg rax, r8 and varieties thereof.
Without this fix, "xchg eax, r8d" results in 41 90, which is an invalid
opcode.

Reported by: Stefan <SMarF@gmx.de>

svn path=/trunk/yasm/; revision=2029
modules/arch/x86/gen_x86_insn.py
modules/arch/x86/tests/xchg64.asm
modules/arch/x86/tests/xchg64.hex
modules/arch/x86/x86id.c