This is the mail archive of the gcc-patches@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: Measuring alignment


    Richard -- did you run the testsuite?  If so, for what target?

Alpha.  These are notoriously machine-specific.

    I believe both problems are due to a problem in move_pieces_ninsns:

  if (! SLOW_UNALIGNED_ACCESS (word_mode, align)
      || align > MOVE_MAX * BITS_PER_UNIT || align >= BIGGEST_ALIGNMENT)
    align = MOVE_MAX;
    
    At some point align needs to be scaled by BITS_PER_UNIT since the
    value passed in as well as MOVE_MAX is in bytes while later code
    assumes it is in bits.

No, align is now *always* supposed to be in *bits*.  MOVE_MAX is indeed
in bytes.

    Richard, can you please clean this up since it appears you broke this
    stuff?

I believe that code is now correct.

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