]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips64: fix error introduced by r3262
authorPetar Jovanovic <mips32r2@gmail.com>
Thu, 13 Oct 2016 13:53:50 +0000 (13:53 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Thu, 13 Oct 2016 13:53:50 +0000 (13:53 +0000)
There was a typo in r3262 that caused a regression in the following two
tests:

none/tests/mips64/load_store_unaligned   (stdout)
none/tests/mips64/load_store_unaligned   (stderr)

This change fixes it.

git-svn-id: svn://svn.valgrind.org/vex/trunk@3263

VEX/priv/guest_mips_toIR.c

index f1d57543363544dfc5617f03e69566f857df8c75..776e6c5d93f6d1c7fbd926d37227ae8ef9dbce5f 100644 (file)
@@ -13538,7 +13538,7 @@ static DisResult disInstr_MIPS_WRK ( Bool(*resteerOkFn) (/*opaque */void *,
             t1 = newTemp(ty);
             assign(t0, binop(mode64 ? Iop_Add64 : Iop_Add32,
                              getIReg(rs), getIReg(rt)));
-            assign(t1, binop(mode64 ? Iop_Add64 : Iop_And32,
+            assign(t1, binop(mode64 ? Iop_And64 : Iop_And32,
                              mkexpr(t0),
                              mode64 ? mkU64(0xfffffffffffffff8ULL)
                                     : mkU32(0xfffffff8ULL)));
@@ -13577,7 +13577,7 @@ static DisResult disInstr_MIPS_WRK ( Bool(*resteerOkFn) (/*opaque */void *,
             t1 = newTemp(ty);
             assign(t0, binop(mode64 ? Iop_Add64 : Iop_Add32,
                              getIReg(rs), getIReg(rt)));
-            assign(t1, binop(mode64 ? Iop_Add64 : Iop_And32,
+            assign(t1, binop(mode64 ? Iop_And64 : Iop_And32,
                              mkexpr(t0),
                              mode64 ? mkU64(0xfffffffffffffff8ULL)
                                     : mkU32(0xfffffff8ULL)));