From a02a862a31951cce3a13b7c3090e34c8c59adcd6 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 18 Jan 2004 23:12:47 +0000 Subject: [PATCH] * i386-dis.c (OP_E): Print scale factor on intel mode sib when not 1. Don't print scale factor on AT&T mode when index missing. --- opcodes/ChangeLog | 5 +++++ opcodes/i386-dis.c | 6 +----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index f099f044519..da28affc559 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2004-01-19 Alan Modra + + * i386-dis.c (OP_E): Print scale factor on intel mode sib when not + 1. Don't print scale factor on AT&T mode when index missing. + 2004-01-16 Alexandre Oliva * m10300-opc.c (mov): 8- and 24-bit immediates are zero-extended diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 0ef57efb93c..f9a0a9b2c45 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -3173,11 +3173,7 @@ OP_E (int bytemode, int sizeflag) ? names64[index] : names32[index]); oappend (scratchbuf); } - if (!intel_syntax - || (intel_syntax - && bytemode != b_mode - && bytemode != w_mode - && bytemode != v_mode)) + if (scale != 0 || (!intel_syntax && index != 4)) { *obufp++ = scale_char; *obufp = '\0'; -- 2.30.2