+2005-03-18 Kazu Hirata <kazu@cs.umass.edu>
+
+ * builtins.c (fold_builtin_bitop): Take decomposed arguments
+ of CALL_EXPR.
+ (fold_builtin_1): Update a call to fold_builtin_bitop.
+
2005-03-17 Dorit Naishlos <dorit@il.ibm.com>
PR tree-optimization/20474
static tree fold_builtin_floor (tree);
static tree fold_builtin_ceil (tree);
static tree fold_builtin_round (tree);
-static tree fold_builtin_bitop (tree);
+static tree fold_builtin_bitop (tree, tree);
static tree fold_builtin_memcpy (tree);
static tree fold_builtin_mempcpy (tree, tree, int);
static tree fold_builtin_memmove (tree, tree);
Return NULL_TREE if no simplification can be made. */
static tree
-fold_builtin_bitop (tree exp)
+fold_builtin_bitop (tree fndecl, tree arglist)
{
- tree fndecl = get_callee_fndecl (exp);
- tree arglist = TREE_OPERAND (exp, 1);
tree arg;
if (! validate_arglist (arglist, INTEGER_TYPE, VOID_TYPE))
case BUILT_IN_PARITY:
case BUILT_IN_PARITYL:
case BUILT_IN_PARITYLL:
- return fold_builtin_bitop (exp);
+ return fold_builtin_bitop (fndecl, arglist);
case BUILT_IN_MEMCPY:
return fold_builtin_memcpy (exp);