x86: on mem reference, put scale after index register to be consistent with Intel style
diff --git a/arch/X86/X86IntelInstPrinter.c b/arch/X86/X86IntelInstPrinter.c
index 1b660a4..875293e 100644
--- a/arch/X86/X86IntelInstPrinter.c
+++ b/arch/X86/X86IntelInstPrinter.c
@@ -395,9 +395,9 @@
if (MCOperand_getReg(IndexReg)) {
if (NeedPlus) SStream_concat(O, " + ");
- if (ScaleVal != 1)
- SStream_concat(O, "%u*", ScaleVal);
_printOperand(MI, Op+2, O);
+ if (ScaleVal != 1)
+ SStream_concat(O, "*%u", ScaleVal);
NeedPlus = true;
}