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
3e8bd1ce
Commit
3e8bd1ce
authored
Dec 07, 1994
by
Steve Chamberlain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r8620
parent
732149f9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
11 deletions
+24
-11
gcc/config/sh/sh.md
+24
-11
No files found.
gcc/config/sh/sh.md
View file @
3e8bd1ce
...
...
@@ -616,7 +616,6 @@
;; shift left
(define_insn "ashlsi3_k"
[
(set (match_operand:SI 0 "arith_reg_operand" "=r,r")
(ashift:SI (match_operand:SI 1 "arith_reg_operand" "0,0")
...
...
@@ -681,21 +680,33 @@
(define_insn "ashrsi2_16"
[
(set (match_operand:SI 0 "register_operand" "=r")
(ashiftrt:SI (match_operand:SI 1 "register_operand" "0")
(const_int 16)))
(clobber (reg:SI 18))]
(ashiftrt:SI (match_operand:SI 1 "register_operand" "r")
(const_int 16)))]
""
"s
hlr16
%0
\;
exts.w %0,%0"
"s
wap.w %1,
%0
\;
exts.w %0,%0"
[
(set_attr "length" "4")
]
)
(define_insn "ashrsi2_31"
[
(set (match_operand:SI 0 "register_operand" "=r")
(ashiftrt:SI (match_operand:SI 1 "register_operand" "0")
(const_int 31)))]
[
(set (match_operand:SI 0 "register_operand" "=r,r")
(ashiftrt:SI (match_operand:SI 1 "register_operand" "0,!r")
(const_int 31)))
(clobber (reg:SI 18))]
""
"shal %0
\;
subc %0,%0"
[
(set_attr "length" "4")
]
)
"
*
{
if (which_alternative == 1)
{
if (dead_or_set_p (insn, operands
[
1
]
))
return
\"
shll %1
\;
subc %0,%0
\"
;
else
return
\"
mov %1,%0
\;
shll %0
\;
subc %0,%0
\"
;
}
return
\"
shll %0
\;
subc %0,%0
\"
;
}"
[
(set_attr "length" "4,6")
]
)
(define_insn "ashrsi3_n"
...
...
@@ -1945,3 +1956,4 @@
\ No newline at end of file
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