From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26718 invoked by alias); 29 Oct 2014 18:21:32 -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 26667 invoked by uid 48); 29 Oct 2014 18:21:28 -0000 From: "peter.bumbulis at ianywhere dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/63678] __mm256_blend_epi16 only accepts 8-bit masks (should accept 16-bit) Date: Wed, 29 Oct 2014 18:22: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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: peter.bumbulis at ianywhere dot com 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: 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/msg02260.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63678 --- Comment #2 from Peter Bumbulis --- The referenced web page is incorrect. Look in the instruction set reference manual (https://software.intel.com/sites/default/files/managed/c6/a9/319433-020.pdf, search for VPBLENDMW) or the intrinsics guide (https://software.intel.com/sites/landingpage/IntrinsicsGuide/). These instructions blend 16 bit quantities: you can fit 16 of these in a 256 bit register. For AVX512 it's a 32-bit constant.