From patchwork Fri Feb 5 02:33:28 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pat Haugen X-Patchwork-Id: 579345 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 3CF11140327 for ; Fri, 5 Feb 2016 13:33:47 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=bRQJ/+fe; 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 :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=irNQyXqVO0ju217l+b7FYZDAAyZ3BikmMHsFdMayjMJRZC4eQj X4oYI33Rr7Nu/vPKq5SAw69MV+qiIaX45NCOwo96peHb9kAoOEwPXAjWl6SbjGhY CS1DGzEZOfn01trHESdJctPidMBUxZnIFPDmdxJuvbAg5cMOsxIevm5W4= 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:message-id:date:mime-version:content-type; s= default; bh=MTEEnSyfiPMmhoAYXPEWxsVRt6k=; b=bRQJ/+feHhsKMaIMy9KO Efs5GmOKandUqMd8rFE2d9RLjEARhFYG0UVDP/YY5/Sd3u2UsPjN2qEH7OkEK8nO mCvdRlrd87C4Ma7n7TPS+A2sAb6fBcbUmiCKU9IEG1iQmAYAqebqSyvcUcDIIbIU LE+mbOAOjq670zUcfyte5eI= Received: (qmail 128982 invoked by alias); 5 Feb 2016 02:33:38 -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 128970 invoked by uid 89); 5 Feb 2016 02:33:36 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=BAYES_00, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=rz, *mov, UD:crypto.md, Hx-languages-length:2030 X-HELO: e35.co.us.ibm.com Received: from e35.co.us.ibm.com (HELO e35.co.us.ibm.com) (32.97.110.153) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Fri, 05 Feb 2016 02:33:35 +0000 Received: from localhost by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 4 Feb 2016 19:33:33 -0700 Received: from d03dlp02.boulder.ibm.com (9.17.202.178) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 4 Feb 2016 19:33:31 -0700 X-IBM-Helo: d03dlp02.boulder.ibm.com X-IBM-MailFrom: pthaugen@linux.vnet.ibm.com X-IBM-RcptTo: gcc-patches@gcc.gnu.org Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id 7A4AD3E4003E for ; Thu, 4 Feb 2016 19:33:30 -0700 (MST) Received: from d03av05.boulder.ibm.com (d03av05.boulder.ibm.com [9.17.195.85]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u152XU1n27787470 for ; Thu, 4 Feb 2016 19:33:30 -0700 Received: from d03av05.boulder.ibm.com (localhost [127.0.0.1]) by d03av05.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u152XU6N028405 for ; Thu, 4 Feb 2016 19:33:30 -0700 Received: from oc1687012634.ibm.com (sig-9-77-135-146.ibm.com [9.77.135.146]) by d03av05.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id u152XSo4028348; Thu, 4 Feb 2016 19:33:29 -0700 To: GCC Patches , David Edelsohn From: Pat Haugen Subject: [PATCH, rs6000] Fix type attribute for a few insns Message-ID: <56B409F8.6080600@linux.vnet.ibm.com> Date: Thu, 4 Feb 2016 20:33:28 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16020502-0013-0000-0000-00001C8DF7EF X-IsSubscribed: yes The following patch fixes a few insns that were specifying an incorrect 'type' attribute. Bootstrap/regtest on powerpc64-linux with no new regressions. Ok for trunk? -Pat 2016-02-04 Pat Haugen * config/rs6000/crypto.md (crypto_vpermxor_): Correct insn type. * config/rs6000/rs6000.md (mov_hardfloat): Likewise. (*ieee128_mfvsrd_64bit): Likewise. (*ieee128_mfvsrd_32bit): Likewise. Index: config/rs6000/crypto.md =================================================================== --- config/rs6000/crypto.md (revision 232743) +++ config/rs6000/crypto.md (working copy) @@ -87,7 +87,7 @@ (define_insn "crypto_vpermxor_" UNSPEC_VPERMXOR))] "TARGET_P8_VECTOR" "vpermxor %0,%1,%2,%3" - [(set_attr "type" "crypto")]) + [(set_attr "type" "vecperm")]) ;; 1 operand crypto instruction (define_insn "crypto_vsbox" Index: config/rs6000/rs6000.md =================================================================== --- config/rs6000/rs6000.md (revision 232743) +++ config/rs6000/rs6000.md (working copy) @@ -6521,7 +6522,7 @@ (define_insn "mov_hardfloat" mt%0 %1 mf%1 %0 nop" - [(set_attr "type" "*,load,store,fp,fp,vecsimple,integer,fpload,fpload,fpstore,fpstore,fpload,fpstore,mftgpr,mffgpr,mtjmpr,mfjmpr,*") + [(set_attr "type" "*,load,store,fp,fp,vecsimple,integer,fpload,fpload,fpstore,fpstore,fpload,fpstore,mffgpr,mftgpr,mtjmpr,mfjmpr,*") (set_attr "length" "4")]) (define_insn "*mov_softfloat" @@ -13520,7 +13521,7 @@ (define_insn "*ieee128_mfvsrd_64bit" mfvsrd %0,%x1 stxsdx %x1,%y0 xxlor %x0,%x1,%x1" - [(set_attr "type" "mftgpr,vecsimple,fpstore")]) + [(set_attr "type" "mftgpr,fpstore,vecsimple")]) (define_insn "*ieee128_mfvsrd_32bit" @@ -13531,7 +13532,7 @@ (define_insn "*ieee128_mfvsrd_32bit" "@ stxsdx %x1,%y0 xxlor %x0,%x1,%x1" - [(set_attr "type" "vecsimple,fpstore")]) + [(set_attr "type" "fpstore,vecsimple")]) (define_insn "*ieee128_mfvsrwz" [(set (match_operand:SI 0 "reg_or_indexed_operand" "=r,Z")