|
From: <sv...@va...> - 2014-08-14 22:25:39
|
Author: sewardj
Date: Thu Aug 14 22:25:31 2014
New Revision: 2921
Log:
Add a simple folding rule for Iop_ZeroHI64ofV128.
Modified:
trunk/priv/ir_opt.c
Modified: trunk/priv/ir_opt.c
==============================================================================
--- trunk/priv/ir_opt.c (original)
+++ trunk/priv/ir_opt.c Thu Aug 14 22:25:31 2014
@@ -1657,6 +1657,18 @@
break;
}
+ case Iop_ZeroHI64ofV128: {
+ /* Could do better here -- only need to look at the bottom 64 bits
+ of the argument, really. */
+ UShort v128 = e->Iex.Unop.arg->Iex.Const.con->Ico.V128;
+ if (v128 == 0x0000) {
+ e2 = IRExpr_Const(IRConst_V128(0x0000));
+ } else {
+ goto unhandled;
+ }
+ break;
+ }
+
default:
goto unhandled;
}
|