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
82423cba
Commit
82423cba
authored
Aug 08, 2001
by
Aldy Hernandez
Committed by
Aldy Hernandez
Aug 08, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
From-SVN: r44721
parent
5755cd38
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
gcc/ChangeLog
+4
-0
gcc/config/mips/mips.c
+6
-3
No files found.
gcc/ChangeLog
View file @
82423cba
2001
-
08
-
07
Aldy
Hernandez
<
aldyh
@redhat
.
com
>
*
config
/
mips
/
mips
.
c
(
mips_legitimate_address_p
)
:
Limit
"la"
addresses
.
2001
-
08
-
08
Jason
Merrill
<
jason_merrill
@redhat
.
com
>
*
alias
.
c
(
get_alias_set
)
:
Return
a
previously
calculated
...
...
gcc/config/mips/mips.c
View file @
82423cba
...
...
@@ -1364,9 +1364,12 @@ mips_legitimate_address_p (mode, xinsn, strict)
||
code1
!=
CONST
||
GET_CODE
(
XEXP
(
xplus1
,
0
))
!=
MINUS
)
/* When assembling for machines with 64 bit registers,
the assembler will not sign-extend the constant "foo"
in "la x, foo(x)" */
&&
(
!
TARGET_64BIT
||
(
code1
==
CONST_INT
&&
INTVAL
(
xplus1
)
>
0
))
the assembler will sign-extend the constant "foo"
in "la x, foo(x)" yielding the wrong result for:
(set (blah:DI) (plus x y)). */
&&
(
!
TARGET_64BIT
||
trunc_int_for_mode
(
INTVAL
(
xplus1
),
SImode
)
==
INTVAL
(
xplus1
))
&&
!
TARGET_MIPS16
)
return
1
;
}
...
...
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