Re: intrinsics and sign-conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Mar 17, 2023 at 12:32 PM Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote:
>
> On Fri, 17 Mar 2023 at 09:23, Mathieu Malaterre via Gcc-help
> <gcc-help@xxxxxxxxxxx> wrote:
> >
> > Hi all,
> >
> > I am trying to understand why I cannot get gcc to trigger a
> > sign-conversion warning on the following:
> >
> > % cat tu.c
> > #include <immintrin.h>
> >
> > extern unsigned int bar();
> >
> > __m128i foo(__m128i a)
> > {
> >     return _mm_srai_epi64(a, bar());
> > }
> >
> > On Debian/sid:
> >
> > % gcc-12 -c  -mavx512vl -Wsign-conversion -Werror tu.c && echo "success"
> > success
>
> It warns with -O1.

Thanks ! I keep forgetting about this :(


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109173

-- 
Mathieu




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux