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
ed359ebc
Commit
ed359ebc
authored
Dec 31, 1992
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add peephole to eliminate unecessary clear instructions
in strict_low_part insn sequences. From-SVN: r3015
parent
483404b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
gcc/config/m68k/m68k.md
+23
-0
No files found.
gcc/config/m68k/m68k.md
View file @
ed359ebc
...
...
@@ -4884,6 +4884,29 @@
return
\"\"
;
}")
(define_peephole
[
(set (match_operand:SI 0 "register_operand" "=d")
(const_int 0))
(set (strict_low_part (subreg:HI (match_dup 0) 0))
(match_operand:HI 1 "general_operand" "rmn"))]
"strict_low_part_peephole_ok (HImode, prev_nonnote_insn (insn), operands
[
0
]
)"
"
*
{
if (GET_CODE (operands
[
1
]
) == CONST_INT)
{
if (operands
[
1
]
== const0_rtx
&& (DATA_REG_P (operands
[
0
]
)
|| GET_CODE (operands
[
0
]
) == MEM)
/
*
clr insns on 68000 read before writing.
This isn't so on the 68010, but we have no alternative for it.
*
/
&& (TARGET_68020
|| !(GET_CODE (operands
[
0
]
) == MEM
&& MEM_VOLATILE_P (operands
[
0
]
))))
return
\"
clr%.w %0
\"
;
}
return
\"
move%.w %1,%0
\"
;
}")
;; dbCC peepholes
;;
;; Turns
...
...
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