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