From patchwork Tue May 14 07:26:36 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gopalasubramanian, Ganesh" X-Patchwork-Id: 243617 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id CC7402C00A8 for ; Tue, 14 May 2013 17:27:19 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:references:in-reply-to :content-type:content-transfer-encoding:mime-version; q=dns; s= default; b=x9Maoy1PlT00Fav3rK+8KikLR2+r6RtZAfMpTIoDTDz9Zf4hICn/L sAOof4TepX00DMbgw52FIBKBTes04aRYDFiNq1bkIRpfodYYTMr+xa35iatcJAdi k10kBT3uLrw0mG7x3I3nU48ipmC2OggROyttJha7vNInRcQGCgWT80= 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 :to:cc:subject:date:message-id:references:in-reply-to :content-type:content-transfer-encoding:mime-version; s=default; bh=1GEYpE1MhEUSbb2JeebRpmwgzxE=; b=ThFIFD/7nW97eyQgngYT0ojlirF+ eyywn5o5d6XVQjKCmc4OBjN16UkGDcgpBy6DWJI2Slob28LHqkOeKPITLzbxgT4x xXDE97ToAW4gLEoTj0Ngmi99EuGThAhqQ71o2SxX2EC8bGaJZKrIGM2lPafShvwD x3rkBIViTJMGsDI= Received: (qmail 13711 invoked by alias); 14 May 2013 07:27:12 -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 13700 invoked by uid 89); 14 May 2013 07:27:12 -0000 X-Spam-SWARE-Status: No, score=-4.5 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_THREADED, RCVD_IN_DNSWL_NONE, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL, TW_BD, TW_ZJ autolearn=ham version=3.3.1 Received: from mail-db9lp0250.outbound.messaging.microsoft.com (HELO db9outboundpool.messaging.microsoft.com) (213.199.154.250) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 14 May 2013 07:26:45 +0000 Received: from mail105-db9-R.bigfish.com (10.174.16.250) by DB9EHSOBE025.bigfish.com (10.174.14.88) with Microsoft SMTP Server id 14.1.225.23; Tue, 14 May 2013 07:26:41 +0000 Received: from mail105-db9 (localhost [127.0.0.1]) by mail105-db9-R.bigfish.com (Postfix) with ESMTP id 7E40C200AF2; Tue, 14 May 2013 07:26:41 +0000 (UTC) X-Forefront-Antispam-Report: CIP:163.181.249.109; KIP:(null); UIP:(null); IPV:NLI; H:ausb3twp02.amd.com; RD:none; EFVD:NLI X-SpamScore: -3 X-BigFish: VPS-3(z37d5kz98dI9371I936eI542I1432I4015Izz1f42h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ah1fc6hz8dhz8275bh8275dhz2dh668h839h944hd25hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh15d0h162dh1631h1758h18e1h1946h19b5h1ad9h1b0ah1d0ch1d2eh1d3fh1155h) Received: from mail105-db9 (localhost.localdomain [127.0.0.1]) by mail105-db9 (MessageSwitch) id 1368516399186485_19973; Tue, 14 May 2013 07:26:39 +0000 (UTC) Received: from DB9EHSMHS016.bigfish.com (unknown [10.174.16.236]) by mail105-db9.bigfish.com (Postfix) with ESMTP id 209A1460044; Tue, 14 May 2013 07:26:39 +0000 (UTC) Received: from ausb3twp02.amd.com (163.181.249.109) by DB9EHSMHS016.bigfish.com (10.174.14.26) with Microsoft SMTP Server id 14.1.225.23; Tue, 14 May 2013 07:26:38 +0000 X-M-MSG: Received: from sausexedgep02.amd.com (sausexedgep02-ext.amd.com [163.181.249.73]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ausb3twp02.amd.com (Axway MailGate 3.8.1) with ESMTP id 2F1B9C8104; Tue, 14 May 2013 02:26:36 -0500 (CDT) Received: from SAUSEXDAG02.amd.com (163.181.55.2) by sausexedgep02.amd.com (163.181.36.59) with Microsoft SMTP Server (TLS) id 8.3.192.1; Tue, 14 May 2013 02:26:34 -0500 Received: from SAUSEXDAG06.amd.com ([fe80::cc99:d0a6:b4b:ef8b]) by sausexdag02.amd.com ([fe80::ed3c:9786:3083:dd99%21]) with mapi id 14.02.0328.009; Tue, 14 May 2013 02:26:37 -0500 From: "Gopalasubramanian, Ganesh" To: Uros Bizjak CC: "gcc-patches@gcc.gnu.org" Subject: RE: [PATCH,i386] FSGSBASE for AMD bdver3 Date: Tue, 14 May 2013 07:26:36 +0000 Message-ID: References: In-Reply-To: MIME-Version: 1.0 X-OriginatorOrg: amd.com Thanks Uros! I think you mean the amdfam10 ISA mismatch between march=native and march=amdfam10. The below patch fills the gap. "make -k check" passes. Regards Ganesh 2013-05-07 Ganesh Gopalasubramanian * config/i386/i386.c (processor_alias_table): Mismatch in ISAs Between march=native and march=amdfam10 is fixed. -----Original Message----- From: Uros Bizjak [mailto:ubizjak@gmail.com] Sent: Monday, May 13, 2013 5:50 PM To: Gopalasubramanian, Ganesh Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH,i386] FSGSBASE for AMD bdver3 On Mon, May 13, 2013 at 1:54 PM, Gopalasubramanian, Ganesh wrote: > The patch enables FSGSBASE instruction generation for AMD bdver3 architectures. > > "make -k check" passes. > > Is it OK for upstream? OK. Please also check for missing PTA_PRFCHW and PTA_FXSR for AMD processors in processor_alias_table. Thanks, Uros. --- ./wkcpy/gcc-4.9.0/gcc/config/i386/i386.c 2013-02-21 16:27:10.000000000 +0530 +++ ./source/gcc-4.9.0/gcc/config/i386/i386.c 2013-10-21 22:20:28.000000000 +0530 @@ -2964,7 +2964,8 @@ | PTA_SSE2 | PTA_NO_SAHF}, {"amdfam10", PROCESSOR_AMDFAM10, CPU_AMDFAM10, PTA_64BIT | PTA_MMX | PTA_3DNOW | PTA_3DNOW_A | PTA_SSE - | PTA_SSE2 | PTA_SSE3 | PTA_SSE4A | PTA_CX16 | PTA_ABM}, + | PTA_SSE2 | PTA_SSE3 | PTA_SSE4A | PTA_CX16 | PTA_ABM + | PTA_FXSR | PTA_PRFCHW}, {"barcelona", PROCESSOR_AMDFAM10, CPU_AMDFAM10, PTA_64BIT | PTA_MMX | PTA_3DNOW | PTA_3DNOW_A | PTA_SSE | PTA_SSE2 | PTA_SSE3 | PTA_SSE4A | PTA_CX16 | PTA_ABM},