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]
Other format: [Raw text]

Re: [PATCH] Add {u,}mulvhi4 patterns on i?86 (PR target/66112)


On Tue, May 12, 2015 at 8:43 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> Hi!
>
> This patch improves expansion of __builtin_mul_overflow for HImode, both
> signed and unsigned, on x86_64/i686.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2015-05-12  Jakub Jelinek  <jakub@redhat.com>
>
>         PR target/66112
>         * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
>         Use SWI248 iterator instead of SWI.
>         (*mulv<mode>4_1): Use SWI48 instead of SWI.  Simplify output template.
>         Use eq_attr "alternative" "0" instead of match_test in
>         length_immediate attribute computation.
>         (*mulvhi4, *mulvhi4_1): New define_insns.
>
>         * gcc.target/i386/pr66112-2.c: New test.

OK for mainline.

Thanks,
Uros.


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