svn commit: r1666 - in trunk/yasm/modules/arch/x86: .

peter at tortall.net peter at tortall.net
Sat Oct 28 11:19:40 PDT 2006


Author: peter
Date: Sat Oct 28 11:19:39 2006
New Revision: 1666

Added:
   trunk/yasm/modules/arch/x86/tests/sse-prefix.asm
   trunk/yasm/modules/arch/x86/tests/sse-prefix.hex
Modified:
   trunk/yasm/modules/arch/x86/tests/Makefile.inc
   trunk/yasm/modules/arch/x86/tests/sse4.hex
   trunk/yasm/modules/arch/x86/tests/stringseg.hex
   trunk/yasm/modules/arch/x86/x86bc.c
   trunk/yasm/modules/arch/x86/x86id.c
Changeset:
   http://www.tortall.net/projects/yasm/changeset/1666

Log:
Fix prefix order for "3-byte" instructions like the SIMD instructions.
While the F2/F3/66 prefix used by these instructions should precede the
REX prefix in 64-bit mode, they should probably not precede the segment
override.  The processor specifications seem to be unclear on this point,
so play it safe.

This change has a minor side-effect of reversing the segreg/size override
ordering on things like "fs cmpsd" in 16-bit mode; this is okay as those
prefixes can be in any order.  This is due to the way Yasm implements
segreg overrides for instructions with no EA.

Reported by: Danny Reeves <danny_reeves at hotmail.com>



More information about the yasm-cvs mailing list