PowerPC Code generation (probably altivec related)
Daniel Egger
degger@fhm.edu
Sun Mar 17 06:29:00 GMT 2002
Am Son, 2002-03-17 um 04.28 schrieb Aldy Hernandez:
> the code generated is correct. r4 and r3 both contain 0, so it's
> fair to use either one as a base register.
It is correct in this case though unnecessary. Why load a value
twice?
> the assembly looks correct. what is the problem?
My problem is that in a bigger application second used value
is incorrect and thus the application loads wrong data which
it processes and thus writes incorrect data back to the correct
place.
I merely tried to point out a potential problem and suboptimal
generated code. Fixing the latter will automatically fix the
problem, at least I believe so. For now I can fix it by sprinkling
casts and/or statifying the variables which will be less
efficient though.
--
Servus,
Daniel
More information about the Gcc
mailing list