From 2225b9f2982775c7d89fcd7d04adbe4722ba59c3 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Tue, 24 Jul 2012 10:28:41 -0700 Subject: Introduce and use unknown_optab Prep for a later patch where this becomes an enum value. * optabs.h (unknown_optab): New. * builtins.c (interclass_mathfn_icode): Use it. * dojump.c (do_compare_rtx_and_jump): Likewise. * optabs.c (optab_for_tree_code, expand_binop): Likewise. * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise. (expand_vector_operations_1): Likewise. * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise. * tree-vect-stmts.c (supportable_narrowing_operation): Likewise. From-SVN: r189816 --- gcc/optabs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/optabs.c') diff --git a/gcc/optabs.c b/gcc/optabs.c index e1ecc65..f30a20d 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -390,7 +390,7 @@ optab_for_tree_code (enum tree_code code, const_tree type, if (TREE_CODE (type) == VECTOR_TYPE) { if (subtype == optab_vector) - return TYPE_SATURATING (type) ? NULL : vashl_optab; + return TYPE_SATURATING (type) ? unknown_optab : vashl_optab; gcc_assert (subtype == optab_scalar); } @@ -560,7 +560,7 @@ optab_for_tree_code (enum tree_code code, const_tree type, return trapv ? absv_optab : abs_optab; default: - return NULL; + return unknown_optab; } } @@ -1580,7 +1580,7 @@ expand_binop (enum machine_mode mode, optab binoptab, rtx op0, rtx op1, shift by a vector. If so, broadcast the scalar into a vector. */ if (mclass == MODE_VECTOR_INT) { - optab otheroptab = NULL; + optab otheroptab = unknown_optab; if (binoptab == ashl_optab) otheroptab = vashl_optab; -- cgit v1.1