#include "gimple-fold.h"
#include "gimple-match.h"
#include "recog.h" /* FIXME: for insn_data */
+#include "optabs-libfuncs.h"
/* Build a ternary operation and gimplify it. Emit code before GSI.
machine_mode compute_mode = TYPE_MODE (compute_type);
if (VECTOR_MODE_P (compute_mode))
{
- if (op && optab_handler (op, compute_mode) != CODE_FOR_nothing)
+ if (op
+ && (optab_handler (op, compute_mode) != CODE_FOR_nothing
+ || optab_libfunc (op, compute_mode)))
return compute_type;
if (code == MULT_HIGHPART_EXPR
&& can_mult_highpart_p (compute_mode,
#include "gimple-fold.h"
#include "regs.h"
#include "attribs.h"
+#include "optabs-libfuncs.h"
/* For lang_hooks.types.type_for_mode. */
#include "langhooks.h"
"no optab.\n");
return false;
}
- target_support_p = (optab_handler (optab, vec_mode)
- != CODE_FOR_nothing);
+ target_support_p = (optab_handler (optab, vec_mode) != CODE_FOR_nothing
+ || optab_libfunc (optab, vec_mode));
}
bool using_emulated_vectors_p = vect_emulated_vector_p (vectype);