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
1f134bd6
Commit
1f134bd6
authored
13 years ago
by
H.J. Lu
Committed by
H.J. Lu
13 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly handle pointer addition/subtraction in num_sign_bit_copies1.
From-SVN: r175383
parent
89f92025
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
gcc/ChangeLog
+2
-1
gcc/rtlanal.c
+0
-15
No files found.
gcc/ChangeLog
View file @
1f134bd6
...
...
@@ -2,7 +2,8 @@
PR rtl-optimization/49504
* rtlanal.c (nonzero_bits1): Properly handle addition or
subtraction a pointer in Pmode if pointers extend unsigned.
subtraction of a pointer in Pmode if pointers extend unsigned.
(num_sign_bit_copies1): Likewise.
2011-06-24 Martin Jambor <mjambor@suse.cz>
...
...
This diff is collapsed.
Click to expand it.
gcc/rtlanal.c
View file @
1f134bd6
...
...
@@ -4605,21 +4605,6 @@ num_sign_bit_copies1 (const_rtx x, enum machine_mode mode, const_rtx known_x,
known_x
,
known_mode
,
known_ret
);
result
=
MAX
(
1
,
MIN
(
num0
,
num1
)
-
1
);
#ifdef POINTERS_EXTEND_UNSIGNED
/* If pointers extend signed and this is an addition or subtraction
to a pointer in Pmode, all the bits above ptr_mode are known to be
sign bit copies. */
/* As we do not know which address space the pointer is refering to,
we can do this only if the target does not support different pointer
or address modes depending on the address space. */
if
(
target_default_pointer_address_modes_p
()
&&
!
POINTERS_EXTEND_UNSIGNED
&&
GET_MODE
(
x
)
==
Pmode
&&
(
code
==
PLUS
||
code
==
MINUS
)
&&
REG_P
(
XEXP
(
x
,
0
))
&&
REG_POINTER
(
XEXP
(
x
,
0
)))
result
=
MAX
((
int
)
(
GET_MODE_BITSIZE
(
Pmode
)
-
GET_MODE_BITSIZE
(
ptr_mode
)
+
1
),
result
);
#endif
return
result
;
case
MULT
:
...
...
This diff is collapsed.
Click to expand it.
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