]> gcc.gnu.org Git - gcc.git/commitdiff
(flush_register_windows, goto_handler_and_restore):
authorJim Wilson <wilson@gcc.gnu.org>
Tue, 2 Mar 1993 21:08:43 +0000 (13:08 -0800)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 2 Mar 1993 21:08:43 +0000 (13:08 -0800)
Give names to these patterns so they are easier to use.

From-SVN: r3607

gcc/config/sparc/sparc.md

index 88cadbf9454a518db2c5f02b3f45eaeabade82d9..5f8afeb5eb3d65bd594df488695fd8f4e109308f 100644 (file)
   "
 {
   /* Trap instruction to flush all the registers window.  */
-  emit_insn (gen_rtx (UNSPEC_VOLATILE, VOIDmode,
-                     gen_rtvec (1, const0_rtx), 0));
+  emit_insn (gen_flush_register_windows ());
   /* Load the fp value for the containing fn into %fp.
      This is needed because operands[2] refers to %fp.
      Virtual register instantiation fails if the virtual %fp isn't set from a
   emit_insn (gen_rtx (USE, VOIDmode, static_chain_rtx));
   emit_insn (gen_rtx (USE, VOIDmode, gen_rtx (REG, SImode, 8)));
   /* Return, restoring reg window and jumping to goto handler.  */
-  emit_insn (gen_rtx (UNSPEC_VOLATILE, VOIDmode,
-                     gen_rtvec (1, const0_rtx), 1));
+  emit_insn (gen_goto_handler_and_restore ());
   DONE;
 }")
 
 ;; Special trap insn to flush register windows.
-(define_insn ""
+(define_insn "flush_register_windows"
   [(unspec_volatile [(const_int 0)] 0)]
   ""
   "ta 3"
   [(set_attr "type" "misc")])
 
-(define_insn ""
+(define_insn "goto_handler_and_restore"
   [(unspec_volatile [(const_int 0)] 1)]
   ""
   "jmp %%o0+0\;restore"
This page took 0.072559 seconds and 5 git commands to generate.