From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 388B73858D38; Thu, 16 Mar 2023 08:14:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 388B73858D38 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678954441; bh=OBQPK2dWispePcZ1lLyb/vXPYgtIMVuzhlbfjg6wAIk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Qk05NLmAu9nuNb6YITTqdkhHZ7Ij1xi/VG79ergxThf0c8hGDifV1riLywhSXx9Bi nMFLr2J+rfPjThmlx5ORgCkMbOp/MPSuKmJfPMuELM98LILHl0tSRz3bf4nzt6dgzt zzEO+fK4v3/9d+xOFg99etR+S5PxDhmuOwzn1pPA= From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/109082] emmintrin.h:1624:16: error: argument 3 must be a literal between 0 and 15, inclusive Date: Thu, 16 Mar 2023 08:14:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: rejects-valid, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: linkw at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: linkw at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc assigned_to bug_status everconfirmed cf_reconfirmed_on Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109082 Kewen Lin changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |linkw at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |linkw at gcc dot gn= u.org Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 Last reconfirmed| |2023-03-16 --- Comment #4 from Kewen Lin --- Confirmed, as PVIPR for: r =3D vec_sld (a, b, c) c must be in the range 0=E2=80=9315. I noticed that for: __m128i test_r(__m128i vec ) { return _mm_bsrli_si128 ( vec, -1); } icc would optimize it to vzero while gcc would emit error msg. IMHO we should guard the N with __N < 16 && __N >=3D 0 and return vzeros fo= r the others.=