Skip to contentSkip to conversation

Fix for dual signed mul

PATCH New Laurent Desnogues 1 participant 1 message Jun 23, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix for dual signed mul

Title says it all.

Some other problems exist in v6 instructions since FFmpeg still doesn't work correctly.

Laurent

target-arm/translate.c +2 -2
@@ -247,8 +247,8 @@
 {
     TCGv tmp1 = new_tmp();
     TCGv tmp2 = new_tmp();
-    tcg_gen_ext8s_i32(tmp1, a);
-    tcg_gen_ext8s_i32(tmp2, b);
+    tcg_gen_ext16s_i32(tmp1, a);
+    tcg_gen_ext16s_i32(tmp2, b);
     tcg_gen_mul_i32(tmp1, tmp1, tmp2);
     dead_tmp(tmp2);
     tcg_gen_sari_i32(a, a, 16);