gcc/
* tree-vect-generic.c (expand_vector_operations_1): Check
optab type before using it.
From-SVN: r229413
+2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
+
+ * tree-vect-generic.c (expand_vector_operations_1): Check
+ optab type before using it.
+
2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/aarch64/aarch64-protos.h
&& TYPE_MODE (TREE_TYPE (type)) == TYPE_MODE (TREE_TYPE (srhs1)))
{
op = optab_for_tree_code (code, TREE_TYPE (type), optab_scalar);
- if (op != unknown_optab
+ if (op >= FIRST_NORM_OPTAB && op <= LAST_NORM_OPTAB
&& optab_handler (op, TYPE_MODE (TREE_TYPE (type))) != CODE_FOR_nothing)
{
tree slhs = make_ssa_name (TREE_TYPE (srhs1));