[PATCH, i386]: Introduce signbit<mode>2 expander

Uros Bizjak ubizjak@gmail.com
Wed May 22 09:13:00 GMT 2019


On Wed, May 22, 2019 at 11:04 AM Rainer Orth
<ro@cebitec.uni-bielefeld.de> wrote:
>
> Hi Uros,
>
> > Based on the recent work that enabled vectorization of
> > __builtin_signbit on aarch64.
> >
> > 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
> >
> >     * config/i386/sse.md (VF1_AVX2): New mode iterator.
> >     (signbit<mode>2): New expander
> >
> > testsuite/ChangeLog:
> >
> > 2019-05-21  Uroš Bizjak  <ubizjak@gmail.com>
> >
> >     * gcc.target/i386/vect-signbitf.c: New test.
> >
> > Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.
>
> the new testcase FAILs on i386-pc-solaris2.11 (both with the default
> -m32 and -m64), but also on i586-unknown-freebsd11.2, i686-pc-linux-gnu:
>
> +FAIL: gcc.target/i386/vect-signbitf.c scan-assembler-not -2147483648

It works for me on x86_64-linux-gnu with -32, so I'm at loss on what
might be wrong.

Uros.



More information about the Gcc-patches mailing list