Commit 726858e3 by Richard Sandiford Committed by Richard Sandiford

target-insns.def (reload_load_address): New targetm instruction pattern.

gcc/
	* target-insns.def (reload_load_address): New targetm instruction
	pattern.
	* reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.

From-SVN: r226326
parent 3d000450
2015-07-28 Richard Sandiford <richard.sandiford@arm.com> 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
* target-insns.def (reload_load_address): New targetm instruction
pattern.
* reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
* target-insns.def (atomic_test_and_set): New targetm instruction * target-insns.def (atomic_test_and_set): New targetm instruction
pattern. pattern.
* optabs.c (maybe_emit_atomic_test_and_set): Use it instead of * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
......
...@@ -8803,10 +8803,8 @@ gen_reload (rtx out, rtx in, int opnum, enum reload_type type) ...@@ -8803,10 +8803,8 @@ gen_reload (rtx out, rtx in, int opnum, enum reload_type type)
mark_jump_label (in, tem, 0); mark_jump_label (in, tem, 0);
} }
#ifdef HAVE_reload_load_address else if (targetm.have_reload_load_address ())
else if (HAVE_reload_load_address) emit_insn (targetm.gen_reload_load_address (out, in));
emit_insn (gen_reload_load_address (out, in));
#endif
/* Otherwise, just write (set OUT IN) and hope for the best. */ /* Otherwise, just write (set OUT IN) and hope for the best. */
else else
......
...@@ -61,6 +61,7 @@ DEF_TARGET_INSN (probe_stack, (rtx x0)) ...@@ -61,6 +61,7 @@ DEF_TARGET_INSN (probe_stack, (rtx x0))
DEF_TARGET_INSN (probe_stack_address, (rtx x0)) DEF_TARGET_INSN (probe_stack_address, (rtx x0))
DEF_TARGET_INSN (prologue, (void)) DEF_TARGET_INSN (prologue, (void))
DEF_TARGET_INSN (ptr_extend, (rtx x0, rtx x1)) DEF_TARGET_INSN (ptr_extend, (rtx x0, rtx x1))
DEF_TARGET_INSN (reload_load_address, (rtx x0, rtx x1))
DEF_TARGET_INSN (restore_stack_block, (rtx x0, rtx x1)) DEF_TARGET_INSN (restore_stack_block, (rtx x0, rtx x1))
DEF_TARGET_INSN (restore_stack_function, (rtx x0, rtx x1)) DEF_TARGET_INSN (restore_stack_function, (rtx x0, rtx x1))
DEF_TARGET_INSN (restore_stack_nonlocal, (rtx x0, rtx x1)) DEF_TARGET_INSN (restore_stack_nonlocal, (rtx x0, rtx x1))
......
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