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
27c38b75
Commit
27c38b75
authored
Apr 03, 1997
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(mips_move_2words): Add SIGN_EXTEND support for SYMBOL_REF,
LABEL_REF, and CONST operands. From-SVN: r13834
parent
714aa06f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
gcc/config/mips/mips.c
+14
-2
No files found.
gcc/config/mips/mips.c
View file @
27c38b75
...
...
@@ -1543,7 +1543,12 @@ mips_move_2words (operands, insn)
/* Sanity check. */
if
(
GET_CODE
(
operands
[
1
])
==
SIGN_EXTEND
&&
code1
!=
REG
&&
code1
!=
CONST_INT
)
&&
code1
!=
CONST_INT
/* The following three can happen as the result of a questionable
cast. */
&&
code1
!=
LABEL_REF
&&
code1
!=
SYMBOL_REF
&&
code1
!=
CONST
)
abort
();
if
(
code0
==
REG
)
...
...
@@ -1803,7 +1808,14 @@ mips_move_2words (operands, insn)
if
(
TARGET_STATS
)
mips_count_memory_refs
(
op1
,
2
);
ret
=
"dla
\t
%0,%a1"
;
if
(
GET_CODE
(
operands
[
1
])
==
SIGN_EXTEND
)
/* We deliberately remove the 'a' from '%1', so that we don't
have to add SIGN_EXTEND support to print_operand_address.
print_operand will just call print_operand_address in this
case, so there is no problem. */
ret
=
"la
\t
%0,%1"
;
else
ret
=
"dla
\t
%0,%a1"
;
}
}
...
...
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