This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/34529] [4.1/4.2/4.3 Regression] Wrong code with altivec stores and offsets



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]