diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-09-06 16:25:29 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-09-06 16:25:29 -0700 |
commit | 7f079149f147107070f518fc0a86c45c6c62b2a5 (patch) | |
tree | 5657c1be30b11f740be1bc2b15dc59d4e92458a2 /src/arch/x86/isa/insts | |
parent | 5052e2cb10b78da55ddef2b1deb67ab2e2aa3255 (diff) | |
download | gem5-7f079149f147107070f518fc0a86c45c6c62b2a5.tar.xz |
X86: Make signed multiplication do something different from unsigned.
--HG--
extra : convert_revision : 333c4a3464d708d4d8cea88931259ab96c2f75ed
Diffstat (limited to 'src/arch/x86/isa/insts')
-rw-r--r-- | src/arch/x86/isa/insts/arithmetic/multiply_and_divide.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 }; |