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
60725c78
Commit
60725c78
authored
Jun 29, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(convert_memory_address, case PLUS): Fix error in last change.
From-SVN: r12378
parent
100338df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gcc/explow.c
+5
-3
No files found.
gcc/explow.c
View file @
60725c78
/* Subroutines for manipulating rtx's in semantically interesting ways.
Copyright (C) 1987, 1991, 1994, 1995 Free Software Foundation, Inc.
Copyright (C) 1987, 1991, 1994, 1995
, 1996
Free Software Foundation, Inc.
This file is part of GNU CC.
...
...
@@ -331,10 +331,12 @@ convert_memory_address (to_mode, x)
case
MULT
:
/* For addition the second operand is a small constant, we can safely
permute the converstion and addition operation. We can always safely
permute them if we are making the address narrower. */
permute them if we are making the address narrower. In addition,
always permute the operations if this is a constant. */
if
(
GET_MODE_SIZE
(
to_mode
)
<
GET_MODE_SIZE
(
from_mode
)
||
(
GET_CODE
(
x
)
==
PLUS
&&
GET_CODE
(
XEXP
(
x
,
1
))
==
CONST_INT
&&
INTVAL
(
x
)
+
20000
<
40000
))
&&
(
INTVAL
(
XEXP
(
x
,
1
))
+
20000
<
40000
||
CONSTANT_P
(
XEXP
(
x
,
0
)))))
return
gen_rtx
(
GET_CODE
(
x
),
to_mode
,
convert_memory_address
(
to_mode
,
XEXP
(
x
,
0
)),
convert_memory_address
(
to_mode
,
XEXP
(
x
,
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