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
8e466531
Commit
8e466531
authored
Jan 25, 2000
by
Gavin Romig-Koch
Committed by
Gavin Romig-Koch
Jan 25, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/mips/mips.h (LEGITIMATE_CONSTANT_P): Fix for mips16.
From-SVN: r31617
parent
490cab72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
gcc/ChangeLog
+4
-0
gcc/config/mips/mips.h
+10
-5
No files found.
gcc/ChangeLog
View file @
8e466531
2000
-
01
-
25
Gavin
Romig
-
Koch
<
gavin
@cygnus
.
com
>
2000
-
01
-
25
Gavin
Romig
-
Koch
<
gavin
@cygnus
.
com
>
*
config
/
mips
/
mips
.
h
(
LEGITIMATE_CONSTANT_P
)
:
Fix
for
mips16
.
2000
-
01
-
25
Gavin
Romig
-
Koch
<
gavin
@cygnus
.
com
>
*
Makefile
.
in
(
c
-
gperf
.
h
)
:
Change
the
"See"
pointer
to
*
Makefile
.
in
(
c
-
gperf
.
h
)
:
Change
the
"See"
pointer
to
point
to
the
new
"generated_files"
doc
.
point
to
the
new
"generated_files"
doc
.
...
...
gcc/config/mips/mips.h
View file @
8e466531
...
@@ -2942,14 +2942,19 @@ typedef struct mips_args {
...
@@ -2942,14 +2942,19 @@ typedef struct mips_args {
to be generated at present. Also, the MIPS assembler does not
to be generated at present. Also, the MIPS assembler does not
grok li.d Infinity. */
grok li.d Infinity. */
/* ??? SGI Irix 6 assembler fails for CONST address, so reject them. */
/* ??? SGI Irix 6 assembler fails for CONST address, so reject them.
Note that the Irix 6 assembler problem may already be fixed.
Note also that the GET_CODE (X) == CONST test catches the mips16
gp pseudo reg (see mips16_gp_pseudo_reg) deciding it is not
a LEGITIMATE_CONSTANT. If we ever want mips16 and ABI_N32 or
ABI_64 to work together, we'll need to fix this. */
#define LEGITIMATE_CONSTANT_P(X) \
#define LEGITIMATE_CONSTANT_P(X) \
((GET_CODE (X) != CONST_DOUBLE \
((GET_CODE (X) != CONST_DOUBLE \
|| mips_const_double_ok (X, GET_MODE (X))) \
|| mips_const_double_ok (X, GET_MODE (X))) \
&& ! (GET_CODE (X) == CONST \
&& ! (GET_CODE (X) == CONST
\
&&
mips_abi != ABI_32
\
&&
! TARGET_GAS
\
&&
mips_abi != ABI_O64
\
&&
(mips_abi == ABI_N32
\
&& mips_abi != ABI_EABI
) \
|| mips_abi == ABI_64)
) \
&& (! TARGET_MIPS16 || mips16_constant (X, GET_MODE (X), 0, 0)))
&& (! TARGET_MIPS16 || mips16_constant (X, GET_MODE (X), 0, 0)))
/* A C compound statement that attempts to replace X with a valid
/* A C compound statement that attempts to replace X with a valid
...
...
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