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
a8136932
Commit
a8136932
authored
27 years ago
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(output_block_move): When loading addresses into registers,
add checks for ABI_N32 and ABI_64. From-SVN: r14267
parent
b88c08b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
gcc/config/mips/mips.c
+6
-2
No files found.
gcc/config/mips/mips.c
View file @
a8136932
...
...
@@ -2673,7 +2673,12 @@ output_block_move (insn, operands, num_regs, move_type)
/* If we are given global or static addresses, and we would be
emitting a few instructions, try to save time by using a
temporary register for the pointer. */
if
(
num_regs
>
2
&&
(
bytes
>
2
*
align
||
move_type
!=
BLOCK_MOVE_NORMAL
))
/* ??? The SGI Irix6 assembler fails when a SYMBOL_REF is used in
an ldl/ldr instruction pair. We play it safe, and always move
constant addresses into registers when generating N32/N64 code, just
in case we might emit an unaligned load instruction. */
if
(
num_regs
>
2
&&
(
bytes
>
2
*
align
||
move_type
!=
BLOCK_MOVE_NORMAL
||
mips_abi
==
ABI_N32
||
mips_abi
==
ABI_64
))
{
if
(
CONSTANT_P
(
src_reg
))
{
...
...
@@ -2768,7 +2773,6 @@ output_block_move (insn, operands, num_regs, move_type)
bytes
-=
8
;
}
/* ??? Fails because of a MIPS assembler bug? */
else
if
(
TARGET_64BIT
&&
bytes
>=
8
)
{
if
(
BYTES_BIG_ENDIAN
)
...
...
This diff is collapsed.
Click to expand it.
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