public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mathieu Malaterre <mathieu.malaterre@gmail.com>
To: gcc-help <gcc-help@gcc.gnu.org>
Subject: intrinsics and sign-conversion
Date: Fri, 17 Mar 2023 10:22:21 +0100	[thread overview]
Message-ID: <CA+7wUszo4Xm17JKkW7BQiNrEnEczvNrLx02NpMjD2X5=rx6Ymg@mail.gmail.com> (raw)

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

Thanks,
-- 
Mathieu

             reply	other threads:[~2023-03-17  9:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-17  9:22 Mathieu Malaterre [this message]
2023-03-17 11:32 ` Jonathan Wakely
2023-03-17 11:48   ` Mathieu Malaterre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+7wUszo4Xm17JKkW7BQiNrEnEczvNrLx02NpMjD2X5=rx6Ymg@mail.gmail.com' \
    --to=mathieu.malaterre@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).