From patchwork Mon Jan 27 09:15:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uros Bizjak X-Patchwork-Id: 314332 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 75B002C0096 for ; Mon, 27 Jan 2014 20:15:20 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :mime-version:date:message-id:subject:from:to:cc:content-type; q=dns; s=default; b=vOnerNjgWDSIUyrm9G2sFCu06JayR9YbU0GfanSmxpJ WYi/o+D9/zy5dI92BMEzaftwfIh6zGAk+PRXK2PwIQEI5fnEyyWvL9VpWLiCoNUB zAwI/3pkb7a0WhFAm9eIum4vIgdUDSSVT/MY7XvR45ABpbLuC6gAQX3b65I1Ua8A = 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 :mime-version:date:message-id:subject:from:to:cc:content-type; s=default; bh=qhCadkjKhQTWhaN06jw4DDDO7wc=; b=AYkdyGdAlTbeaQRxP Y38MBbVyM5w+zricBHt7F4jM3Nl/FImLhQxcOlu6gOwuBJjz0uL8EBgsf4u7CsGU iEO94XbyfpiI5EYelK8/I5B2wiq0HnMoT5FQZhX+tH4edr5kAlbIONKOLYEsPbMs NflRqWq1lmV5yxB6T2alv7IARI= Received: (qmail 9870 invoked by alias); 27 Jan 2014 09:15: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 9859 invoked by uid 89); 27 Jan 2014 09:15:11 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-oa0-f43.google.com Received: from mail-oa0-f43.google.com (HELO mail-oa0-f43.google.com) (209.85.219.43) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 27 Jan 2014 09:15:10 +0000 Received: by mail-oa0-f43.google.com with SMTP id h16so6436313oag.30 for ; Mon, 27 Jan 2014 01:15:09 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.60.228.135 with SMTP id si7mr20018815oec.4.1390814108916; Mon, 27 Jan 2014 01:15:08 -0800 (PST) Received: by 10.182.137.136 with HTTP; Mon, 27 Jan 2014 01:15:08 -0800 (PST) Date: Mon, 27 Jan 2014 10:15:08 +0100 Message-ID: Subject: Re: [Patch, i386] Separate Intel processor with expanded ISA From: Uros Bizjak To: "gcc-patches@gcc.gnu.org" Cc: Allan Sandfeld Jensen Hello! +2013-12-29 Allan Sandfeld Jensen Missing space in ChangeLog entry. + * config/i386/i386.c (get_builtin_code_for_version): Separate + Westmere from Nehalem, Ivy Bridge from Sandy Bridge and + Broadwell from Haswell. --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -31298,18 +31298,27 @@ get_builtin_code_for_version (tree decl, tree *predicate_list) priority = P_PROC_SSSE3; break; case PROCESSOR_NEHALEM: - /* We translate "arch=corei7" and "arch=nehelam" to - "corei7" so that it will be mapped to M_INTEL_COREI7 - as cpu type to cover all M_INTEL_COREI7_XXXs. */ - arg_str = "corei7"; + if (new_target->x_ix86_isa_flags & OPTION_MASK_ISA_AES) + arg_str = "westmere"; + else + /* We translate "arch=corei7" and "arch=nehelam" to Trivial typo above: "arch=nehalem". OK for mainline with these changes. Thanks, Uros.