diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-07-24 17:28:41 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-07-24 17:28:41 +0000 |
commit | 6cdd383ad344227754c65ef8d731802197890a82 (patch) | |
tree | 528f887d302a83c24849f9d2bb197affe426e5e5 /gcc/tree-vect-stmts.c | |
parent | c808e68a949dc87c27d010746cd08cb316d6c313 (diff) | |
download | gcc-6cdd383ad344227754c65ef8d731802197890a82.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@189816 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vect-stmts.c')
-rw-r--r-- | gcc/tree-vect-stmts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index bb42cbca579..6b9d327082a 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -6545,7 +6545,7 @@ supportable_narrowing_operation (enum tree_code code, = lang_hooks.types.type_for_mode (TYPE_MODE (vectype_out), 0); interm_optab = optab_for_tree_code (c1, intermediate_type, optab_default); - if (interm_optab != NULL + if (interm_optab != unknown_optab && (icode2 = optab_handler (optab1, vec_mode)) != CODE_FOR_nothing && insn_data[icode1].operand[0].mode == insn_data[icode2].operand[0].mode) |