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
70cff8f5
Commit
70cff8f5
authored
Apr 16, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(addsidi3_2): Handle non-MEM overlap case.
From-SVN: r11829
parent
0500d6f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
gcc/config/i386/i386.md
+30
-0
No files found.
gcc/config/i386/i386.md
View file @
70cff8f5
...
...
@@ -2764,6 +2764,36 @@
if (GET_CODE (operands[0]) != MEM || GET_CODE (operands[1]) != MEM)
{
if (rtx_equal_p (low[0], operands[2]))
{
output_asm_insn (AS2 (mov%L0,%2,%0), high);
output_asm_insn (AS2 (add%L0,%1,%0), low);
output_asm_insn (AS2 (adc%L0,%1,%0), high);
RET;
}
if (rtx_equal_p (high[0], operands[2]))
{
if (GET_CODE (operands[0]) != MEM)
{
output_asm_insn (AS2 (mov%L0,%2,%0), low);
output_asm_insn (AS2 (mov%L0,%2,%0), high);
output_asm_insn (AS2 (add%L0,%1,%0), low);
output_asm_insn (AS2 (adc%L0,%1,%0), high);
}
else
{
/* It's too late to ask for a scratch now - but this
will probably not happen too often. */
output_asm_insn (AS2 (add%L1,%2,%1), low);
output_asm_insn (AS2 (mov%L0,%1,%0), low);
output_asm_insn (AS2 (mov%L1,%2,%1), low);
output_asm_insn (AS2 (mov%L0,%2,%0), high);
output_asm_insn (AS2 (adc%L0,%1,%0), high);
output_asm_insn (AS2 (sub%L1,%0,%1), low);
output_asm_insn (AS1 (neg%L1,%1), low);
}
RET;
}
output_asm_insn (AS2 (mov%L1,%3,%1), xops);
output_asm_insn (AS2 (mov%L0,%2,%0), xops);
}
...
...
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