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
cceb347c
Commit
cceb347c
authored
Apr 07, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(simplify_unary_operation): #ifdef POINTERS_EXTEND_UNSIGNED, handle
sign- or zero-extending addresses. From-SVN: r9333
parent
3091ecc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
gcc/cse.c
+16
-0
No files found.
gcc/cse.c
View file @
cceb347c
...
...
@@ -3308,7 +3308,23 @@ simplify_unary_operation (code, mode, op, op_mode)
&&
GET_CODE
(
XEXP
(
XEXP
(
op
,
0
),
0
))
==
LABEL_REF
&&
GET_CODE
(
XEXP
(
XEXP
(
op
,
0
),
1
))
==
LABEL_REF
)
return
XEXP
(
op
,
0
);
#ifdef POINTERS_EXTEND_UNSIGNED
if
(
!
POINTERS_EXTEND_UNSIGNED
&&
mode
==
Pmode
&&
GET_MODE
(
op
)
==
ptr_mode
&&
CONSTANT_P
(
op
))
return
convert_memory_address
(
Pmode
,
op
);
#endif
break
;
#ifdef POINTERS_EXTEND_UNSIGNED
case
ZERO_EXTEND
:
if
(
POINTERS_EXTEND_UNSIGNED
&&
mode
==
Pmode
&&
GET_MODE
(
op
)
==
ptr_mode
&&
CONSTANT_P
(
op
))
return
convert_memory_address
(
Pmode
,
op
);
break
;
#endif
}
return
0
;
...
...
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