From: Florian Krohm Date: Fri, 21 Dec 2012 04:25:10 +0000 (+0000) Subject: Fix mc_translate for Iop_D64toD32. X-Git-Tag: svn/VALGRIND_3_9_0~483 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20cee17e87dbc5e148bf87f94482305549a6dcbf;p=thirdparty%2Fvalgrind.git Fix mc_translate for Iop_D64toD32. Spotted and fixed by Maran Pakkirisamy (maranp@linux.vnet.ibm.com). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13193 --- diff --git a/memcheck/mc_translate.c b/memcheck/mc_translate.c index 44a3a0b7dc..0931ea32b2 100644 --- a/memcheck/mc_translate.c +++ b/memcheck/mc_translate.c @@ -3306,7 +3306,7 @@ IRAtom* expr2vbits_Binop ( MCEnv* mce, case Iop_D64toI64S: case Iop_I64StoD64: - /* I64(DFP rm) x I64 -> D64 */ + /* I32(DFP rm) x I64 -> D64 */ return mkLazy2(mce, Ity_I64, vatom1, vatom2); case Iop_RoundF32toInt: @@ -3350,8 +3350,8 @@ IRAtom* expr2vbits_Binop ( MCEnv* mce, return mkLazy2(mce, Ity_I32, vatom1, vatom2); case Iop_D64toD32: - /* First arg is I64 (DFProunding mode), second is D64 (data). */ - return mkLazy2(mce, Ity_I64, vatom1, vatom2); + /* First arg is I32 (DFP rounding mode), second is D64 (data). */ + return mkLazy2(mce, Ity_I32, vatom1, vatom2); case Iop_F64toI16S: /* First arg is I32 (rounding mode), second is F64 (data). */