Mark Wielaard baf2d9
commit 770707cd209a94b9fe19273b68ddb1cb84191399
Mark Wielaard baf2d9
Author: sewardj <sewardj@8f6e269a-dfd6-0310-a8e1-e2731360e62c>
Mark Wielaard baf2d9
Date:   Mon Mar 21 19:29:20 2016 +0000
Mark Wielaard baf2d9
Mark Wielaard baf2d9
    Make isZeroU handle the V256 case.  Fixes #356393.
Mark Wielaard baf2d9
    
Mark Wielaard baf2d9
    
Mark Wielaard baf2d9
    git-svn-id: svn://svn.valgrind.org/vex/trunk@3213 8f6e269a-dfd6-0310-a8e1-e2731360e62c
Mark Wielaard baf2d9
Mark Wielaard baf2d9
diff --git a/VEX/priv/ir_opt.c b/VEX/priv/ir_opt.c
Mark Wielaard baf2d9
index 7a7246a..4266823 100644
Mark Wielaard baf2d9
--- a/VEX/priv/ir_opt.c
Mark Wielaard baf2d9
+++ b/VEX/priv/ir_opt.c
Mark Wielaard baf2d9
@@ -1223,6 +1223,7 @@ static Bool isZeroU ( IRExpr* e )
Mark Wielaard baf2d9
       case Ico_U16:   return toBool( e->Iex.Const.con->Ico.U16 == 0);
Mark Wielaard baf2d9
       case Ico_U32:   return toBool( e->Iex.Const.con->Ico.U32 == 0);
Mark Wielaard baf2d9
       case Ico_U64:   return toBool( e->Iex.Const.con->Ico.U64 == 0);
Mark Wielaard baf2d9
+      case Ico_V256:  return toBool( e->Iex.Const.con->Ico.V256 == 0x00000000);
Mark Wielaard baf2d9
       default: vpanic("isZeroU");
Mark Wielaard baf2d9
    }
Mark Wielaard baf2d9
 }