[PATCH] Add {u,}mulvhi4 patterns on i?86 (PR target/66112)
Uros Bizjak
ubizjak@gmail.com
Tue May 12 20:03:00 GMT 2015
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.
More information about the Gcc-patches
mailing list