This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Add {u,}mulvhi4 patterns on i?86 (PR target/66112)
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 12 May 2015 21:59:28 +0200
- Subject: Re: [PATCH] Add {u,}mulvhi4 patterns on i?86 (PR target/66112)
- Authentication-results: sourceware.org; auth=none
- References: <20150512184327 dot GB1751 at tucnak dot redhat dot com>
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.