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


>>>>> DJ Delorie writes:

>> If not that, then your patch to rs6000_emit_move() needs to use
>> SLOW_UNALIGNED_ACCESS macro instead of hardcoding the alignment for this
>> one particular move.

DJ> I like that idea, but there still needs to be a way to configure
DJ> SLOW_UNALIGNED_ACCESS depending on the cpu/os you have.

	The strict requirements are an OS issue, not a CPU issue.  For
that, simply create config/rs6000/myos.h containing

#undef  SLOW_UNALIGNED_ACCESS
#define SLOW_UNALIGNED_ACCESS(MODE, ALIGN)                      \
   ((STRICT_ALIGNMENT                                           \
     || (((MODE) == SFmode && (ALIGN) < 32))			\
     || (((MODE) == DFmode || (MODE) == DImode)			\
         && (ALIGN) < 64)) ? 1 : 0)


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