[mips] Change the definition of macro SHIFT_COUNT_TRUNCATED

Mingjie Xing mingjie.xing@gmail.com
Thu Sep 2 09:24:00 GMT 2010


2010/9/2 Richard Sandiford <rdsandiford@googlemail.com>:
> It's far from ideal, but I suppose we have to go with it.
> Can you post the complete patch?

Sure. See the attachment.

gcc/ChangeLog

        * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
        * config/mips/mips.c (mips_shift_truncation_mask): Implement
          TARGET_SHIFT_TRUNCATION_MASK.

gcc/testsuite/ChangeLog

        * gcc.target/mips/loongson-shift-count-truncated-1.c: New.

Is it OK?

Thanks,
Mingjie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shift-count-truncated.patch
Type: text/x-diff
Size: 2947 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100902/f581a635/attachment.bin>


More information about the Gcc-patches mailing list