From ecf2621f4f2dedfea03816e61ec6dc0f24a62c0e Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 23 Jul 2007 11:20:57 -0700 Subject: Implement pusha, popa, three operand imul, hook them into the decoder, and clean up the decoder a little. --HG-- extra : convert_revision : c1b8f0f433f629e4104e2b04addcdaabf57595e3 --- .../x86/isa/insts/arithmetic/multiply_and_divide.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/arch/x86/isa/insts/arithmetic/multiply_and_divide.py') diff --git a/src/arch/x86/isa/insts/arithmetic/multiply_and_divide.py b/src/arch/x86/isa/insts/arithmetic/multiply_and_divide.py index 8697bef65..339e18cf8 100644 --- a/src/arch/x86/isa/insts/arithmetic/multiply_and_divide.py +++ b/src/arch/x86/isa/insts/arithmetic/multiply_and_divide.py @@ -77,6 +77,27 @@ def macroop IMUL_R_P ld t1, ds, [scale, index, base], disp mul1s reg, reg, t1 }; + +def macroop IMUL_R_R_I +{ + limm t1, imm + mul1s reg, regm, t1 +}; + +def macroop IMUL_R_M_I +{ + limm t1, imm + ld t2, ds, [scale, index, base], disp + mul1s reg, t2, t1 +}; + +def macroop IMUL_R_P_I +{ + rdip t7 + limm t1, imm + ld t2, ds, [0, t0, t7] + mul1s reg, t2, t1 +}; ''' #let {{ # class MUL(Inst): -- cgit v1.2.3