Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
e0a24727
Commit
e0a24727
authored
Feb 01, 2004
by
Kazu Hirata
Committed by
Kazu Hirata
Feb 01, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/h8300/h8300.md (two peephole2's): New.
From-SVN: r77076
parent
5202c5fe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
0 deletions
+39
-0
gcc/ChangeLog
+4
-0
gcc/config/h8300/h8300.md
+35
-0
No files found.
gcc/ChangeLog
View file @
e0a24727
2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md (two peephole2's): New.
2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
* config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
...
...
gcc/config/h8300/h8300.md
View file @
e0a24727
...
...
@@ -4969,3 +4969,38 @@
"operands
[
5
]
= gen_rtx_REG (QImode, REGNO (operands
[
0
]
));
operands
[
6
]
= gen_int_mode (INTVAL (operands
[
1
]
), QImode);
operands
[
7
]
= gen_int_mode (INTVAL (operands
[
2
]
), QImode);")
;; These triggers right at the end of allocation of locals in the
;; prologue. The only profitable cases are when we have stack
;; adjustment of -4 or -12. That of -8 won't happen because it is
;; always split into two consecutive subtractions of -4.
(define_peephole2
[
(set (reg:SI SP_REG)
(plus:SI (reg:SI SP_REG)
(const_int -4)))
(set (mem:SI (reg:SI SP_REG))
(match_operand:SI 0 "register_operand" ""))]
"(TARGET_H8300H || TARGET_H8300S) && !TARGET_NORMAL_MODE
&& REGNO (operands
[
0
]
) != SP_REG"
[
(set (mem:SI (pre_dec:SI (reg:SI SP_REG)))
(match_dup 0))]
"")
(define_peephole2
[
(set (reg:SI SP_REG)
(plus:SI (reg:SI SP_REG)
(const_int -12)))
(set (mem:SI (reg:SI SP_REG))
(match_operand:SI 0 "register_operand" ""))]
"(TARGET_H8300H || TARGET_H8300S) && !TARGET_NORMAL_MODE
&& REGNO (operands
[
0
]
) != SP_REG"
[
(set (reg:SI SP_REG)
(plus:SI (reg:SI SP_REG)
(const_int -4)))
(set (reg:SI SP_REG)
(plus:SI (reg:SI SP_REG)
(const_int -4)))
(set (mem:SI (pre_dec:SI (reg:SI SP_REG)))
(match_dup 0))]
"")
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment