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
902ac719
Commit
902ac719
authored
Feb 21, 2003
by
Kazu Hirata
Committed by
Kazu Hirata
Feb 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/h8300/h8300.md (a peephole2): New.
From-SVN: r63224
parent
7b540482
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
0 deletions
+36
-0
gcc/ChangeLog
+4
-0
gcc/config/h8300/h8300.md
+32
-0
No files found.
gcc/ChangeLog
View file @
902ac719
2003
-
02
-
21
Kazu
Hirata
<
kazu
@cs
.
umass
.
edu
>
*
config
/
h8300
/
h8300
.
md
(
a
peephole2
)
:
New
.
Fri
Feb
21
11
:
05
:
44
CET
2003
Jan
Hubicka
<
jh
@suse
.
cz
>
*
cfgrtl
.
c
(
commit_one_edge_insertion
)
:
Only
mark
BB
for
splitting
.
...
...
gcc/config/h8300/h8300.md
View file @
902ac719
...
...
@@ -3847,3 +3847,35 @@
(pc)))]
"operands
[
4
]
= gen_rtx_REG (HImode, REGNO (operands
[
0
]
));
operands
[
5
]
= GEN_INT (trunc_int_for_mode (INTVAL (operands
[
1
]
), HImode));")
(define_peephole2
[
(set (match_operand:SI 0 "register_operand" "")
(and:SI (match_dup 0)
(match_operand:SI 1 "const_int_qi_operand" "")))
(set (match_dup 0)
(xor:SI (match_dup 0)
(match_operand:SI 2 "const_int_qi_operand" "")))
(set (cc0)
(match_dup 0))
(set (pc)
(if_then_else (match_operator 4 "eqne_operator"
[
(cc0) (const_int 0)
]
)
(label_ref (match_operand 3 "" ""))
(pc)))]
"peep2_reg_dead_p (3, operands
[
0
]
)
&& (~INTVAL (operands
[
1
]
) & INTVAL (operands
[
2
]
)) == 0"
[
(set (match_dup 5)
(and:QI (match_dup 5)
(match_dup 6)))
(set (match_dup 5)
(xor:QI (match_dup 5)
(match_dup 7)))
(set (cc0)
(match_dup 5))
(set (pc)
(if_then_else (match_op_dup 4
[
(cc0) (const_int 0)
]
)
(label_ref (match_dup 3))
(pc)))]
"operands
[
5
]
= gen_rtx_REG (QImode, REGNO (operands
[
0
]
));
operands
[
6
]
= GEN_INT (trunc_int_for_mode (INTVAL (operands
[
1
]
), QImode));
operands
[
7
]
= GEN_INT (trunc_int_for_mode (INTVAL (operands
[
2
]
), QImode));")
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