Commit 68df21f7 by Bernd Schmidt Committed by Bernd Schmidt

Allow a port not to define an indirect_jump pattern.

	* optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
	sorry if necessary.

From-SVN: r217120
parent 96023bba
2014-11-05 Bernd Schmidt <bernds@codesourcery.com>
* optabs.c (emit_indirect_jump): Test HAVE_indirect_jump and emit a
sorry if necessary.
2014-11-05 Alex Velenko <Alex.Velenko@arm.com> 2014-11-05 Alex Velenko <Alex.Velenko@arm.com>
* simplify-rtx.c (simplify_binary_operation_1): Div check added. * simplify-rtx.c (simplify_binary_operation_1): Div check added.
...@@ -4531,13 +4531,16 @@ prepare_float_lib_cmp (rtx x, rtx y, enum rtx_code comparison, ...@@ -4531,13 +4531,16 @@ prepare_float_lib_cmp (rtx x, rtx y, enum rtx_code comparison,
/* Generate code to indirectly jump to a location given in the rtx LOC. */ /* Generate code to indirectly jump to a location given in the rtx LOC. */
void void
emit_indirect_jump (rtx loc) emit_indirect_jump (rtx loc ATTRIBUTE_UNUSED)
{ {
#ifndef HAVE_indirect_jump
sorry ("indirect jumps are not available on this target");
#else
struct expand_operand ops[1]; struct expand_operand ops[1];
create_address_operand (&ops[0], loc); create_address_operand (&ops[0], loc);
expand_jump_insn (CODE_FOR_indirect_jump, 1, ops); expand_jump_insn (CODE_FOR_indirect_jump, 1, ops);
emit_barrier (); emit_barrier ();
#endif
} }
#ifdef HAVE_conditional_move #ifdef HAVE_conditional_move
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment