From 7f079149f147107070f518fc0a86c45c6c62b2a5 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 6 Sep 2007 16:25:29 -0700 Subject: X86: Make signed multiplication do something different from unsigned. --HG-- extra : convert_revision : 333c4a3464d708d4d8cea88931259ab96c2f75ed --- src/arch/x86/isa/insts/arithmetic/multiply_and_divide.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/arch/x86/isa/insts') 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 f498a10e0..5f75b8868 100644 --- a/src/arch/x86/isa/insts/arithmetic/multiply_and_divide.py +++ b/src/arch/x86/isa/insts/arithmetic/multiply_and_divide.py @@ -134,7 +134,7 @@ def macroop IMUL_B_P def macroop IMUL_R { - muleh t1, rax, reg + mulehs t1, rax, reg mulel rax, rax, reg mov rdx, rdx, t1 }; @@ -142,7 +142,7 @@ def macroop IMUL_R def macroop IMUL_M { ld t1, seg, sib, disp - muleh rdx, rax, t1 + mulehs rdx, rax, t1 mulel rax, rax, t1 }; @@ -150,7 +150,7 @@ def macroop IMUL_P { rdip t7 ld t1, seg, riprel, disp - muleh rdx, rax, t1 + mulehs rdx, rax, t1 mulel rax, rax, t1 }; -- cgit v1.2.3