summaryrefslogtreecommitdiff
path: root/insns.dat
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-11-03 09:26:58 -0800
committerH. Peter Anvin <hpa@zytor.com>2009-11-03 09:26:58 -0800
commit110e5ecec45c11f2459f1c1a308269b3a358da38 (patch)
tree0f5282b2c93f91779a3258dfaa98cd0db4413c41 /insns.dat
parent210c10110bca124de4b9fb38d757ffc9b4041023 (diff)
downloadnasm-110e5ecec45c11f2459f1c1a308269b3a358da38.tar.gz
BR 2887108: fix incorrect sbyte usage in IMUL
Fix a very curious transposition in the instruction patterns for IMUL, which caused 32-bit IMUL instructions with constants like 0x10001 to be generated incorrectly. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'insns.dat')
-rw-r--r--insns.dat4
1 files changed, 2 insertions, 2 deletions
diff --git a/insns.dat b/insns.dat
index f03e5a8f..5404ce07 100644
--- a/insns.dat
+++ b/insns.dat
@@ -583,7 +583,7 @@ IMUL reg16,mem,sbyte16 \320\1\x6B\110\16 186,SM,ND
IMUL reg16,mem,imm16 \320\1\x69\110\32 186,SM
IMUL reg16,mem,imm \320\146\x69\110\142 186,SM,ND
IMUL reg16,reg16,imm8 \320\1\x6B\110\16 186
-IMUL reg16,reg16,sbyte32 \320\1\x6B\110\16 186,SM,ND
+IMUL reg16,reg16,sbyte16 \320\1\x6B\110\16 186,SM,ND
IMUL reg16,reg16,imm16 \320\1\x69\110\32 186
IMUL reg16,reg16,imm \320\146\x69\110\142 186,SM,ND
IMUL reg32,mem,imm8 \321\1\x6B\110\16 386,SM
@@ -591,7 +591,7 @@ IMUL reg32,mem,sbyte64 \321\1\x6B\110\16 386,SM,ND
IMUL reg32,mem,imm32 \321\1\x69\110\42 386,SM
IMUL reg32,mem,imm \321\156\x69\110\152 386,SM,ND
IMUL reg32,reg32,imm8 \321\1\x6B\110\16 386
-IMUL reg32,reg32,sbyte16 \321\1\x6B\110\16 386,SM,ND
+IMUL reg32,reg32,sbyte32 \321\1\x6B\110\16 386,SM,ND
IMUL reg32,reg32,imm32 \321\1\x69\110\42 386
IMUL reg32,reg32,imm \321\156\x69\110\152 386,SM,ND
IMUL reg64,mem,imm8 \324\1\x6B\110\16 X64,SM