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
161eb4fc
Commit
161eb4fc
authored
Apr 02, 2002
by
Richard Henderson
Committed by
Richard Henderson
Apr 02, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
From-SVN: r51736
parent
501e321e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
2 deletions
+54
-2
gcc/ChangeLog
+5
-0
gcc/config/m68k/m68k.md
+49
-2
No files found.
gcc/ChangeLog
View file @
161eb4fc
2002-04-02 Richard Henderson <rth@redhat.com>
PR opt/420
* config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
2002-04-01 Richard Henderson <rth@redhat.com>
2002-04-01 Richard Henderson <rth@redhat.com>
PR target/1538
PR target/1538
...
...
gcc/config/m68k/m68k.md
View file @
161eb4fc
...
@@ -7653,6 +7653,53 @@
...
@@ -7653,6 +7653,53 @@
;;
;;
;; Which moves the jCC condition outside the inner loop for free.
;; Which moves the jCC condition outside the inner loop for free.
;;
;;
(define_peephole
[
(set (pc) (if_then_else (match_operator 3 "valid_dbcc_comparison_p"
[
(cc0) (const_int 0)
]
)
(label_ref (match_operand 2 "" ""))
(pc)))
(parallel
[
(set (pc)
(if_then_else
(ne (match_operand:HI 0 "register_operand" "")
(const_int 0))
(label_ref (match_operand 1 "" ""))
(pc)))
(set (match_dup 0)
(plus:HI (match_dup 0)
(const_int -1)))])]
"!TARGET_5200 && DATA_REG_P (operands
[
0
]
) && ! flags_in_68881 ()"
"
*
{
CC_STATUS_INIT;
output_dbcc_and_branch (operands);
return
\"\"
;
}")
(define_peephole
[
(set (pc) (if_then_else (match_operator 3 "valid_dbcc_comparison_p"
[
(cc0) (const_int 0)
]
)
(label_ref (match_operand 2 "" ""))
(pc)))
(parallel
[
(set (pc)
(if_then_else
(ne (match_operand:SI 0 "register_operand" "")
(const_int 0))
(label_ref (match_operand 1 "" ""))
(pc)))
(set (match_dup 0)
(plus:SI (match_dup 0)
(const_int -1)))])]
"!TARGET_5200 && DATA_REG_P (operands
[
0
]
) && ! flags_in_68881 ()"
"
*
{
CC_STATUS_INIT;
output_dbcc_and_branch (operands);
return
\"\"
;
}")
(define_peephole
(define_peephole
[
(set (pc) (if_then_else (match_operator 3 "valid_dbcc_comparison_p"
[
(set (pc) (if_then_else (match_operator 3 "valid_dbcc_comparison_p"
[
(cc0) (const_int 0)
]
)
[
(cc0) (const_int 0)
]
)
...
@@ -7661,7 +7708,7 @@
...
@@ -7661,7 +7708,7 @@
(parallel
(parallel
[
(set (pc)
[
(set (pc)
(if_then_else
(if_then_else
(ge (plus:HI (match_operand:HI 0 "register_operand" "
+d
")
(ge (plus:HI (match_operand:HI 0 "register_operand" "")
(const_int -1))
(const_int -1))
(const_int 0))
(const_int 0))
(label_ref (match_operand 1 "" ""))
(label_ref (match_operand 1 "" ""))
...
@@ -7685,7 +7732,7 @@
...
@@ -7685,7 +7732,7 @@
(parallel
(parallel
[
(set (pc)
[
(set (pc)
(if_then_else
(if_then_else
(ge (plus:SI (match_operand:SI 0 "register_operand" "
+d
")
(ge (plus:SI (match_operand:SI 0 "register_operand" "")
(const_int -1))
(const_int -1))
(const_int 0))
(const_int 0))
(label_ref (match_operand 1 "" ""))
(label_ref (match_operand 1 "" ""))
...
...
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