Re: intrinsics and sign-conversion

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

 



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.



[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