2008-02-20 Richard Guenther <rguenther@suse.de>
+ PR middle-end/35265
+ * builtins.c (validate_arg): If we want an INTEGER_TYPE,
+ be happy with INTEGRAL_TYPE_P.
+
+2008-02-20 Richard Guenther <rguenther@suse.de>
+
* fold-const.c (split_tree): Associate floatig-point expressions
if flag_associative_math is set.
return NULL_RTX;
arg = CALL_EXPR_ARG (exp, 0);
+ CALL_EXPR_ARG (exp, 0) = arg = builtin_save_expr (arg);
mode = TYPE_MODE (TREE_TYPE (arg));
op0 = expand_expr (arg, subtarget, VOIDmode, EXPAND_NORMAL);
return expand_abs (mode, op0, target, 0, safe_from_p (target, arg, 1));
return false;
else if (code == POINTER_TYPE)
return POINTER_TYPE_P (TREE_TYPE (arg));
+ else if (code == INTEGER_TYPE)
+ return INTEGRAL_TYPE_P (TREE_TYPE (arg));
return code == TREE_CODE (TREE_TYPE (arg));
}
2008-02-20 Richard Guenther <rguenther@suse.de>
+ PR middle-end/35265
+ * gcc.dg/builtins-66.c: New testcase.
+
+2008-02-20 Richard Guenther <rguenther@suse.de>
+
* gcc.dg/fold-reassoc-1.c: New testcase.
* gcc.dg/tree-ssa/recip-3.c: Adjust to not compute d/d.
--- /dev/null
+/* { dg-do compile } */
+
+enum { E0 = 0, E1 = 1, E2 = 2 } e;
+
+int
+foo (void)
+{
+ return __builtin_popcount ((int) e);
+}
+
+/* { dg-final { scan-assembler-not "__builtin_popcount" } } */