From patchwork Wed Jan 18 22:40:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 716873 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3v3hkW4sbGz9t1C for ; Thu, 19 Jan 2017 09:40:18 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="IPrj0SiY"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to:cc :from:subject:date:mime-version:content-type :content-transfer-encoding:message-id; q=dns; s=default; b=P6OTA VJ9oKVGpLxjvHRx9ux6mEKYf+6FDl9Y9BlXlhbXAeRPxXfo5G+I2GmmjgqLYs3AE +h8T6B3XbA/QulN3YlfAMuRm9Ne+LSTb8XjJ+90LoLiBZ7M5xkZckp/HWB3Oe86b xFwimGtEJpzQyJn0gvbWXk0fSZO/93C5zEIvwg= 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:cc :from:subject:date:mime-version:content-type :content-transfer-encoding:message-id; s=default; bh=wRXQTK4Ee8n 9MZo2nZybqKO/B8U=; b=IPrj0SiY0N1pEPRQruv2m2WshanHOh8tigsg9wCqsa3 xjnnQ5QwDcdZ+widCwrE2kNOeatln58K0pJPxSu6VMrzGyLGkzkZqTAeSwr5ijdL s0JE1BQBbNzQVp1aXN9gqTDuDRMB63kyhsLlHDZW9rq5wTl5NskEoei7g+DdzTLA = Received: (qmail 29792 invoked by alias); 18 Jan 2017 22:40:09 -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 29775 invoked by uid 89); 18 Jan 2017 22:40:08 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=preferably, 36807, Hx-languages-length:1234, v2di 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; Wed, 18 Jan 2017 22:39:58 +0000 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v0IMdMqM007777 for ; Wed, 18 Jan 2017 17:39:57 -0500 Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.151]) by mx0b-001b2d01.pphosted.com with ESMTP id 282f5jvp8s-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 18 Jan 2017 17:39:56 -0500 Received: from localhost by e33.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 18 Jan 2017 15:39:56 -0700 Received: from d03dlp02.boulder.ibm.com (9.17.202.178) by e33.co.us.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 18 Jan 2017 15:39:54 -0700 Received: from b03cxnp08026.gho.boulder.ibm.com (b03cxnp08026.gho.boulder.ibm.com [9.17.130.18]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id 8C1F73E40030; Wed, 18 Jan 2017 15:39:53 -0700 (MST) Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v0IMdrQU10158534; Wed, 18 Jan 2017 15:39:53 -0700 Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6B52C6A03D; Wed, 18 Jan 2017 15:39:53 -0700 (MST) Received: from bigmac.rchland.ibm.com (unknown [9.10.86.122]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP id 397816A03B; Wed, 18 Jan 2017 15:39:53 -0700 (MST) To: GCC Patches Cc: Segher Boessenkool , David Edelsohn From: Bill Schmidt Subject: [PATCH, rs6000, committed] Fix "type" attribute for vbpermq instruction Date: Wed, 18 Jan 2017 16:40:51 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17011822-0008-0000-0000-000006F47BE3 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006458; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000199; SDB=6.00809515; UDB=6.00394371; IPR=6.00586873; BA=6.00005072; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00013969; XFM=3.00000011; UTC=2017-01-18 22:39:55 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17011822-0009-0000-0000-00003F1C712F Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-01-18_13:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1701180275 X-IsSubscribed: yes Hi, Pat Haugen pointed out that the vbpermq instruction should preferably have its "type" attribute set to vecperm, rather than vecsimple. This patch makes that change. Bootstrapped and tested on powerpc64le-unknown-linux-gnu with no regressions, committed as obvious. Thanks, Bill 2017-01-18 Bill Schmidt * config/rs6000/altivec.md (altivec_vbpermq): Change "type" attribute from vecsimple to vecperm. (altivec_vbpermq2): Likewise. Index: gcc/config/rs6000/altivec.md =================================================================== --- gcc/config/rs6000/altivec.md (revision 244585) +++ gcc/config/rs6000/altivec.md (working copy) @@ -3680,7 +3680,7 @@ UNSPEC_VBPERMQ))] "TARGET_P8_VECTOR" "vbpermq %0,%1,%2" - [(set_attr "type" "vecsimple")]) + [(set_attr "type" "vecperm")]) ; One of the vector API interfaces requires returning vector unsigned char. (define_insn "altivec_vbpermq2" @@ -3690,7 +3690,7 @@ UNSPEC_VBPERMQ))] "TARGET_P8_VECTOR" "vbpermq %0,%1,%2" - [(set_attr "type" "vecsimple")]) + [(set_attr "type" "vecperm")]) (define_insn "altivec_vbpermd" [(set (match_operand:V2DI 0 "register_operand" "=v")