[PR25530] Convert (unsigned t / 2) * 2 into (unsigned t & ~1)

Hurugalawadi, Naveen Naveen.Hurugalawadi@caviumnetworks.com
Thu Jul 23 07:26:00 GMT 2015


>> Your previous patch correctly restricted this to unsigned types.

Thanks for your review and comments.

Please find attached the modified patch as per your comments.

Please let me know if this version is okay?

Thanks,
Naveen

2015-07-22  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>

gcc/testsuite/ChangeLog:
         PR middle-end/25530
         * gcc.dg/pr25530.c: New test.

 gcc/ChangeLog:
         PR middle-end/25530
         * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr25530.patch
Type: text/x-patch
Size: 1247 bytes
Desc: pr25530.patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150723/7c38ad1d/attachment.bin>


More information about the Gcc-patches mailing list