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
4f23aac0
Commit
4f23aac0
authored
28 years ago
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(iorsi_zexthi_ashl16): New pattern.
(ashrsi_16): New name for old unnamed pattern. From-SVN: r13249
parent
3cd3e833
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletions
+21
-1
gcc/config/m68k/m68k.md
+21
-1
No files found.
gcc/config/m68k/m68k.md
View file @
4f23aac0
...
...
@@ -3629,6 +3629,26 @@
"!TARGET_5200"
"or%.b %1,%0")
;; On all 68k models, this makes faster code in a special case.
;; See also ashlsi_16, ashrsi_16 and lshrsi_16.
(define_insn "iorsi_zexthi_ashl16"
[
(set (match_operand:SI 0 "general_operand" "=d,d")
(ior:SI (zero_extend:SI (match_operand:HI 1 "general_operand" "dmn,dmn"))
(ashift:SI (match_operand:SI 2 "general_operand" "o,0")
(const_int 16))))]
""
"
*
{
CC_STATUS_INIT;
if (GET_CODE (operands
[
2
]
) != REG)
{
operands
[
2
]
= adj_offsettable_operand (operands
[
2
]
, 2);
output_asm_insn (
\"
move%.w %2,%0
\"
, operands);
}
return
\"
swap %0
\;
mov%.w %1,%0
\"
;
}")
(define_insn ""
[
(set (match_operand:SI 0 "general_operand" "=o,d")
(ior:SI (zero_extend:SI (match_operand 1 "general_operand" "dn,dmn"))
...
...
@@ -4308,7 +4328,7 @@
;; On all 68k models, this makes faster code in a special case.
(define_insn ""
(define_insn "
ashrsi_16
"
[
(set (match_operand:SI 0 "register_operand" "=d")
(ashiftrt:SI (match_operand:SI 1 "register_operand" "0")
(const_int 16)))]
...
...
This diff is collapsed.
Click to expand it.
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