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
2bee0449
Commit
2bee0449
authored
May 31, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(extendqidi2, extendqisi2, extendqihi2): Remove non-existent lba instruction.
(ashrdi3): Undo previous change. From-SVN: r7397
parent
7efad3f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
37 deletions
+17
-37
gcc/config/rs6000/rs6000.md
+17
-37
No files found.
gcc/config/rs6000/rs6000.md
View file @
2bee0449
...
@@ -287,20 +287,11 @@
...
@@ -287,20 +287,11 @@
"rldicl. %0,%1,0,56"
"rldicl. %0,%1,0,56"
[
(set_attr "type" "compare")
]
)
[
(set_attr "type" "compare")
]
)
(define_
expand
"extendqidi2"
(define_
insn
"extendqidi2"
[
(set (match_operand:DI 0 "gpc_reg_operand" "")
[
(set (match_operand:DI 0 "gpc_reg_operand" "
=r
")
(sign_extend:DI (match_operand:QI 1 "gpc_reg_operand" "")))]
(sign_extend:DI (match_operand:QI 1 "gpc_reg_operand" "
r
")))]
"TARGET_POWERPC64"
"TARGET_POWERPC64"
"")
"extsb %0,%1")
(define_insn ""
[
(set (match_operand:DI 0 "gpc_reg_operand" "=r,r")
(sign_extend:DI (match_operand:QI 1 "reg_or_mem_operand" "m,r")))]
"TARGET_POWERPC64"
"@
lba%U1%X1 %0,%1
extsb %0,%1"
[
(set_attr "type" "load,*")
]
)
(define_insn ""
(define_insn ""
[
(set (match_operand:CC 0 "cc_reg_operand" "=x")
[
(set (match_operand:CC 0 "cc_reg_operand" "=x")
...
@@ -507,13 +498,10 @@
...
@@ -507,13 +498,10 @@
}")
}")
(define_insn "extendqisi2_ppc"
(define_insn "extendqisi2_ppc"
[
(set (match_operand:SI 0 "gpc_reg_operand" "=r
,r
")
[
(set (match_operand:SI 0 "gpc_reg_operand" "=r")
(sign_extend:SI (match_operand:QI 1 "
reg_or_mem_operand" "m,
r")))]
(sign_extend:SI (match_operand:QI 1 "
gpc_reg_operand" "
r")))]
"TARGET_POWERPC"
"TARGET_POWERPC"
"@
"extsb %0,%1")
lba%U1%X1 %0,%1
extsb %0,%1"
[
(set_attr "type" "load,*")
]
)
(define_insn ""
(define_insn ""
[
(set (match_operand:CC 0 "cc_reg_operand" "=x")
[
(set (match_operand:CC 0 "cc_reg_operand" "=x")
...
@@ -610,13 +598,10 @@
...
@@ -610,13 +598,10 @@
}")
}")
(define_insn "extendqihi2_ppc"
(define_insn "extendqihi2_ppc"
[
(set (match_operand:HI 0 "gpc_reg_operand" "=r
,r
")
[
(set (match_operand:HI 0 "gpc_reg_operand" "=r")
(sign_extend:HI (match_operand:QI 1 "
reg_or_mem_operand" "m,
r")))]
(sign_extend:HI (match_operand:QI 1 "
gpc_reg_operand" "
r")))]
"TARGET_POWERPC"
"TARGET_POWERPC"
"@
"extsb %0,%1")
lba%U1%X1 %0,%1
extsb %0,%1"
[
(set_attr "type" "load,*")
]
)
(define_insn ""
(define_insn ""
[
(set (match_operand:CC 0 "cc_reg_operand" "=x")
[
(set (match_operand:CC 0 "cc_reg_operand" "=x")
...
@@ -3390,22 +3375,17 @@
...
@@ -3390,22 +3375,17 @@
;; just handle shifts by constants.
;; just handle shifts by constants.
(define_expand "ashrdi3"
(define_expand "ashrdi3"
[
(set (match_operand:DI 0 "gpc_reg_operand" "")
[
(parallel
[
(set (match_operand:DI 0 "gpc_reg_operand" "=")
(ashiftrt:DI (match_operand:DI 1 "gpc_reg_operand" "")
(ashiftrt:DI (match_operand:DI 1 "gpc_reg_operand" "")
(match_operand:SI 2 "reg_or_cint_operand" "")))]
(match_operand:SI 2 "general_operand" "")))
""
(clobber (match_scratch:SI 3 ""))])]
"TARGET_POWER"
"
"
{
{ if (GET_CODE (operands
[
2
]
) != CONST_INT)
if (TARGET_POWER && GET_CODE (operands
[
2
]
) != CONST_INT)
{
emit_insn (gen_ashrdi3_power (operands
[
0
]
, operands
[
1
]
, operands
[
2
]
));
DONE;
}
else if (! TARGET_POWERPC64)
FAIL;
FAIL;
}")
}")
(define_insn "
ashrdi3_power
"
(define_insn ""
[
(set (match_operand:DI 0 "gpc_reg_operand" "=r,r")
[
(set (match_operand:DI 0 "gpc_reg_operand" "=r,r")
(ashiftrt:DI (match_operand:DI 1 "gpc_reg_operand" "r,r")
(ashiftrt:DI (match_operand:DI 1 "gpc_reg_operand" "r,r")
(match_operand:SI 2 "const_int_operand" "M,i")))
(match_operand:SI 2 "const_int_operand" "M,i")))
...
...
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