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
dff23a65
Commit
dff23a65
authored
Jan 24, 2003
by
Kazu Hirata
Committed by
Kazu Hirata
Jan 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
From-SVN: r61702
parent
05739753
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
gcc/ChangeLog
+4
-0
gcc/config/h8300/h8300.md
+21
-0
No files found.
gcc/ChangeLog
View file @
dff23a65
2003
-
01
-
24
Kazu
Hirata
<
kazu
@cs
.
umass
.
edu
>
*
config
/
h8300
/
h8300
.
md
(
*
andsi3_ashift_n_lower
)
:
New
.
2003
-
01
-
24
Volker
Reichelt
<
reichelt
@igpm
.
rwth
-
aachen
.
de
>
*
doc
/
bugreport
.
texi
:
Use
@command
instead
of
@code
for
commands
.
...
...
gcc/config/h8300/h8300.md
View file @
dff23a65
...
...
@@ -2597,6 +2597,27 @@
(clobber (scratch:QI))])]
"")
;; Transform (SImode << B) & 0xffff into (SImode) (HImode << B).
(define_insn_and_split "
*
andsi3_ashift_n_lower"
[
(set (match_operand:SI 0 "register_operand" "=r,r")
(and:SI (ashift:SI (match_operand:SI 1 "register_operand" "0,0")
(match_operand:QI 2 "const_int_operand" "S,n"))
(match_operand:SI 3 "const_int_operand" "n,n")))
(clobber (match_scratch:QI 4 "=X,&r"))]
"(TARGET_H8300H || TARGET_H8300S)
&& INTVAL (operands
[
2
]
) <= 15
&& INTVAL (operands
[
3
]
) == ((-1 << INTVAL (operands
[
2
]
)) & 0xffff)"
"#"
"&& reload_completed"
[
(parallel
[
(set (match_dup 5)
(ashift:HI (match_dup 5)
(match_dup 2)))
(clobber (match_dup 4))])
(set (match_dup 0)
(zero_extend:SI (match_dup 5)))]
"operands
[
5
]
= gen_rtx_REG (HImode, REGNO (operands
[
0
]
));")
;; Accept (A >> 30) & 2 and the like.
(define_insn "
*
andsi3_lshiftrt_n_sb"
...
...
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