Message ID | 20231026185734.56102-1-iain@sandoe.co.uk |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp99182vqb; Thu, 26 Oct 2023 11:58:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEdxHqRRQR0wmPcfWekSORDwVl/IzqymAdaNLBQos9X9RlF01F7jz0qE09EZFA9EXXPwAoj X-Received: by 2002:a05:620a:2442:b0:778:a940:70cb with SMTP id h2-20020a05620a244200b00778a94070cbmr218808qkn.19.1698346681647; Thu, 26 Oct 2023 11:58:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698346681; cv=pass; d=google.com; s=arc-20160816; b=ILWK96WfTqzt9gbP7eshtTA5qy/2P5OsWPvpIPEIAVUDI/790rfGBxmR9lJ5NSQ4tI XZDujCfQwurVSO3jRKf9A/Ki5Ndv5vxCOv1vOmI1iGymUf0eWgw7vF5ktGAIXNSlBvYt YuhKQC3nXXcRbrTW7I31YxDBLE9lRKdPStzcEY3uCHAYyGDmt/wuROyPq9gceEWavfzC Pxiqxz5I1KusTvm2b8thzzoTw/mBQu3MNIIJrwpyzvvq8sgysZ8bmSDRr89nHqPN3tLL p5aUKcOVt174R2kDh3UP0P1tPx6W+qobTfDrNAp+OoxLKuyOGMEsTOXcZhn3iwL13aPO xaDQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:reply-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=yKIE26anLN7hTSkqQ+JycUou+l/cOwsxq8p52XnIwpI=; fh=B058kuIemY9jTFn+fyVjo2rs7zVVRS/qgH481EZMj9A=; b=VYoB0s4WrspQ5PXsSUDDpixzzH0Ghr5NhVVMphyiyfXsowfGZg9g8LG86OqGzNGzix hOy30cDEeEelpBUOHWgHGuC9W/8zaNR37QOFLBV+m3zlwIo4eYik13YefSSrA7FsbriK k6ReljPPw2M5UBh/8eM9UmckbXhhTlVATrPeI14oF6rbhPT6Uj8HoeqWbLIKRcUxXqJl 3HYlzXxF77fRN6KlUFOhpeNz0Zh6FctsjrB9AhhY4x99guNNhkBrUEzFvtHpOU9CIYC5 98uhKptPOgrxjyq7F8imXEtRG13g9Q4DD+Vqn6ZNxyDkmo0X3dr9V3NA29nfB7uTmLOF HPrw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=iXL0BO1a; arc=pass (i=1); 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"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id e24-20020a37ac18000000b00767d57590f5si10052485qkm.455.2023.10.26.11.58.01 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 11:58:01 -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=pass header.i=@gmail.com header.s=20230601 header.b=iXL0BO1a; arc=pass (i=1); 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"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6BBCA385B52A for <ouuuleilei@gmail.com>; Thu, 26 Oct 2023 18:58:01 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id EFDE63858C41 for <gcc-patches@gcc.gnu.org>; Thu, 26 Oct 2023 18:57:36 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EFDE63858C41 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EFDE63858C41 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::42d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698346659; cv=none; b=ek9MZhfM2OBtsWKtLgmLfVRK6LzTI28icz5pg/kPTMzR2LyaVin3zrHiZUgniXxqnwMK4QIfVJnQrX6tkfDy7NAvkPKddmI5XB8kXjlzYmCEtgUXwlBFRDoMIpOJmgGOxvJMAcdfOf+otorNUrKcHa9TSXyPEOnOFEH1cx5eu8A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698346659; c=relaxed/simple; bh=Sd5K7SM1MO0TgGO5mnidVX7J4MH8xXa9OoO9v1BmQJ4=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=foh1LB+kArBwE+nqtwQ2JprQzjDQiAfH480T/1vFfpri8Dubg9l+vuMGiCfZ6M/CICHZFrGEgSkEBJlqI0Ns5IUmxvXSzF5uXGB1cLkPFwkaZiKiusb5ojCw97h5vIkKkNUPP8VjTsWiHNjCVmH5bBkZypmQtCEQADt8m/gJw6U= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-32db188e254so854668f8f.0 for <gcc-patches@gcc.gnu.org>; Thu, 26 Oct 2023 11:57:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698346655; x=1698951455; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=yKIE26anLN7hTSkqQ+JycUou+l/cOwsxq8p52XnIwpI=; b=iXL0BO1aQoG9CtdsbYU6I5WAKg7taxWg+Ifctxl4F1/6KU5ffltDPyNLT8czj8DR/P JrYev+sW7W+YLS1rppF425idslRZvEUxMCn4AOGEfC2fPEkwOUutLzkUcLnLNVgQBJWc BBF4cTicFlGtYv4xyKxEyJHUHsem5BQsv75LXF+uD1ArGjvb4dqG9soCu6KN5rMvAbQ1 cegK0Mjh6I7HnJwHWWcVTgRjPRKgNLEYFcEL/i7QD/PJzHL2rs+tu51AAo/kyR692GMZ fioHYxDOA3JCZ9RGE4fgUXxRzUHs7xFyGIKOgzvRXBuzdaIKF2dQfDuMvSjZhtSqYG0L zJNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698346655; x=1698951455; h=content-transfer-encoding:mime-version:reply-to:message-id:date :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=yKIE26anLN7hTSkqQ+JycUou+l/cOwsxq8p52XnIwpI=; b=UcxNpppkdvq6Jcrl4h6kHAhGaSlIq5mWvVLQKY0b5TJ3ooLkodBWqP4hc4u3XO1vX8 T4M1lrPatvodiRE61V9FbeFL7sTeg2x+tkibo/I94N3l3Cm1hOEsAW842ZQMQoEspTeu bGIJ8uPMFPOfY8jHqwOUWPT+7qFs48lWGM1IitLdCRqg+kHlSIkAPy7lfzh21ASEiMOm pZER+RaktkGVyusz+dn7i9f7a8XpuPuHGtcozBH4egVaMrisq7bY9F2XfF/7JjCOFa6T g3TsrmyMj+PguWv4bVfyvZAPgjzvhktayXne8p8RLCPPNS0lkg89taiZCLQfDuQg2At1 JY8Q== X-Gm-Message-State: AOJu0YzFFh+yBDTK9tS9dNfEmJYzA83oPKAQftWMdk4Thx/DgwNncYdO mxcp1yQRXcxijL//TSTnZgD0e48j1ww= X-Received: by 2002:adf:f0c9:0:b0:32d:a3c5:ea7b with SMTP id x9-20020adff0c9000000b0032da3c5ea7bmr385977wro.44.1698346655373; Thu, 26 Oct 2023 11:57:35 -0700 (PDT) Received: from localhost.localdomain (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.gmail.com with ESMTPSA id k23-20020a5d5257000000b0032db8cccd3asm41338wrc.114.2023.10.26.11.57.34 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 26 Oct 2023 11:57:35 -0700 (PDT) From: Iain Sandoe <iains.gcc@gmail.com> X-Google-Original-From: Iain Sandoe <iain@sandoe.co.uk> To: gcc-patches@gcc.gnu.org Cc: richard.sandiford@arm.com Subject: [PATCH] testsuite, aarch64: Normalise options to aarch64.exp. Date: Thu, 26 Oct 2023 19:57:34 +0100 Message-Id: <20231026185734.56102-1-iain@sandoe.co.uk> X-Mailer: git-send-email 2.39.2 (Apple Git-143) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_SHORT, 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.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Reply-To: iain@sandoe.co.uk Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780845569953220572 X-GMAIL-MSGID: 1780845569953220572 |
Series |
testsuite, aarch64: Normalise options to aarch64.exp.
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Iain Sandoe
Oct. 26, 2023, 6:57 p.m. UTC
tested on cfarm185 (aarch64-linux-gnu, xgene1) and with the aarch64
Darwin prototype. It is possible that some initial fallout could occur
on some test setups (where the default has been catered for in some
way) - but that should stabilize. OK for trunk?
thanks
Iain
--- 8< ---
When the compiler is configured --with-cpu= and that is different from
the baselines assumed, we see excess test fails (primarly in body code
scans which are necessarily sensitive to costs). To stabilize the
testsuite against such changes, use aarch64-with-arch-dg-options ()
to provide suitable consistent defaults.
e.g. for --with-cpu=xgene1 we see over 100 excess fails which are
removed by this change.
gcc/testsuite/ChangeLog:
* gcc.target/aarch64/aarch64.exp: Use aarch64-with-arch-dg-options
to normaize the options to the tests in aarch64.exp.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
---
gcc/testsuite/gcc.target/aarch64/aarch64.exp | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
Comments
On Thu, Oct 26, 2023 at 11:58 AM Iain Sandoe <iains.gcc@gmail.com> wrote: > > tested on cfarm185 (aarch64-linux-gnu, xgene1) and with the aarch64 > Darwin prototype. It is possible that some initial fallout could occur > on some test setups (where the default has been catered for in some > way) - but that should stabilize. OK for trunk? This fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93619 I think. Thanks, Andrew > thanks > Iain > > --- 8< --- > > When the compiler is configured --with-cpu= and that is different from > the baselines assumed, we see excess test fails (primarly in body code > scans which are necessarily sensitive to costs). To stabilize the > testsuite against such changes, use aarch64-with-arch-dg-options () > to provide suitable consistent defaults. > > e.g. for --with-cpu=xgene1 we see over 100 excess fails which are > removed by this change. > > gcc/testsuite/ChangeLog: > > * gcc.target/aarch64/aarch64.exp: Use aarch64-with-arch-dg-options > to normaize the options to the tests in aarch64.exp. > > Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> > --- > gcc/testsuite/gcc.target/aarch64/aarch64.exp | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/gcc/testsuite/gcc.target/aarch64/aarch64.exp b/gcc/testsuite/gcc.target/aarch64/aarch64.exp > index bd306e3b288..7612ea704e5 100644 > --- a/gcc/testsuite/gcc.target/aarch64/aarch64.exp > +++ b/gcc/testsuite/gcc.target/aarch64/aarch64.exp > @@ -37,9 +37,10 @@ if ![info exists DEFAULT_CFLAGS] then { > # Initialize `dg'. > dg-init > > -# Main loop. > -dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cCS\]]] \ > - "" $DEFAULT_CFLAGS > - > +aarch64-with-arch-dg-options "" { > + # Main loop. > + dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cCS\]]] \ > + "" $DEFAULT_CFLAGS > +} > # All done. > dg-finish > -- > 2.39.2 (Apple Git-143) >
Iain Sandoe <iains.gcc@gmail.com> writes: > tested on cfarm185 (aarch64-linux-gnu, xgene1) and with the aarch64 > Darwin prototype. It is possible that some initial fallout could occur > on some test setups (where the default has been catered for in some > way) - but that should stabilize. OK for trunk? > thanks > Iain > > --- 8< --- > > When the compiler is configured --with-cpu= and that is different from > the baselines assumed, we see excess test fails (primarly in body code > scans which are necessarily sensitive to costs). To stabilize the > testsuite against such changes, use aarch64-with-arch-dg-options () > to provide suitable consistent defaults. > > e.g. for --with-cpu=xgene1 we see over 100 excess fails which are > removed by this change. > > gcc/testsuite/ChangeLog: > > * gcc.target/aarch64/aarch64.exp: Use aarch64-with-arch-dg-options > to normaize the options to the tests in aarch64.exp. OK, thanks. I also tried it on two local set-ups and it passed on both. Richard > > Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> > --- > gcc/testsuite/gcc.target/aarch64/aarch64.exp | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/gcc/testsuite/gcc.target/aarch64/aarch64.exp b/gcc/testsuite/gcc.target/aarch64/aarch64.exp > index bd306e3b288..7612ea704e5 100644 > --- a/gcc/testsuite/gcc.target/aarch64/aarch64.exp > +++ b/gcc/testsuite/gcc.target/aarch64/aarch64.exp > @@ -37,9 +37,10 @@ if ![info exists DEFAULT_CFLAGS] then { > # Initialize `dg'. > dg-init > > -# Main loop. > -dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cCS\]]] \ > - "" $DEFAULT_CFLAGS > - > +aarch64-with-arch-dg-options "" { > + # Main loop. > + dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cCS\]]] \ > + "" $DEFAULT_CFLAGS > +} > # All done. > dg-finish
Hi Andrew, > On 26 Oct 2023, at 20:00, Andrew Pinski <pinskia@gmail.com> wrote: > > On Thu, Oct 26, 2023 at 11:58 AM Iain Sandoe <iains.gcc@gmail.com> wrote: >> >> tested on cfarm185 (aarch64-linux-gnu, xgene1) and with the aarch64 >> Darwin prototype. It is possible that some initial fallout could occur >> on some test setups (where the default has been catered for in some >> way) - but that should stabilize. OK for trunk? > > This fixes https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93619 I think. Actually, it does not - the aarch64-with-arch-dg-options () function explicitly excludes overriding mcpu/march/tune options provided by the test-case so that you still see: Excess errors: cc1: warning: switch '-mcpu=octeontx' conflicts with '-march=armv8.4-a’ switch Iain
diff --git a/gcc/testsuite/gcc.target/aarch64/aarch64.exp b/gcc/testsuite/gcc.target/aarch64/aarch64.exp index bd306e3b288..7612ea704e5 100644 --- a/gcc/testsuite/gcc.target/aarch64/aarch64.exp +++ b/gcc/testsuite/gcc.target/aarch64/aarch64.exp @@ -37,9 +37,10 @@ if ![info exists DEFAULT_CFLAGS] then { # Initialize `dg'. dg-init -# Main loop. -dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cCS\]]] \ - "" $DEFAULT_CFLAGS - +aarch64-with-arch-dg-options "" { + # Main loop. + dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cCS\]]] \ + "" $DEFAULT_CFLAGS +} # All done. dg-finish