From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25932 invoked by alias); 10 Apr 2017 16:40:49 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 25036 invoked by uid 89); 10 Apr 2017 16:40:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=mall, intending, dodgy, htm 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; Mon, 10 Apr 2017 16:40:47 +0000 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v3AGdpos037120 for ; Mon, 10 Apr 2017 12:40:47 -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 29rcsxjwut-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 10 Apr 2017 12:40:47 -0400 Received: from localhost by e38.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 10 Apr 2017 10:40:46 -0600 Received: from b03cxnp08027.gho.boulder.ibm.com (9.17.130.19) by e38.co.us.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 10 Apr 2017 10:40:44 -0600 Received: from b03ledav006.gho.boulder.ibm.com (b03ledav006.gho.boulder.ibm.com [9.17.130.237]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v3AGef6o7799170; Mon, 10 Apr 2017 09:40:43 -0700 Received: from b03ledav006.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7FB43C604A; Mon, 10 Apr 2017 10:40:43 -0600 (MDT) Received: from otta.rchland.ibm.com (unknown [9.10.86.70]) by b03ledav006.gho.boulder.ibm.com (Postfix) with ESMTP id 50A44C6057; Mon, 10 Apr 2017 10:40:43 -0600 (MDT) Subject: Re: Remove E6500 insns from PPC_OPCODE_ALTIVEC2 To: Alan Modra Cc: binutils@sourceware.org References: <20170407095345.GU16711@bubble.grove.modra.org> <9d148375-51cf-65bd-7a9f-2f6ab3f5f806@vnet.ibm.com> <20170408010756.GY16711@bubble.grove.modra.org> From: Peter Bergner Date: Mon, 10 Apr 2017 16:40:00 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.0 MIME-Version: 1.0 In-Reply-To: <20170408010756.GY16711@bubble.grove.modra.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 17041016-0028-0000-0000-000007615577 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006912; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000208; SDB=6.00845627; UDB=6.00417020; IPR=6.00624061; BA=6.00005281; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014993; XFM=3.00000013; UTC=2017-04-10 16:40:45 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17041016-0029-0000-0000-000034FCC1BE Message-Id: <56bd3181-3748-7b60-4d05-cf734d88ba4b@vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-04-10_12:,, 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-1702020001 definitions=main-1704100132 X-IsSubscribed: yes X-SW-Source: 2017-04/txt/msg00102.txt.bz2 On 4/7/17 8:07 PM, Alan Modra wrote: > On another subject, I'd like your opinion on removing -[mM]htm options > from gas and the disassembler. I think now that it was a mistake to > add them in the first place (and every other use of .sticky except for > -mall and -mraw). I would have liked to remove -[mM]vsx too, but > "gcc -mvsx" passes on -mvsx to gas, and has done so for quite some > time. So -mvsx looks impossible to remove without breaking gcc. > "gcc -mhtm" on the other hand, passes -mpower8 to gas, and it's been > that way since -mhtm was added to gcc. I was going to say you cannot remove it, because we use gcc's -mhtm option to build LIBITM, but if we're passing -mpower8 to the assembler when using gcc's -mhtm option, then I guess it's ok if there are no users outside of binutils that use the -mhtm gas option (kernel?). I'm sure I was going to have gcc pass -mhtm to gas instead of -mpower8, but since I didn't , I guess this is ok. I agree, we're stuck keeping -mvsx. > Also, I'm intending to remove some of PPC_OPCODE_*, for instance > PPC_OPCODE_ALTIVEC2 can disappear and we then use > > #define PPCVEC2 (PPC_OPCODE_POWER8 | PPC_OPCODE_E6500) > #define PPCVEC3 PPC_OPCODE_POWER9 > > in opcodes/ppc-opc.c which should improve gas opcode checks vs. cpu. > Dodgy gcc output would then be found at compile time rather than run > time Looking at how PPCVEC2 and PPCVEC3 are used, yeah, that should work. I also like that we can reclaim some bits in the cpu mask, since there are only a limited amount of them. Can we also get rid of PPC_OPCODE_HTM and use...? #define PPCHTM PPC_OPCODE_POWER8 > (assuming -many is removed from powerpc gcc, another little > project of mine). I never liked gcc always passing -many to the assembler, so if you can remove it, I'm all for it! Peter