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
2d4f57f8
Commit
2d4f57f8
authored
May 19, 1993
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(operand_subword): Reject cases when BITS_PER_WORD is greater than
HOST_BITS_PER_INT unless OP is const0_rtx. From-SVN: r4502
parent
7b4d5f42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
gcc/emit-rtl.c
+9
-8
No files found.
gcc/emit-rtl.c
View file @
2d4f57f8
/* Emit RTL for the GNU C-Compiler expander.
Copyright (C) 1987, 1988, 1992 Free Software Foundation, Inc.
Copyright (C) 1987, 1988, 1992
, 1993
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -995,15 +995,16 @@ operand_subword (op, i, validate_address, mode)
Convert to proper endianness now since these cases need it.
At this point, i == 0 means the low-order word.
Note that it must be that BITS_PER_WORD <= HOST_BITS_PER_INT.
This is because if it were greater, it could only have been two
times greater since we do not support making wider constants. In
that case, it MODE would have already been the proper size and
it would have been handled above. This means we do not have to
worry about the case where we would be returning a CONST_DOUBLE. */
We do not want to handle the case when BITS_PER_WORD <= HOST_BITS_PER_INT
in general. However, if OP is (const_int 0), we can just return
it for any word. */
if
(
op
==
const0_rtx
)
return
op
;
if
(
GET_MODE_CLASS
(
mode
)
!=
MODE_INT
||
(
GET_CODE
(
op
)
!=
CONST_INT
&&
GET_CODE
(
op
)
!=
CONST_DOUBLE
))
||
(
GET_CODE
(
op
)
!=
CONST_INT
&&
GET_CODE
(
op
)
!=
CONST_DOUBLE
)
||
BITS_PER_WORD
>
HOST_BITS_PER_INT
)
return
0
;
if
(
WORDS_BIG_ENDIAN
)
...
...
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