RFA: MN10300: Fix splitting AND insns

Nick Clifton nickc@redhat.com
Fri Sep 9 12:42:00 GMT 2011


Hi Jeff,

> This is fine,

Thanks - committed.

> after adding a function comment for mn10300_split_and_operand_count;

I added this comment:

/* This function is used to help split:

      (set (reg) (and (reg) (int)))

    into:

      (set (reg) (shift (reg) (int))
      (set (reg) (shift (reg) (int))

    where the shitfs will be shorter than the "and" insn.

    It returns the number of bits that should be shifted.  A positive
    values means that the low bits are to be cleared (and hence the
    shifts should be right followed by left) whereas a negative value
    means that the high bits are to be cleared (left followed by right).
    Zero is returned when it would not be economical to split the AND.  */


Cheers
   Nick



More information about the Gcc-patches mailing list