From patchwork Tue Jun 14 23:24:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 635641 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 3rTm225ZLpz9t0t for ; Wed, 15 Jun 2016 09:24:25 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=y4JdposD; 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:from :content-type:content-transfer-encoding:subject:date:cc:to :mime-version:message-id; q=dns; s=default; b=V+mqGi+k3p+bMW6c+5 vECbSEkekMQMaD0Qkp0wDdcVJS2OStP1Cr3yWfFVuDCWWflGvIaS1wG7Ob8FKhBd htqZGyU+s0YHdK21o1vA07JKEPdQWdTpqmeSybCFjH9HSOjWW5so7Lei5baNjrsL P1MtxNseZEQWFxLJt49OdoWPQ= 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:from :content-type:content-transfer-encoding:subject:date:cc:to :mime-version:message-id; s=default; bh=+X59hiHcnxy5uDaA5D/zqk42 f54=; b=y4JdposDtfZJnC8CmBBm3VGr7zauJrApfJv+dJdyfVgQza6ZiKLBEZXP dr5214LRFCsbQEGWGwYgtYKnl+XZGmF/vTm4peAo9GWlBW/oa79YXaYDWj/UbRe7 3utrxymSFrKZw49ftRZLBCWGMaaB1zzKukWjibVSc4XXZsikZgg= Received: (qmail 70686 invoked by alias); 14 Jun 2016 23:24:19 -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 70673 invoked by uid 89); 14 Jun 2016 23:24:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=Hx-languages-length:2872 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 (AES256-SHA encrypted) ESMTPS; Tue, 14 Jun 2016 23:24:17 +0000 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u5ENIVOF058671 for ; Tue, 14 Jun 2016 19:24:15 -0400 Received: from e38.co.us.ibm.com (e38.co.us.ibm.com [32.97.110.159]) by mx0b-001b2d01.pphosted.com with ESMTP id 23jswabuff-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 14 Jun 2016 19:24:15 -0400 Received: from localhost by e38.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 14 Jun 2016 17:24:14 -0600 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e38.co.us.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 14 Jun 2016 17:24:12 -0600 X-IBM-Helo: d03dlp03.boulder.ibm.com X-IBM-MailFrom: wschmidt@linux.vnet.ibm.com X-IBM-RcptTo: gcc-patches@gcc.gnu.org; dje.gcc@gmail.com; segher@kernel.crashing.org Received: from b01cxnp23034.gho.pok.ibm.com (b01cxnp23034.gho.pok.ibm.com [9.57.198.29]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id B136719D8041; Tue, 14 Jun 2016 17:23:51 -0600 (MDT) Received: from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com [9.57.199.107]) by b01cxnp23034.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u5ENODG950921658; Tue, 14 Jun 2016 23:24:13 GMT Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D5DA212403D; Tue, 14 Jun 2016 19:24:11 -0400 (EDT) Received: from [9.80.210.137] (unknown [9.80.210.137]) by b01ledav002.gho.pok.ibm.com (Postfix) with ESMTPS id 909F8124037; Tue, 14 Jun 2016 19:24:11 -0400 (EDT) From: Bill Schmidt Subject: [PATCH, rs6000] Clean up rs6000-builtin.def Date: Tue, 14 Jun 2016 18:24:10 -0500 Cc: Segher Boessenkool , David Edelsohn To: GCC Patches Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16061423-0028-0000-0000-000004F42D96 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16061423-0029-0000-0000-00002CA9747A Message-Id: <8E9A7A5D-CB77-460A-8B9D-298C015F2F94@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-06-14_10:, , 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-1604210000 definitions=main-1606140254 X-IsSubscribed: yes Hi, I discovered some duplicate #define's in config/rs6000/rs6000-builtin.def. This patch removes those, and corrects a commentary typo that I noticed while I was in there. Bootstrapped and tested on powerpc64le-unknown-linux-gnu with no regressions. Preapproved, committed. Thanks, Bill 2016-06-14 Bill Schmidt * config/rs6000/rs6000-builtin.def (commentary): Typo. (BU_P9_MISC_1): Likewise. (BU_P9_64BIT_MISC_0): Likewise. (BU_P9_MISC_0): Likewise. Index: gcc/config/rs6000/rs6000-builtin.def =================================================================== --- gcc/config/rs6000/rs6000-builtin.def (revision 237453) +++ gcc/config/rs6000/rs6000-builtin.def (working copy) @@ -42,7 +42,7 @@ NAME String literal for the name MASK Mask of bits that indicate which options enables the builtin ATTR builtin attribute information. - ICODE Insn code of the function that implents the builtin. */ + ICODE Insn code of the function that implements the builtin. */ #ifndef RS6000_BUILTIN_0 #error "RS6000_BUILTIN_0 is not defined." @@ -642,41 +642,6 @@ | RS6000_BTC_TERNARY), \ CODE_FOR_ ## ICODE) /* ICODE */ -/* Miscellaneous builtins for instructions added in ISA 3.0. These - instructions don't require either the DFP or VSX options, just the basic - ISA 3.0 enablement since they operate on general purpose registers. */ -#define BU_P9_MISC_1(ENUM, NAME, ATTR, ICODE) \ - RS6000_BUILTIN_1 (MISC_BUILTIN_ ## ENUM, /* ENUM */ \ - "__builtin_" NAME, /* NAME */ \ - RS6000_BTM_MODULO, /* MASK */ \ - (RS6000_BTC_ ## ATTR /* ATTR */ \ - | RS6000_BTC_UNARY), \ - CODE_FOR_ ## ICODE) /* ICODE */ - -/* Miscellaneous builtins for instructions added in ISA 3.0. These - instructions don't require either the DFP or VSX options, just the basic - ISA 3.0 enablement since they operate on general purpose registers, - and they require 64-bit addressing. */ -#define BU_P9_64BIT_MISC_0(ENUM, NAME, ATTR, ICODE) \ - RS6000_BUILTIN_0 (MISC_BUILTIN_ ## ENUM, /* ENUM */ \ - "__builtin_" NAME, /* NAME */ \ - RS6000_BTM_MODULO \ - | RS6000_BTM_64BIT, /* MASK */ \ - (RS6000_BTC_ ## ATTR /* ATTR */ \ - | RS6000_BTC_SPECIAL), \ - CODE_FOR_ ## ICODE) /* ICODE */ - -/* Miscellaneous builtins for instructions added in ISA 3.0. These - instructions don't require either the DFP or VSX options, just the basic - ISA 3.0 enablement since they operate on general purpose registers. */ -#define BU_P9_MISC_0(ENUM, NAME, ATTR, ICODE) \ - RS6000_BUILTIN_0 (MISC_BUILTIN_ ## ENUM, /* ENUM */ \ - "__builtin_" NAME, /* NAME */ \ - RS6000_BTM_MODULO, /* MASK */ \ - (RS6000_BTC_ ## ATTR /* ATTR */ \ - | RS6000_BTC_SPECIAL), \ - CODE_FOR_ ## ICODE) /* ICODE */ - /* 128-bit long double floating point builtins. */ #define BU_LDBL128_2(ENUM, NAME, ATTR, ICODE) \ RS6000_BUILTIN_2 (MISC_BUILTIN_ ## ENUM, /* ENUM */ \