This is the mail archive of the gcc@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]

Re: powerpc & unaligned block moves with fp registers


>>>>> Richard Kenner writes:

> I guess I did not explain this clearly enough.  The DImode objects
> do not need to be naturally aligned.  Following the definition of
> STRICT_ALIGNMENT to 0, these instructions will work, just work more
> slowly.

Richard> You can't have it both ways!  Either they are too slow, in which case
Richard> STRICT_ALIGNMENT should be set or they are *not* too slow, in which
Richard> case there is no problem.

	Some architectures have gradual degradation while STRICT_ALIGNMENT
assumes a step function.  This is why we use SLOW_UNALIGNED_ACCESS with
MODE and ALIGN parameters.

	GCC is using STRICT_ALIGNMENT to compute a heuristic which should
be based upon SLOW_UNALIGNED_ACCESS.  The dichotomy of STRICT_ALIGNMENT
does not have the flexibility to describe all architectures.

David


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