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
c8574b54
Commit
c8574b54
authored
Feb 29, 2004
by
Kazu Hirata
Committed by
Kazu Hirata
Feb 29, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/h8300/h8300.md: Add comments about peephole2's.
From-SVN: r78667
parent
76c88fd9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
0 deletions
+78
-0
gcc/ChangeLog
+4
-0
gcc/config/h8300/h8300.md
+74
-0
No files found.
gcc/ChangeLog
View file @
c8574b54
2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md: Add comments about peephole2's.
2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md: Tweak operand numbers of some
peephole2's.
...
...
gcc/config/h8300/h8300.md
View file @
c8574b54
...
...
@@ -4222,6 +4222,18 @@
;; Transform
;;
;; cmp.w #1,r0
;; bhi .L1
;;
;; into
;;
;; shar.w r0
;; bne .L1
;; TODO: Split the above peephole2.
;; Transform
;;
;; cmp.w #255,r0
;; bgt .L1
;;
...
...
@@ -4260,6 +4272,18 @@
break;
}")
;; Transform
;;
;; cmp.w #255,r0
;; bhi .L1
;;
;; into
;;
;; mov.b r0h,r0h
;; bne .L1
;; TODO: Split the above peephole2.
;; (compare (reg:SI) (const_int)) takes 6 bytes, so we try to achieve
;; the equivalent with shorter sequences. Here is the summary. Cases
;; are grouped for each define_peephole2.
...
...
@@ -4503,6 +4527,19 @@
;; Transform
;;
;; cmp.l #1,er0
;; bhi .L1
;;
;; into
;;
;; mov.l er0,er1
;; shar.l er1
;; bne .L1
;; TODO: Split the above peephole2.
;; Transform
;;
;; cmp.l #1,er0
;; bgt .L1
;;
;; into
...
...
@@ -4549,6 +4586,18 @@
;; Transform
;;
;; cmp.l #1,er0
;; bhi .L1
;;
;; into
;;
;; shar.l er0
;; bne .L1
;; TODO: Split the above peephole2.
;; Transform
;;
;; cmp.l #15,er0
;; bgt .L1
;;
...
...
@@ -4601,6 +4650,19 @@
;; Transform
;;
;; cmp.l #15,er0
;; bhi .L1
;;
;; into
;;
;; and #240,r0l
;; mov.l er0,er0
;; bne .L1
;; TODO: Split the above peephole2.
;; Transform
;;
;; cmp.l #65535,er0
;; bgt .L1
;;
...
...
@@ -4639,6 +4701,18 @@
break;
}")
;; Transform
;;
;; cmp.l #65535,er0
;; bhi .L1
;;
;; into
;;
;; mov.l e0,e0
;; bne .L1
;; TODO: Split the above peephole2.
;; For constants like -1, -2, 1, 2, it is still cheaper to make a copy
;; of the register being tested, do the subtraction on the copy, and
;; then test the copy. We avoid this transformation if we see more
...
...
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