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
54dad0c2
Commit
54dad0c2
authored
Dec 21, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(adddi3, subdi3): New patterns.
From-SVN: r8684
parent
781e6f76
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
gcc/config/m68k/m68k.md
+24
-0
No files found.
gcc/config/m68k/m68k.md
View file @
54dad0c2
...
...
@@ -1854,6 +1854,18 @@
;; add instructions
(define_insn "adddi3"
[
(set (match_operand:DI 0 "register_operand" "=d")
(plus:DI (match_operand:DI 1 "register_operand" "%0")
(match_operand:DI 2 "register_operand" "d")))]
""
"
*
{
operands
[
1
]
= gen_rtx (REG, SImode, REGNO (operands
[
0
]
) + 1);
operands
[
3
]
= gen_rtx (REG, SImode, REGNO (operands
[
2
]
) + 1);
return
\"
add%.l %3,%1
\;
addx%.l %2,%0
\"
;
} ")
;; Note that the middle two alternatives are near-duplicates
;; in order to handle insns generated by reload.
;; This is needed since they are not themselves reloaded,
...
...
@@ -2274,6 +2286,18 @@
;; subtract instructions
(define_insn "subdi3"
[
(set (match_operand:DI 0 "register_operand" "=d")
(minus:DI (match_operand:DI 1 "register_operand" "0")
(match_operand:DI 2 "register_operand" "d")))]
""
"
*
{
operands
[
1
]
= gen_rtx (REG, SImode, REGNO (operands
[
0
]
) + 1);
operands
[
3
]
= gen_rtx (REG, SImode, REGNO (operands
[
2
]
) + 1);
return
\"
sub%.l %3,%1
\;
subx%.l %2,%0
\"
;
} ")
(define_insn "subsi3"
[
(set (match_operand:SI 0 "general_operand" "=m,r")
(minus:SI (match_operand:SI 1 "general_operand" "0,0")
...
...
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