This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/47383] [x32] Incorrect array access
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 20 Jan 2011 23:07:40 +0000
- Subject: [Bug target/47383] [x32] Incorrect array access
- Auto-submitted: auto-generated
- References: <bug-47383-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47383
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ubizjak at gmail dot com
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-20 23:07:32 UTC ---
For x32, ptr_mode is SImode and Pmode is DImode. When using
base + index addressing, base needs to zero-extend to Pmode
and index should be sign-extend to DImode. GCC zero extends
index to DImode.