From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 63226 invoked by alias); 20 Feb 2019 17:16:22 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 63199 invoked by uid 89); 20 Feb 2019 17:16:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=sk:pinskia, U*pinskia, H*r:7042, HTo:U*pinskia X-HELO: mail-ot1-f50.google.com Received: from mail-ot1-f50.google.com (HELO mail-ot1-f50.google.com) (209.85.210.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 20 Feb 2019 17:16:20 +0000 Received: by mail-ot1-f50.google.com with SMTP id z19so41483706otm.2 for ; Wed, 20 Feb 2019 09:16:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JP1/Ziv1KZIwNi+r+OJGm02TaE2TAGBJQLwrd+gXcaU=; b=vXi8vIIAao80OPrsGwtRaHQtGHbzkAQAnsrMqvnt2bUCWqmw0YiBoFMT1zySQAIG93 EMlslDnOpGyLBetwLjOijjuz2X+/1XVMKPulSXcSTzxPzavcOPwoYXCTerkyE4h3wc7P G9j+TsV+BKYwr958L8+6qxNAD06lfVJHUQK/sTBVmW83gzF/3jFBNY+NSJHGYSKjo6mx vB8LeSxEsHj2wJH54Sy78B7BYcrCim0x5yXo6Sdg+bE36GXeJW5TAqB+1fkrg/qkuO5O 98kJws6nkYlbtFSSP/PrH0wllwiVQM0Ipq0p2vp/+s8C1KnOAEVtJoDdckNbzbEG74o6 SeTg== MIME-Version: 1.0 Received: by 2002:ac9:7042:0:0:0:0:0 with HTTP; Wed, 20 Feb 2019 09:16:17 -0800 (PST) In-Reply-To: References: From: Warren D Smith Date: Wed, 20 Feb 2019 17:16:00 -0000 Message-ID: Subject: Re: Idea: extend gcc to save C from the hell of intel vector instructions To: Andrew Pinski Cc: GCC Mailing List Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-02/txt/msg00108.txt.bz2 On 2/18/19, Andrew Pinski wrote: > GCC already has most of this support. See > https://gcc.gnu.org/onlinedocs/gcc-8.2.0/gcc/Vector-Extensions.html#Vector-Extensions > > The dot in the typenames are not going to supported though. > > Thanks, > Andrew --what #include files and/or compiler flags are needed to enable this stuff? (Be nice if that doc page said.) My gcc allows me to use, e.g. c = _mm_shuffle_epi8(a, b); (and my code worked!) provided I have done #include #include but if I try to replace that with the nicer (since more portable) c = __builtin_shuffle(a, b); then error: use of unknown builtin '__builtin_shuffle' [-Wimplicit-function-declaration] -- Warren D. Smith http://RangeVoting.org <-- add your endorsement (by clicking "endorse" as 1st step)