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
bdf423cb
Commit
bdf423cb
authored
May 20, 1996
by
Michael Meissner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix inline of fp/int convert
From-SVN: r12057
parent
b34ec578
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
28 deletions
+37
-28
gcc/config/rs6000/rs6000.md
+37
-28
No files found.
gcc/config/rs6000/rs6000.md
View file @
bdf423cb
...
...
@@ -2612,68 +2612,77 @@
}")
(define_insn "lshrsi3_power"
[
(set (match_operand:SI 0 "gpc_reg_operand" "=r,r")
(lshiftrt:SI (match_operand:SI 1 "gpc_reg_operand" "r,r")
(match_operand:SI 2 "reg_or_cint_operand" "r,i")))
(clobber (match_scratch:SI 3 "=q,X"))]
[
(set (match_operand:SI 0 "gpc_reg_operand" "=r,r
,r
")
(lshiftrt:SI (match_operand:SI 1 "gpc_reg_operand" "r,r
,r
")
(match_operand:SI 2 "reg_or_cint_operand" "r,
O,
i")))
(clobber (match_scratch:SI 3 "=q,X
,X
"))]
"TARGET_POWER"
"@
sre %0,%1,%2
mr %0,%1
{s%A2i|s%A2wi} %0,%1,%h2")
(define_insn "lshrsi3_no_power"
[
(set (match_operand:SI 0 "gpc_reg_operand" "=r")
(lshiftrt:SI (match_operand:SI 1 "gpc_reg_operand" "r")
(match_operand:SI 2 "reg_or_cint_operand" "ri")))]
[
(set (match_operand:SI 0 "gpc_reg_operand" "=r
,r
")
(lshiftrt:SI (match_operand:SI 1 "gpc_reg_operand" "r
,r
")
(match_operand:SI 2 "reg_or_cint_operand" "
O,
ri")))]
"! TARGET_POWER"
"{sr|srw}%I2 %0,%1,%h2")
"@
mr %0,%1
{sr|srw}%I2 %0,%1,%h2")
(define_insn ""
[
(set (match_operand:CC 0 "cc_reg_operand" "=x,x")
(compare:CC (lshiftrt:SI (match_operand:SI 1 "gpc_reg_operand" "r,r")
(match_operand:SI 2 "reg_or_cint_operand" "r,i"))
[
(set (match_operand:CC 0 "cc_reg_operand" "=x,x
,x
")
(compare:CC (lshiftrt:SI (match_operand:SI 1 "gpc_reg_operand" "r,r
,r
")
(match_operand:SI 2 "reg_or_cint_operand" "r,
O,
i"))
(const_int 0)))
(clobber (match_scratch:SI 3 "=r,r"))
(clobber (match_scratch:SI 4 "=q,X"))]
(clobber (match_scratch:SI 3 "=r,
X,
r"))
(clobber (match_scratch:SI 4 "=q,X
,X
"))]
"TARGET_POWER"
"@
sre. %3,%1,%2
mr. %1,%1
{s%A2i.|s%A2wi.} %3,%1,%h2"
[
(set_attr "type" "delayed_compare")
]
)
(define_insn ""
[
(set (match_operand:CC 0 "cc_reg_operand" "=x")
(compare:CC (lshiftrt:SI (match_operand:SI 1 "gpc_reg_operand" "r")
(match_operand:SI 2 "reg_or_cint_operand" "ri"))
[
(set (match_operand:CC 0 "cc_reg_operand" "=x
,x
")
(compare:CC (lshiftrt:SI (match_operand:SI 1 "gpc_reg_operand" "r
,r
")
(match_operand:SI 2 "reg_or_cint_operand" "
O,
ri"))
(const_int 0)))
(clobber (match_scratch:SI 3 "=r"))]
(clobber (match_scratch:SI 3 "=
X,
r"))]
"! TARGET_POWER"
"{sr|srw}%I2. %3,%1,%h2"
"@
mr. %1,%1
{sr|srw}%I2. %3,%1,%h2"
[
(set_attr "type" "delayed_compare")
]
)
(define_insn ""
[
(set (match_operand:CC 3 "cc_reg_operand" "=x,x")
(compare:CC (lshiftrt:SI (match_operand:SI 1 "gpc_reg_operand" "r,r")
(match_operand:SI 2 "reg_or_cint_operand" "r,i"))
[
(set (match_operand:CC 3 "cc_reg_operand" "=x,x
,x
")
(compare:CC (lshiftrt:SI (match_operand:SI 1 "gpc_reg_operand" "r,r
,r
")
(match_operand:SI 2 "reg_or_cint_operand" "r,
O,
i"))
(const_int 0)))
(set (match_operand:SI 0 "gpc_reg_operand" "=r,r")
(set (match_operand:SI 0 "gpc_reg_operand" "=r,r
,r
")
(lshiftrt:SI (match_dup 1) (match_dup 2)))
(clobber (match_scratch:SI 4 "=q,X"))]
(clobber (match_scratch:SI 4 "=q,X
,X
"))]
"TARGET_POWER"
"@
sre. %0,%1,%2
mr. %0,%1
{s%A2i.|s%A2wi.} %0,%1,%h2"
[
(set_attr "type" "delayed_compare")
]
)
(define_insn ""
[
(set (match_operand:CC 3 "cc_reg_operand" "=x")
(compare:CC (lshiftrt:SI (match_operand:SI 1 "gpc_reg_operand" "r")
(match_operand:SI 2 "reg_or_cint_operand" "ri"))
[
(set (match_operand:CC 3 "cc_reg_operand" "=x
,x
")
(compare:CC (lshiftrt:SI (match_operand:SI 1 "gpc_reg_operand" "r
,r
")
(match_operand:SI 2 "reg_or_cint_operand" "
O,
ri"))
(const_int 0)))
(set (match_operand:SI 0 "gpc_reg_operand" "=r")
(set (match_operand:SI 0 "gpc_reg_operand" "=r
,r
")
(lshiftrt:SI (match_dup 1) (match_dup 2)))]
"! TARGET_POWER"
"{sr|srw}%I2. %0,%1,%h2"
"@
mr. %0,%1
{sr|srw}%I2. %0,%1,%h2"
[
(set_attr "type" "delayed_compare")
]
)
(define_insn ""
...
...
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