Commit a3259be8 by Bob Wilson Committed by Bob Wilson

xtensa.md (set_frame_ptr): Change rtl to set reg a7.

        * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
        * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
        as a SET pattern.

From-SVN: r62730
parent 16ddb599
2003-02-11 Bob Wilson <bob.wilson@acm.org>
* config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
* config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
as a SET pattern.
2003-02-11 Roger Sayle <roger@eyesopen.com> 2003-02-11 Roger Sayle <roger@eyesopen.com>
* builtins.c: Fix failure caused by commiting wrong patch. * builtins.c: Fix failure caused by commiting wrong patch.
......
...@@ -2241,8 +2241,9 @@ xtensa_reorg (first) ...@@ -2241,8 +2241,9 @@ xtensa_reorg (first)
continue; continue;
pat = PATTERN (insn); pat = PATTERN (insn);
if (GET_CODE (pat) == UNSPEC_VOLATILE if (GET_CODE (pat) == SET
&& (XINT (pat, 1) == UNSPECV_SET_FP)) && GET_CODE (SET_SRC (pat)) == UNSPEC_VOLATILE
&& (XINT (SET_SRC (pat), 1) == UNSPECV_SET_FP))
{ {
set_frame_ptr_insn = insn; set_frame_ptr_insn = insn;
break; break;
......
...@@ -2387,7 +2387,7 @@ ...@@ -2387,7 +2387,7 @@
;; to set up the frame pointer. ;; to set up the frame pointer.
(define_insn "set_frame_ptr" (define_insn "set_frame_ptr"
[(unspec_volatile [(const_int 0)] UNSPECV_SET_FP)] [(set (reg:SI A7_REG) (unspec_volatile [(const_int 0)] UNSPECV_SET_FP))]
"" ""
"* "*
{ {
...@@ -2401,7 +2401,7 @@ ...@@ -2401,7 +2401,7 @@
;; Post-reload splitter to remove fp assignment when it's not needed. ;; Post-reload splitter to remove fp assignment when it's not needed.
(define_split (define_split
[(unspec_volatile [(const_int 0)] UNSPECV_SET_FP)] [(set (reg:SI A7_REG) (unspec_volatile [(const_int 0)] UNSPECV_SET_FP))]
"reload_completed && !frame_pointer_needed" "reload_completed && !frame_pointer_needed"
[(unspec [(const_int 0)] UNSPEC_NOP)] [(unspec [(const_int 0)] UNSPEC_NOP)]
"") "")
......
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