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.