public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-4901] xtensa: Generate density instructions in set_frame_ptr
@ 2022-12-27 15:39 Max Filippov
  0 siblings, 0 replies; only message in thread
From: Max Filippov @ 2022-12-27 15:39 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:48a0e822666b79600cae7401f9a3e8cf16bc3fd1

commit r13-4901-g48a0e822666b79600cae7401f9a3e8cf16bc3fd1
Author: Takayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>
Date:   Tue Dec 27 15:30:12 2022 +0900

    xtensa: Generate density instructions in set_frame_ptr
    
    gcc/ChangeLog:
    
            * config/xtensa/xtensa.md (set_frame_ptr): Fix to reflect
            TARGET_DENSITY.

Diff:
---
 gcc/config/xtensa/xtensa.md | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/gcc/config/xtensa/xtensa.md b/gcc/config/xtensa/xtensa.md
index a77d3285bad..e72fd9ac3f6 100644
--- a/gcc/config/xtensa/xtensa.md
+++ b/gcc/config/xtensa/xtensa.md
@@ -2562,12 +2562,15 @@
   ""
 {
   if (frame_pointer_needed)
-    return "mov\ta7, sp";
+    return (TARGET_DENSITY ? "mov.n\ta7, sp" : "mov\ta7, sp");
   return "";
 }
   [(set_attr "type"	"move")
    (set_attr "mode"	"SI")
-   (set_attr "length"	"3")])
+   (set (attr "length")
+	(if_then_else (match_test "TARGET_DENSITY")
+		      (const_int 2)
+		      (const_int 3)))])
 
 ;; Post-reload splitter to remove fp assignment when it's not needed.
 (define_split

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-27 15:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-27 15:39 [gcc r13-4901] xtensa: Generate density instructions in set_frame_ptr Max Filippov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).