This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/34529] [4.1/4.2/4.3 Regression] Wrong code with altivec stores and offsets
- From: "uweigand at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2008 18:54:55 -0000
- Subject: [Bug target/34529] [4.1/4.2/4.3 Regression] Wrong code with altivec stores and offsets
- References: <bug-34529-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from uweigand at gcc dot gnu dot org 2008-01-21 18:54 -------
The secondary reload hook does not need to make the decision whether or
not indexed addresses are allowed; that decision has already been taken.
The purpose of the secondary reload hook is simply to do whatever it takes
to load an indexed address into a base register (after reload has already
decided that this address needs to be loaded).
Reload does not allocate scratch registers always since it assumes that
targets provide a "load address" instruction that it able to perform
this operation without scratch register. You need the secondary reload
to let common code know that this doesn't work on your target.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34529