tcg/ppc: Fix not_i32
authormalc <av1474@comtv.ru>
Sun, 4 Apr 2010 16:36:29 +0000 (20:36 +0400)
committermalc <av1474@comtv.ru>
Sun, 4 Apr 2010 16:36:29 +0000 (20:36 +0400)
Thanks to Alexander Graf for bug report and a good reproducible test
case.

Signed-off-by: malc <av1474@comtv.ru>
tcg/ppc/tcg-target.c

index 0b80a20..18fdd27 100644 (file)
@@ -1646,7 +1646,7 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc, const TCGArg *args,
         break;
 
     case INDEX_op_not_i32:
-        tcg_out32 (s, NOR | SAB (args[1], args[0], args[0]));
+        tcg_out32 (s, NOR | SAB (args[1], args[0], args[1]));
         break;
 
     case INDEX_op_qemu_ld8u: