aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorTakayuki 'January June' Suwa <jjsuwa_sys3175@yahoo.co.jp>2022-12-27 15:30:12 +0900
committerMax Filippov <jcmvbkbc@gmail.com>2022-12-27 07:38:39 -0800
commit48a0e822666b79600cae7401f9a3e8cf16bc3fd1 (patch)
tree193a4d5e54848fca721630eb8b96fd3ae4990316 /gcc/config
parent98a1b4d073b9993b0acda525332225f90714e2ec (diff)
downloadgcc-48a0e822666b79600cae7401f9a3e8cf16bc3fd1.zip
gcc-48a0e822666b79600cae7401f9a3e8cf16bc3fd1.tar.gz
gcc-48a0e822666b79600cae7401f9a3e8cf16bc3fd1.tar.bz2
xtensa: Generate density instructions in set_frame_ptr
gcc/ChangeLog: * config/xtensa/xtensa.md (set_frame_ptr): Fix to reflect TARGET_DENSITY.
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/xtensa/xtensa.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/config/xtensa/xtensa.md b/gcc/config/xtensa/xtensa.md
index a77d328..e72fd9a 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