* config/xtensa/xtensa.c (xtensa_expand_prologue): Remove first
authorbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Nov 2007 22:08:02 +0000 (22:08 +0000)
committerbwilson <bwilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Nov 2007 22:08:02 +0000 (22:08 +0000)
argument for gen_entry calls.
* config/xtensa/xtensa.md: Add new "entry" value to "type" attribute.
(entry): Use the new attribute value.  Remove unused first operand.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130029 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/xtensa/xtensa.c
gcc/config/xtensa/xtensa.md

index a2ccc8a..f28f013 100644 (file)
@@ -1,3 +1,10 @@
+2007-11-08  Bob Wilson  <bob.wilson@acm.org>
+
+       * config/xtensa/xtensa.c (xtensa_expand_prologue): Remove first
+       argument for gen_entry calls.
+       * config/xtensa/xtensa.md: Add new "entry" value to "type" attribute.
+       (entry): Use the new attribute value.  Remove unused first operand.
+
 2007-11-08  Tom Tromey  <tromey@redhat.com>
 
        * c-parser.c (c_parser_translation_unit): Use location in error.
index 4fea001..76df1d2 100644 (file)
@@ -2308,12 +2308,12 @@ xtensa_expand_prologue (void)
   size_rtx = GEN_INT (total_size);
 
   if (total_size < (1 << (12+3)))
-    insn = emit_insn (gen_entry (size_rtx, size_rtx));
+    insn = emit_insn (gen_entry (size_rtx));
   else
     {
       /* Use a8 as a temporary since a0-a7 may be live.  */
       rtx tmp_reg = gen_rtx_REG (Pmode, A8_REG);
-      emit_insn (gen_entry (size_rtx, GEN_INT (MIN_FRAME_SIZE)));
+      emit_insn (gen_entry (GEN_INT (MIN_FRAME_SIZE)));
       emit_move_insn (tmp_reg, GEN_INT (total_size - MIN_FRAME_SIZE));
       emit_insn (gen_subsi3 (tmp_reg, stack_pointer_rtx, tmp_reg));
       insn = emit_insn (gen_movsi (stack_pointer_rtx, tmp_reg));
index 2f47540..98ebb09 100644 (file)
@@ -79,7 +79,7 @@
 ;; Attributes.
 
 (define_attr "type"
-  "unknown,jump,call,load,store,move,arith,multi,nop,farith,fmadd,fdiv,fsqrt,fconv,fload,fstore,mul16,mul32,div32,mac16,rsr,wsr"
+  "unknown,jump,call,load,store,move,arith,multi,nop,farith,fmadd,fdiv,fsqrt,fconv,fload,fstore,mul16,mul32,div32,mac16,rsr,wsr,entry"
   (const_string "unknown"))
 
 (define_attr "mode"
 
 (define_insn "entry"
   [(set (reg:SI A1_REG)
-       (unspec_volatile:SI [(match_operand:SI 0 "const_int_operand" "i")
-                            (match_operand:SI 1 "const_int_operand" "i")]
+       (unspec_volatile:SI [(match_operand:SI 0 "const_int_operand" "i")]
                            UNSPECV_ENTRY))]
   ""
-  "entry\tsp, %1"
-  [(set_attr "type"    "move")
+  "entry\tsp, %0"
+  [(set_attr "type"    "entry")
    (set_attr "mode"    "SI")
    (set_attr "length"  "3")])