]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Remove a redundant check. Found by Coverity.
authorFlorian Krohm <florian@eich-krohm.de>
Mon, 1 Aug 2011 22:33:10 +0000 (22:33 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Mon, 1 Aug 2011 22:33:10 +0000 (22:33 +0000)
Patch by Jakub Jelinek (jakub@redhat.com). Fixes #279062.

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

VEX/priv/host_ppc_isel.c

index d77645bce00e1704117b2096ea25da4d101118b2..7e4d2f8be09b93ec513ed38bcc92e7a8b4f178aa 100644 (file)
@@ -1601,8 +1601,7 @@ static HReg iselWordExpr_R_wrk ( ISelEnv* env, IRExpr* e )
       case Iop_16Sto64: {
          HReg   r_dst = newVRegI(env);
          HReg   r_src = iselWordExpr_R(env, e->Iex.Unop.arg);
-         UShort amt   = toUShort(op_unop==Iop_8Sto64  ? 56 :
-                                 op_unop==Iop_16Sto64 ? 48 : 32);
+         UShort amt   = toUShort(op_unop==Iop_8Sto64  ? 56 : 48);
          vassert(mode64);
          addInstr(env,
                   PPCInstr_Shft(Pshft_SHL, False/*64bit shift*/,