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
7957fde4
Commit
7957fde4
authored
Nov 28, 2002
by
Kazu Hirata
Committed by
Kazu Hirata
Nov 28, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/h8300/h8300.md (6 new peephole2 patterns): New.
From-SVN: r59611
parent
e7c79ef9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
128 additions
and
0 deletions
+128
-0
gcc/ChangeLog
+4
-0
gcc/config/h8300/h8300.md
+124
-0
No files found.
gcc/ChangeLog
View file @
7957fde4
2002
-
11
-
28
Kazu
Hirata
<
kazu
@cs
.
umass
.
edu
>
*
config
/
h8300
/
h8300
.
md
(
6
new
peephole2
patterns
)
:
New
.
2002
-
11
-
28
Jakub
Jelinek
<
jakub
@redhat
.
com
>
*
config
.
gcc
(
x86_64
-*-
linux
*
)
[
tmake_file
]
:
Remove
i386
/
t
-
crtstuff
.
...
...
gcc/config/h8300/h8300.md
View file @
7957fde4
...
...
@@ -2330,3 +2330,127 @@
(label_ref (match_dup 1))
(pc)))]
"")
;; -----------------------------------------------------------------
;; PEEPHOLE PATTERNS
;; -----------------------------------------------------------------
(define_peephole2
[
(parallel
[
(set (match_operand:HI 0 "register_operand" "")
(lshiftrt:HI (match_dup 0)
(match_operand:HI 1 "const_int_operand" "")))
(clobber (match_operand:HI 2 "" ""))])
(set (match_dup 0)
(and:HI (match_dup 0)
(match_operand:HI 3 "const_int_operand" "")))]
"INTVAL (operands
[
3
]
) == (255 >> INTVAL (operands
[
1
]
))"
[
(set (match_dup 0)
(and:HI (match_dup 0)
(const_int 255)))
(parallel
[
(set (match_dup 0)
(lshiftrt:HI (match_dup 0)
(match_dup 1)))
(clobber (match_dup 2))])]
"")
(define_peephole2
[
(parallel
[
(set (match_operand:HI 0 "register_operand" "")
(ashift:HI (match_dup 0)
(match_operand:HI 1 "const_int_operand" "")))
(clobber (match_operand:HI 2 "" ""))])
(set (match_dup 0)
(and:HI (match_dup 0)
(match_operand:HI 3 "const_int_operand" "")))]
"INTVAL (operands
[
3
]
) == (255 << INTVAL (operands
[
1
]
))"
[
(set (match_dup 0)
(and:HI (match_dup 0)
(const_int 255)))
(parallel
[
(set (match_dup 0)
(ashift:HI (match_dup 0)
(match_dup 1)))
(clobber (match_dup 2))])]
"")
(define_peephole2
[
(parallel
[
(set (match_operand:SI 0 "register_operand" "")
(lshiftrt:SI (match_dup 0)
(match_operand:SI 1 "const_int_operand" "")))
(clobber (match_operand:SI 2 "" ""))])
(set (match_dup 0)
(and:SI (match_dup 0)
(match_operand:SI 3 "const_int_operand" "")))]
"INTVAL (operands
[
3
]
) == (255 >> INTVAL (operands
[
1
]
))"
[
(set (match_dup 0)
(and:SI (match_dup 0)
(const_int 255)))
(parallel
[
(set (match_dup 0)
(lshiftrt:SI (match_dup 0)
(match_dup 1)))
(clobber (match_dup 2))])]
"")
(define_peephole2
[
(parallel
[
(set (match_operand:SI 0 "register_operand" "")
(ashift:SI (match_dup 0)
(match_operand:SI 1 "const_int_operand" "")))
(clobber (match_operand:SI 2 "" ""))])
(set (match_dup 0)
(and:SI (match_dup 0)
(match_operand:SI 3 "const_int_operand" "")))]
"INTVAL (operands
[
3
]
) == (255 << INTVAL (operands
[
1
]
))"
[
(set (match_dup 0)
(and:SI (match_dup 0)
(const_int 255)))
(parallel
[
(set (match_dup 0)
(ashift:SI (match_dup 0)
(match_dup 1)))
(clobber (match_dup 2))])]
"")
(define_peephole2
[
(parallel
[
(set (match_operand:SI 0 "register_operand" "")
(lshiftrt:SI (match_dup 0)
(match_operand:SI 1 "const_int_operand" "")))
(clobber (match_operand:SI 2 "" ""))])
(set (match_dup 0)
(and:SI (match_dup 0)
(match_operand:SI 3 "const_int_operand" "")))]
"INTVAL (operands
[
3
]
) == (65535 >> INTVAL (operands
[
1
]
))"
[
(set (match_dup 0)
(and:SI (match_dup 0)
(const_int 65535)))
(parallel
[
(set (match_dup 0)
(lshiftrt:SI (match_dup 0)
(match_dup 1)))
(clobber (match_dup 2))])]
"")
(define_peephole2
[
(parallel
[
(set (match_operand:SI 0 "register_operand" "")
(ashift:SI (match_dup 0)
(match_operand:SI 1 "const_int_operand" "")))
(clobber (match_operand:SI 2 "" ""))])
(set (match_dup 0)
(and:SI (match_dup 0)
(match_operand:SI 3 "const_int_operand" "")))]
"INTVAL (operands
[
3
]
) == (65535 << INTVAL (operands
[
1
]
))"
[
(set (match_dup 0)
(and:SI (match_dup 0)
(const_int 65535)))
(parallel
[
(set (match_dup 0)
(ashift:SI (match_dup 0)
(match_dup 1)))
(clobber (match_dup 2))])]
"")
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