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
ae12c666
Commit
ae12c666
authored
Jul 10, 2003
by
Kazu Hirata
Committed by
Kazu Hirata
Jul 10, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/h8300/h8300.md (a peephole2): New.
From-SVN: r69176
parent
f9d232c3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
gcc/ChangeLog
+4
-0
gcc/config/h8300/h8300.md
+30
-0
No files found.
gcc/ChangeLog
View file @
ae12c666
2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md (a peephole2): New.
2003-07-10 Alexandre Oliva <aoliva@redhat.com>
2003-07-10 Alexandre Oliva <aoliva@redhat.com>
2001-12-13 Alexandre Oliva <aoliva@redhat.com>
2001-12-13 Alexandre Oliva <aoliva@redhat.com>
...
...
gcc/config/h8300/h8300.md
View file @
ae12c666
...
@@ -4120,6 +4120,8 @@
...
@@ -4120,6 +4120,8 @@
;;
;;
;; dead 0xffffff?? except -1 and -2 eq/ne xor.b and not.l
;; dead 0xffffff?? except -1 and -2 eq/ne xor.b and not.l
;; dead 0xffff??ff eq/ne xor.b and not.l
;; dead 0xffff??ff eq/ne xor.b and not.l
;; dead 0x40000000 (H8S) eq/ne rotl.l and dec.l
;; dead 0x80000000 eq/ne rotl.l and dec.l
;;
;;
;; live 1 geu/ltu copy and shar.l
;; live 1 geu/ltu copy and shar.l
;; live 3 (H8S) geu/ltu copy and shar.l
;; live 3 (H8S) geu/ltu copy and shar.l
...
@@ -4248,6 +4250,34 @@
...
@@ -4248,6 +4250,34 @@
(pc)))]
(pc)))]
"operands
[
4
]
= GEN_INT (INTVAL (operands
[
1
]
) ^ -1);")
"operands
[
4
]
= GEN_INT (INTVAL (operands
[
1
]
) ^ -1);")
(define_peephole2
[
(set (cc0)
(compare (match_operand:SI 0 "register_operand" "")
(match_operand:SI 1 "const_int_operand" "")))
(set (pc)
(if_then_else (match_operator 3 "eqne_operator"
[
(cc0) (const_int 0)
]
)
(label_ref (match_operand 2 "" ""))
(pc)))]
"(TARGET_H8300H || TARGET_H8300S)
&& peep2_reg_dead_p (1, operands
[
0
]
)
&& (INTVAL (operands
[
1
]
) == -2147483648
|| (TARGET_H8300S && INTVAL (operands
[
1
]
) == 1073741824))"
[
(set (match_dup 0)
(rotate:SI (match_dup 0)
(match_dup 4)))
(set (match_dup 0)
(unspec:SI
[
(match_dup 0)
(const_int -1)]
UNSPEC_INCDEC))
(set (cc0)
(match_dup 0))
(set (pc)
(if_then_else (match_op_dup 3
[
(cc0) (const_int 0)
]
)
(label_ref (match_dup 2))
(pc)))]
"operands
[
4
]
= GEN_INT (INTVAL (operands
[
1
]
) == -2147483648 ? 1 : 2);")
;; Transform
;; Transform
;;
;;
;; cmp.l #1,er0
;; cmp.l #1,er0
...
...
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