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
fa5679bb
Commit
fa5679bb
authored
Apr 12, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(adddi3/subdi3): Allow immediate constants.
From-SVN: r4101
parent
9854d9ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
gcc/config/rs6000/rs6000.md
+12
-8
No files found.
gcc/config/rs6000/rs6000.md
View file @
fa5679bb
...
...
@@ -1992,18 +1992,22 @@
;; Define the DImode operations that can be done in a small number
;; of instructions.
(define_insn "adddi3"
[
(set (match_operand:DI 0 "gpc_reg_operand" "=r")
(plus:DI (match_operand:DI 1 "gpc_reg_operand" "%r")
(match_operand:DI 2 "
gpc_reg_operand" "r
")))]
[
(set (match_operand:DI 0 "gpc_reg_operand" "=r
,r
")
(plus:DI (match_operand:DI 1 "gpc_reg_operand" "%r
,r
")
(match_operand:DI 2 "
reg_or_short_operand" "r,I
")))]
""
"a %L0,%L1,%L2
\;
ae %0,%1,%2")
"@
a %L0,%L1,%L2
\;
ae %0,%1,%2
ai %L0,%L1,%2
\;
a%G2e %0,%1")
(define_insn "subdi3"
[
(set (match_operand:DI 0 "gpc_reg_operand" "=r")
(minus:DI (match_operand:DI 1 "
gpc_reg_operand" "r
")
(match_operand:DI 2 "gpc_reg_operand" "r")))]
[
(set (match_operand:DI 0 "gpc_reg_operand" "=r
,r
")
(minus:DI (match_operand:DI 1 "
reg_or_short_operand" "r,I
")
(match_operand:DI 2 "gpc_reg_operand" "r
,r
")))]
""
"sf %L0,%L2,%L1
\;
sfe %0,%2,%1")
"@
sf %L0,%L2,%L1
\;
sfe %0,%2,%1
sfi %L0,%L2,%1
\;
sf%G1e %0,%2")
(define_insn "negdi2"
[
(set (match_operand:DI 0 "gpc_reg_operand" "=r")
...
...
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