From 9021ec07d7faf9e4067c5c497a21562b78c45a65 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 6 Dec 2006 18:15:45 +0000 Subject: gas/ 2006-12-06 H.J. Lu * config/tc-i386.h: Change the prefix order to SEG_PREFIX, ADDR_PREFIX, DATA_PREFIX, LOCKREP_PREFIX. gas/testsuite/ 2006-12-06 H.J. Lu * gas/i386/amdfam10.d: Updated for operand/address-size override prefix position change. * gas/i386/naked.d: Likewise. * gas/i386/rep-suffix.d: Likewise. * gas/i386/rep.d: Likewise. * gas/i386/white.l: Likewise. * gas/i386/x86-64-amdfam10.d: Likewise. * gas/i386/x86-64-rep-suffix.d: Likewise. * gas/i386/x86-64-rep.d: Likewise. * gas/i386/x86_64.d: Likewise. --- gas/config/tc-i386.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gas/config') diff --git a/gas/config/tc-i386.h b/gas/config/tc-i386.h index 0d42e1b..7cfe29b 100644 --- a/gas/config/tc-i386.h +++ b/gas/config/tc-i386.h @@ -102,12 +102,14 @@ extern const char *i386_comment_chars; /* Prefixes will be emitted in the order defined below. WAIT_PREFIX must be the first prefix since FWAIT is really is an - instruction, and so must come before any prefixes. */ + instruction, and so must come before any prefixes. + The preferred prefix order is SEG_PREFIX, ADDR_PREFIX, DATA_PREFIX, + LOCKREP_PREFIX. */ #define WAIT_PREFIX 0 -#define LOCKREP_PREFIX 1 +#define SEG_PREFIX 1 #define ADDR_PREFIX 2 #define DATA_PREFIX 3 -#define SEG_PREFIX 4 +#define LOCKREP_PREFIX 4 #define REX_PREFIX 5 /* must come last. */ #define MAX_PREFIXES 6 /* max prefixes per opcode */ -- cgit v1.1