From patchwork Fri Dec 7 16:53:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul A. Clarke" X-Patchwork-Id: 1009561 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-491914-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=us.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="W7vb1jDE"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 43BJSj2pyNz9s0t for ; Sat, 8 Dec 2018 03:53:25 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:date:mime-version:message-id:content-type :content-transfer-encoding; q=dns; s=default; b=rOPm6FkgWPAgZDwR 7iya1ZgMyqGyRRGVVhFQ+ZvwmmURJXFA9ak0tk4XdKgTGnz+JO8JbCBjmfTXC+SH N11rtBisyrLhgxr7Htbu4YL7iPwj4v2Io9fuTGrkTmftaSgsle9ym9CR1wJPsr8L WHWXJJJgmYlsKQMBySbemoBx5Ag= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:date:mime-version:message-id:content-type :content-transfer-encoding; s=default; bh=drDu4D6zRfFKYZjk2vZlqV GT3Ac=; b=W7vb1jDE4ZSrdBKYP/anbTXA4ewSevkkAIILFDFTGSz3LuEOZsZZ+k HNvlHjx/AXH0EV3WbZ2TLq2o7Op8NCGkImQqKtGAzC1zY7gVEaUGYhdmS6s74dco kfkKltPF6nNB4iVKVtb2xNU+9nndTek/zZzRaOc8Eq157wESETqxU= Received: (qmail 85932 invoked by alias); 7 Dec 2018 16:53:18 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 85917 invoked by uid 89); 7 Dec 2018 16:53:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-12.6 required=5.0 tests=BAYES_00, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=HContent-Transfer-Encoding:8bit X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Dec 2018 16:53:16 +0000 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id wB7Gim4m052597 for ; Fri, 7 Dec 2018 11:53:15 -0500 Received: from e32.co.us.ibm.com (e32.co.us.ibm.com [32.97.110.150]) by mx0b-001b2d01.pphosted.com with ESMTP id 2p7vh48tdk-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Fri, 07 Dec 2018 11:53:14 -0500 Received: from localhost by e32.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 7 Dec 2018 16:53:14 -0000 Received: from b03cxnp08028.gho.boulder.ibm.com (9.17.130.20) by e32.co.us.ibm.com (192.168.1.132) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 7 Dec 2018 16:53:12 -0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id wB7GrBd824313960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 7 Dec 2018 16:53:11 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 83907BE056; Fri, 7 Dec 2018 16:53:11 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DE1A8BE051; Fri, 7 Dec 2018 16:53:10 +0000 (GMT) Received: from oc3272150783.ibm.com (unknown [9.85.193.94]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTPS; Fri, 7 Dec 2018 16:53:10 +0000 (GMT) To: gcc-patches@gcc.gnu.org, Segher Boessenkool From: Paul Clarke Subject: [PATCH, committed][PR88408][rs6000] mmintrin.h: fix use of "vector" Date: Fri, 7 Dec 2018 10:53:08 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 x-cbid: 18120716-0004-0000-0000-000014BED659 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010188; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000270; SDB=6.01128367; UDB=6.00586165; IPR=6.00908498; MB=3.00024572; MTD=3.00000008; XFM=3.00000015; UTC=2018-12-07 16:53:13 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18120716-0005-0000-0000-000089C5D4C7 Message-Id: <467fae07-f388-3a11-92cb-bdb0e9c193b2@us.ibm.com> A recent patch inadvertently added the use of "vector" to mmintrin.h when all such uses should be "__vector". Committed as obvious/trivial. [gcc] 2018-12-07 Paul A. Clarke PR target/88408 * config/rs6000/mmintrin.h (_mm_packs_pu16): Correctly use "__vector". Index: gcc/config/rs6000/mmintrin.h =================================================================== --- gcc/config/rs6000/mmintrin.h (revision 266871) +++ gcc/config/rs6000/mmintrin.h (working copy) @@ -228,9 +228,9 @@ _mm_packs_pu16 (__m64 __m1, __m64 __m2) #endif const __vector signed short __zero = { 0 }; __vector __bool short __select = vec_cmplt (vm1, __zero); - r = vec_packs ((vector unsigned short) vm1, (vector unsigned short) vm1); + r = vec_packs ((__vector unsigned short) vm1, (__vector unsigned short) vm1); __vector __bool char packsel = vec_pack (__select, __select); - r = vec_sel (r, (const vector unsigned char) __zero, packsel); + r = vec_sel (r, (const __vector unsigned char) __zero, packsel); return (__m64) ((__vector long long) r)[0]; }