From patchwork Thu Oct 6 09:29:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Tomsich X-Patchwork-Id: 1768 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp219534wrs; Thu, 6 Oct 2022 02:32:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4gZmKpk5S7KJ6SN4zH5SHJbQxXcyPHLQR8aIq5/5n1Tve/CrptOv/MtGooCj8ahnWeE2oA X-Received: by 2002:a50:ed86:0:b0:458:e1da:af2 with SMTP id h6-20020a50ed86000000b00458e1da0af2mr3624229edr.364.1665048761987; Thu, 06 Oct 2022 02:32:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665048761; cv=none; d=google.com; s=arc-20160816; b=SRFyWizLAsE+Ls3vLaZiA4CUO1WdwOC3E1ajtOOm1LOx6wv4JZ/TP/6jcxa2lWuzGh uyvmc46LlJFVAI55mD+V2r2jcpWPgNT4djg1ioj6ayzaqExVuJgLPnq2Ji6CYs7Di7yo WLjyw4a+yY6MIjqDMzSBOmtjASrA6LymxElsv8Sh0TnhBPk2FzcwK14LIbI9P57Kjzzx xYntSkq2IxOTO96x1rgSfVKzJb5iDR+IgygVuPKJoCD5nbuwTsM8RehsQhAWEhZgU+Et Tb8p+S4dN5oVKJv470P82l4LSMkZU+K6Z2dGmwk6VIbH2Qe3TmEhZw7MmoEogcTSPHxE Yrgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :dmarc-filter:delivered-to; bh=OVW7vD8+sJ0OU9dNVYHWrf3VLXfRpnyAb8VJPQ4WACI=; b=uzyTrwNgZI4bgKkEjNmO4we0FaAsyt6yMTVpNjsxLtmTgRK9MoJYDjeV9wDgZsl5Rr GVZzqI4jcEqhDP2VaWDiOElaoKnVm7g+xdfSC7gioNxmZErjahK+JA1DVIGrTHSiFQ2g 5mbTmBOYfvgHr6TbzRwiyr/YJSn+Q7dewt8i5hFhDHDIDdX0t2jLbSq+rwYhgeYGPsSL T5yFM+kLMBMUYjtTJOQssTfg0pie7ZzN/F5QN9usRMSHvwqg1ekkBkGKxMGSsOCouq4P qEOVXrVCICgULxBs3PP9XA2X/wgLTvhvH5RebJNxQKID0dKVRW3e2/wPl5pxQxdLxF7N C03Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@vrull.eu header.s=google header.b=fVf++VE3; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id cw7-20020a170906478700b00783b75ec299si17540278ejc.530.2022.10.06.02.32.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 02:32:41 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=fail header.i=@vrull.eu header.s=google header.b=fVf++VE3; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 89EA3389839E for ; Thu, 6 Oct 2022 09:31:23 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by sourceware.org (Postfix) with ESMTPS id 1D694384D15C for ; Thu, 6 Oct 2022 09:29:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 1D694384D15C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vrull.eu Received: by mail-wm1-x336.google.com with SMTP id ay36so664080wmb.0 for ; Thu, 06 Oct 2022 02:29:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date; bh=OVW7vD8+sJ0OU9dNVYHWrf3VLXfRpnyAb8VJPQ4WACI=; b=fVf++VE3v0cLYEQb1EyxzBTJ4pfSFZXqA04V4OgV0EJpipoesZPHoeLCeSKhmgeTqn 4k/Y90JjK51eGNnVWZ7gRAyN9cCoPPXHzOqfUK8rdzxDEFXFIcHQw7Oj2ox7wAd1Q+Lb V7JLn5EiVy/CGis6c+dDI2U5OayUl/h5mlfoX9MUD2pEe97RG7FKSTDDZ6KE0M5xoC8g ukcPmzUPb6xFuf8HeQvrBLr+kR+UMLNt2eD1A6q5wBhDkzyH1fPDnS3rslS6m2AN5cjL 4+6QiUZTRkm2hixugsLXR7YrRuZfqhMeL9rqPRFtCuS95A436ma2T4tTkklM6goGsi1X t7cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date; bh=OVW7vD8+sJ0OU9dNVYHWrf3VLXfRpnyAb8VJPQ4WACI=; b=tequ7Cj8LzE2EghMjZR6lo+DkSR80KlNY3GOU54qRiMo2RukgrCEQ0hRjHRPPptvdg 8ZJqOLmub83dX/OihrmKSqTLfjjBQyDOjONPxkI9rgLRMz4VG9lbGcHwLOJT+5vRvLnO Mvo1ReV1ff5PtoRH+aFFd6qPsiwVHUcDR4DVkSZLX+lSbhtE6aWsRTwfKcGSS04UEPif Ba8jS0qCfI/aNhucFw0kV6h3oxuKbR0okS8OEjLA5Lb/VZbzYeMjlpMbKAibE1dVSZEy SIrYp/OhM+I8H9ISYwW4NUSp9zMysF5I8wiwlnT4B6yIkzad4Q3pa9y9/6ZYEcRr+pvF 95pg== X-Gm-Message-State: ACrzQf2BXLncblKJwBlQH1ZglPs35cuelagt+bHwQja+X5gQJ8PjDTDm wUsQCgFcZaWzQaLBQTwIhhbRaCLAGKAxzDY+ X-Received: by 2002:a05:600c:1547:b0:3b4:c56b:a3a6 with SMTP id f7-20020a05600c154700b003b4c56ba3a6mr2481914wmg.29.1665048595645; Thu, 06 Oct 2022 02:29:55 -0700 (PDT) Received: from ubuntu-focal.. ([2a01:4f9:3a:1e26::2]) by smtp.gmail.com with ESMTPSA id c5-20020a056000104500b0022a3a887ceasm4105739wrx.49.2022.10.06.02.29.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 02:29:55 -0700 (PDT) From: Philipp Tomsich To: gcc-patches@gcc.gnu.org Subject: [PATCH v2] aarch64: update Ampere-1 core definition Date: Thu, 6 Oct 2022 11:29:51 +0200 Message-Id: <20221006092951.607412-1-philipp.tomsich@vrull.eu> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Sandiford , Philipp Tomsich Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1745703171693948611?= X-GMAIL-MSGID: =?utf-8?q?1745930170913113139?= This brings the extensions detected by -mcpu=native on Ampere-1 systems in sync with the defaults generated for -mcpu=ampere1. Note that some early kernel versions on Ampere1 may misreport the presence of PAUTH and PREDRES (i.e., -mcpu=native will add 'nopauth' and 'nopredres'). gcc/ChangeLog: * config/aarch64/aarch64-cores.def (AARCH64_CORE): Update Ampere-1 core entry. Signed-off-by: Philipp Tomsich --- Ok for backport? Changes in v2: - Removed explicit RCPC, as the feature is now implicitly included in the 8.3 feature definition. gcc/config/aarch64/aarch64-cores.def | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/aarch64/aarch64-cores.def b/gcc/config/aarch64/aarch64-cores.def index b50628d6b51..e9a4b622be0 100644 --- a/gcc/config/aarch64/aarch64-cores.def +++ b/gcc/config/aarch64/aarch64-cores.def @@ -69,7 +69,7 @@ AARCH64_CORE("thunderxt81", thunderxt81, thunderx, V8A, (CRC, CRYPTO), thu AARCH64_CORE("thunderxt83", thunderxt83, thunderx, V8A, (CRC, CRYPTO), thunderx, 0x43, 0x0a3, -1) /* Ampere Computing ('\xC0') cores. */ -AARCH64_CORE("ampere1", ampere1, cortexa57, V8_6A, (), ampere1, 0xC0, 0xac3, -1) +AARCH64_CORE("ampere1", ampere1, cortexa57, V8_6A, (F16, RNG, AES, SHA3), ampere1, 0xC0, 0xac3, -1) /* Do not swap around "emag" and "xgene1", this order is required to handle variant correctly. */ AARCH64_CORE("emag", emag, xgene1, V8A, (CRC, CRYPTO), emag, 0x50, 0x000, 3)