From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6530 invoked by alias); 29 Oct 2014 17:48:45 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 6480 invoked by uid 48); 29 Oct 2014 17:48:39 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/63678] __mm256_blend_epi16 only accepts 8-bit masks (should accept 16-bit) Date: Wed, 29 Oct 2014 18:01:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-10/txt/msg02256.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63678 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |kyukhin at gcc dot gnu.org --- Comment #1 from Jakub Jelinek --- What means properly? The underlying instruction (256-bit VPBLENDW) certainly accepts only 8-bit mask, and e.g. https://software.intel.com/sites/products/documentation/doclib/iss/2013/compiler/cpp-lin/GUID-5369B2B5-B1E1-4D96-85AB-2019982667B4.htm says nothing what would the upper bits mean, it also says that the mask is 8-bit immediate. Perhaps icc just doesn't diagnose incorrect masks? Or do you see that for 16-bit masks _mm256_blend_epi16 would actually emit more than one insn (say separate blends with the low 8-bit mask, high 8-bit mask and then blend together)?