From patchwork Fri Dec 11 19:54:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 555898 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 6C11E1402C0 for ; Sat, 12 Dec 2015 06:54:59 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=Rmo3OtoY; 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 :mime-version:date:message-id:subject:from:to:content-type; q= dns; s=default; b=H0qQeh2AstvcMqC0k3AgDJVCHS/6GHAclVb37yrkvS8Txr bHdXHy/rb/rKNnoKDdB7lXRHWHrHkDNTA295w01LChjH9WVOF6/AdN+PkzIn63e8 xTfgbH+wTY5/DKTTnU/HvEkHKYr5BVOdwWvt849HZCaBXOfx+74ywVm9Zyhfo= 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:content-type; s= default; bh=7/CmQ6kc0MYV/y1+N8SNMTVFio8=; b=Rmo3OtoYbGOh9tbf5N3P WNPwEfPznz+rf64wFeMkHVuPQmGHGpaUjvBEqTpMYgKvThjJ+1g6OjYmWvvqR6a5 G4kLwfuM3E6AzIQxLwipCKK7+IzKzFOwGeAW+RBhNtUC9j+c/Onqb/jEsuHVv2LV orpcachQ7rrCfz5Nqi4QXL8= Received: (qmail 12532 invoked by alias); 11 Dec 2015 19:54:51 -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 12515 invoked by uid 89); 11 Dec 2015 19:54:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.8 required=5.0 tests=AWL, BAYES_00, EXCEL_ATTACHED, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-lf0-f42.google.com Received: from mail-lf0-f42.google.com (HELO mail-lf0-f42.google.com) (209.85.215.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 11 Dec 2015 19:54:49 +0000 Received: by lfed137 with SMTP id d137so34934808lfe.3 for ; Fri, 11 Dec 2015 11:54:45 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.25.19.69 with SMTP id j66mr8513240lfi.25.1449863685563; Fri, 11 Dec 2015 11:54:45 -0800 (PST) Received: by 10.25.159.78 with HTTP; Fri, 11 Dec 2015 11:54:45 -0800 (PST) Date: Fri, 11 Dec 2015 11:54:45 -0800 Message-ID: Subject: [PATCH/AARCH64] Fix -mcpu/arch=native support for LSE From: Andrew Pinski To: GCC Patches X-IsSubscribed: yes Hi, The Linux kernel calls lse as atomics in /proc/cpuinfo. We should change aarch64-option-extensions.def to take that into account. OK? Bootstrapped and tested on aarch64-linux-gnu with no regressions and tested with -mcpu=native on ThunderX T88 pass 2 with Linux 4.4 to see if lse gets enabled. Thanks, Andrew Pinski ChangeLog: * config/aarch64/aarch64-option-extensions.def (LSE): Change FEAT_STRING to "atomics". Index: aarch64-option-extensions.def =================================================================== --- aarch64-option-extensions.def (revision 231572) +++ aarch64-option-extensions.def (working copy) @@ -40,4 +40,4 @@ AARCH64_OPT_EXTENSION ("simd", AARCH64_F AARCH64_FL_SIMD | AARCH64_FL_CRYPTO, "asimd") AARCH64_OPT_EXTENSION("crypto", AARCH64_FL_CRYPTO | AARCH64_FL_FPSIMD, AARCH64_FL_CRYPTO, "aes pmull sha1 sha2") AARCH64_OPT_EXTENSION("crc", AARCH64_FL_CRC, AARCH64_FL_CRC, "crc32") -AARCH64_OPT_EXTENSION("lse", AARCH64_FL_LSE, AARCH64_FL_LSE, "lse") +AARCH64_OPT_EXTENSION("lse", AARCH64_FL_LSE, AARCH64_FL_LSE, "atomics")