From patchwork Wed May 31 16:25:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 101534 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3004427vqr; Wed, 31 May 2023 09:27:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ435WweM0Zb6bCnUy2/6Fb2fb2hKcYo+TF78WRibhhhB3Vak5COPfIf7ZU3M+1BqaL9KnB8 X-Received: by 2002:a17:907:1c9f:b0:8b8:c06e:52d8 with SMTP id nb31-20020a1709071c9f00b008b8c06e52d8mr6648117ejc.36.1685550420312; Wed, 31 May 2023 09:27:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685550420; cv=none; d=google.com; s=arc-20160816; b=Nq2pyMtNXYyhYkUkFgRbNGCxaDdChpAogwILxgTvCaKAGXECQLJXf4Zho8edcLGrkQ XLLkfNrn7lM8XhBK4dKcJJAGetOt3TxBHksHDP3NuDhPrOYwCtRolRib4Fn/4dRUtqrP lw/wJ++Dc9QxS9wgai5uwKKXooYsAuiB8PN1GT3WSCkG2XuEC77mM5tT1tvv2DwGyhwX is5yOzDSIe8T/4XPS+OAUxkTVryBk4EgrkehX9RTWIFvwhaR09WPX5hY+69rU8lDN0Tr 7KHpFaeuv1BHiaH457vuXfBU8qMI0WrIErjaHMrX8o+eCjL1z0Fx/EZKW+5PxnHr6Mov 7XEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dmarc-filter:delivered-to; bh=ZhKjMevQO/wve3r9OhIhqIjNO5qPfkR3dR2fIs13tPI=; b=X9oNpcm9F+NFSmvNedfsXRjmXBC3iNy098MDiwP7YepS0R8jh1Zz9nFgQhLhDxENWN fDT9AY8z/M5rKJGcQRWrNUeMQzpk9wUkpYoMqkDM5YSbW4YYEdjwBQ8LFnZS0FhorqPK q/uLC1EBtjpzG1ercncaajqg9VNvYDe0/RY0u1yZKu0U4QdME2B0h60QMrD10KfKTyl1 7fK/NzjXw1LGTXYQyrczzkjr7Rm68QAJcWUv/CW/0hRxzkjVfARuFW8AFVl2WMloaJuv qUWtgY9DitvYgT0T8/rN63W0T3IAHjF0ZGyZzwUIz4RWG/7OJ33s3qZcsEp3/o89xoJg M6Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=Jev4Xiae; 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 h26-20020a1709062dda00b0096f68864fbasi11950315eji.637.2023.05.31.09.27.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 09:27:00 -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=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=Jev4Xiae; 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 8E189385703A for ; Wed, 31 May 2023 16:26:48 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by sourceware.org (Postfix) with ESMTPS id 99A293858CDB for ; Wed, 31 May 2023 16:25:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 99A293858CDB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1b02fcde49aso26826655ad.0 for ; Wed, 31 May 2023 09:25:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1685550354; x=1688142354; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZhKjMevQO/wve3r9OhIhqIjNO5qPfkR3dR2fIs13tPI=; b=Jev4XiaecOE2HYaajfjHRMKwQkXaul3llK/lGFvykg9rwZWciVrQF+5Amqa0JyfVxz c6KyMF+3633PwMi4dwbC4nt93K4yc7pJJHE46HwKbD+pO+VgxxC4gJBS8iUn3mIFskyl 92uJ+rCLXKH6SGZggIqNms3jo6xKYiMfBX12YFe+GH7vOvZpi7QaanPuS37/FgVWZ3n0 54/U1j+HIHil0GnNQ95IVdyC54igu9uLgHUDe6ROJPSKADEa6ue6yDjFK4jBp8Y28VfC NFLfLgOZtyntA4iymqsGUOzwyGnK9njghfM93qlqiHEQNEXH2QI6/Nax6+lkBzBvuqP8 ZPRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685550354; x=1688142354; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZhKjMevQO/wve3r9OhIhqIjNO5qPfkR3dR2fIs13tPI=; b=S4tiukyiCxJX4Ptlr7vNk2njUafQTpbwJaEMYm2NorDB5pwnm6hXt+CjtETMBj6KhX C9gBR5y7+X9NLVhVIwXuVPYYcJbAVIeC3RZjYRiE8wJvxRdpOoTJm1KT6fcXgWXngxgh KghAGsMViXK70UWRbuniYGvonzAhSqe+WrbSYo3h5QS1W49TbETnkyXfzt7WLI5kN9QI vGT8MRHCVt+Bq6/7C+nqSrSF1RjlHKK1ytB/EJjaRCrMKuLuYDzQ0D4GXfuj/K62FkNj o2TNUtWjFkHassVqbnjV+uQP9OglavBpeEzconY01cwfO61IQfqCt0gLAQdI7vSAawdo DUtQ== X-Gm-Message-State: AC+VfDz/MLmFoENt6UrnP8aQUdfRoBrJrT0yaLq/EgT4j+NhnB1ZRbBd RtYYpu7vxaZTnubolrOF+E3Euek3w7BAzPIFz/g= X-Received: by 2002:a17:902:7045:b0:1af:cf34:a645 with SMTP id h5-20020a170902704500b001afcf34a645mr4466522plt.21.1685550354458; Wed, 31 May 2023 09:25:54 -0700 (PDT) Received: from vineet-framework.ba.rivosinc.com ([71.202.114.183]) by smtp.gmail.com with ESMTPSA id q9-20020a170902788900b001a6f7744a27sm1604443pll.87.2023.05.31.09.25.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 09:25:54 -0700 (PDT) From: Vineet Gupta To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, Jeff Law , Palmer Dabbelt , Philipp Tomsich , Christoph Mullner , gnu-toolchain@rivosinc.com, Vineet Gupta Subject: [PATCH 1/3] testsuite: Unbork multilib testing on RISC-V (and any target really) Date: Wed, 31 May 2023 09:25:32 -0700 Message-Id: <20230531162534.119952-2-vineetg@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230531162534.119952-1-vineetg@rivosinc.com> References: <20230531162534.119952-1-vineetg@rivosinc.com> MIME-Version: 1.0 X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: , 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?1767427717301570233?= X-GMAIL-MSGID: =?utf-8?q?1767427717301570233?= Multilib testing on trunk is currently busted (and surprisingly this affects any/all targets but it seems nobody cares). We currently get the following splat: | ERROR: tcl error code NONE | ERROR: torture-init: torture_without_loops is not empty as expected And this takes down pretty much all of testsuite. | ========= Summary of gcc testsuite ========= | | # of unexpected case / # of unique unexpected case | | gcc | g++ | gfortran | | rv64imafdc/ lp64d/ medlow | 5421 / 4 | 1 / 1 | 72 / 12 | | rv32imafdc/ ilp32d/ medlow | 5422 / 5 | 3 / 2 | 72 / 12 | | rv32imac/ ilp32/ medlow | 391 / 5 | 3 / 2 | 109 / 19 | | rv64imac/ lp64/ medlow | 5422 / 5 | 1 / 1 | 109 / 19 | There have been recent improvements in test harness around pairing of torture-{init,finish} and checking for leaking torture options. This however triggers a latent bug introduced way back in 2009: commit 3dd1415dc88 "i386-prefetch.exp: Skip tests when multilib flags contain -march" which missed a pairing torture-finish. It was benign so far but in the new regime it causes extra state "torture-init-done" confusing the 2nd round of tests (in multilib). This fix moves the early exit outside of torture-{init,finish} bracket and brings RISC-V testing back to sanity. | rv64imafdc/ lp64d/ medlow | 3 / 2 | 1 / 1 | 72 / 12 | | rv32imafdc/ ilp32d/ medlow | 4 / 3 | 3 / 2 | 72 / 12 | | rv32imac/ ilp32/ medlow | 3 / 2 | 3 / 2 | 109 / 19 | | rv64imac/ lp64/ medlow | 5 / 4 | 1 / 1 | 109 / 19 | gcc/testsuite: * gcc.misc-tests/i386-prefetch.exp: Move early return outside the torture-{init,finish} Signed-off-by: Vineet Gupta --- gcc/testsuite/gcc.misc-tests/i386-prefetch.exp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/gcc.misc-tests/i386-prefetch.exp b/gcc/testsuite/gcc.misc-tests/i386-prefetch.exp index ad9e56a54bcf..7101b1e30576 100644 --- a/gcc/testsuite/gcc.misc-tests/i386-prefetch.exp +++ b/gcc/testsuite/gcc.misc-tests/i386-prefetch.exp @@ -82,6 +82,13 @@ if $tracelevel then { strace $tracelevel } +if { [board_info target exists multilib_flags] + && [string match "* -march=*" " [board_info target multilib_flags] "] } { + # Multilib flags come after the -march flags we pass and override + # them, so skip these tests when such flags are passed. + return +} + # Load support procs. load_lib gcc-dg.exp load_lib torture-options.exp @@ -90,13 +97,6 @@ load_lib torture-options.exp dg-init torture-init -if { [board_info target exists multilib_flags] - && [string match "* -march=*" " [board_info target multilib_flags] "] } { - # Multilib flags come after the -march flags we pass and override - # them, so skip these tests when such flags are passed. - return -} - set-torture-options $PREFETCH_NONE gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/i386-pf-none-*.c]] "" "" From patchwork Wed May 31 16:25:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 101535 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3004788vqr; Wed, 31 May 2023 09:27:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Bg8aWnpzMVeT5ZqwIP5AlwN0K5ZWxPoQVGFQAb+gyisrRniDLMw/1t4oT72Bgpp4eLdFz X-Received: by 2002:a17:907:7d94:b0:973:e184:e0fd with SMTP id oz20-20020a1709077d9400b00973e184e0fdmr5274494ejc.70.1685550458018; Wed, 31 May 2023 09:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685550458; cv=none; d=google.com; s=arc-20160816; b=YP4QEXojKtG2LfdtRgeJOmxyG4CKL9s+ptOCtZacG9kxqfIX10xzTzEax1ChaYFiYA fQj4rK571Jwzeh/M3jyc53JAYQaeVCvJwb8cr5RNmGkdgSXtXgCdjXIrBtY3SNPQ0P+d K21Ww59axYhcWQI8WWF0TEN36kUclWrc2PDkWMNIM4sd+VijXQQFOiJX3MIhpq6h/1Lx qMZp9/vGbI1VQOylzjoLZgdX7Fdcg2TtAlbwxaGFzc+QCozTs38+XZFrtAq0DsN0p0JZ nw6+fsNYit2CAkqOWq9kezoJRKvDVTfItPC01Kdf/am22NdLl3UzK48OqaEOPAMVmm4Z vq0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dmarc-filter:delivered-to; bh=alzsAFU+4yHaZjC1mvShHqn/pHXncDAC5YXxFm2voAg=; b=jZ4r0HRz7wKgTGhlUUv58isZMXbtqrxuMepYets3HGXL2vPat8NaUAVgWM2Q9riXXm suxSI1+zDlPvXEbBxiClJpF8qeS9BZCQ2SiwJZ0CLlCS6+JivXKvZXOEj1BHDXmwLMpJ fOnvd4Tr7YT5FK3zIgHplWLNjE5s6fn5S9RX5I6BRqkaF+s+LPOHNT+f9fg3P1csbH+L +WkJpnbKFWZYgRXj2Nw6t83aESVhg9DqdeJv/Kc2TrK02A4w3Aaa7YIhxRJf2lVhaYyj meDNPihfjkbSIP8TmkqpI/pmDF873T57YS7p57GJPPoCoA7KH+fKsHFXZwPCFP1UEmMN iGxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=oJAmbbvo; 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 vk8-20020a170907cbc800b0096f515774d4si1816457ejc.943.2023.05.31.09.27.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 09:27:38 -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=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=oJAmbbvo; 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 614D43857353 for ; Wed, 31 May 2023 16:27:18 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by sourceware.org (Postfix) with ESMTPS id 07EFA3858C60 for ; Wed, 31 May 2023 16:25:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 07EFA3858C60 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1b1806264e9so3674745ad.0 for ; Wed, 31 May 2023 09:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1685550356; x=1688142356; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=alzsAFU+4yHaZjC1mvShHqn/pHXncDAC5YXxFm2voAg=; b=oJAmbbvo7PLatoqtnig9H9/BV153O1bkaVp5jfcQBelc0jPHm/0BgKW74aWKAJDtVA +WbMvfM9tIh9lXENmfnt0usLfMg/f6rsQdpV2yiwxgF21Mf6/2YQmBtuOqIEijaBbhSw o+vbWFc7pkD8HtInZqqx192kVtIx+E2q8MfpNNFOlF540Ye7qOucwzD/fXJVCobYQKGH C7qF90uy3uuOHxPG+M2vXGtSGeAzYhmMn0np/Co3Ee5679VfDvg2TpxNcaHszE1h9kbk r2HjvvaJDexLI+ofiwo9Wf2rsLxhWJEyN+N7rKdSG3EN6A80ugAfgYFC2Ec+2clWTLBn WlCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685550356; x=1688142356; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=alzsAFU+4yHaZjC1mvShHqn/pHXncDAC5YXxFm2voAg=; b=aCd7YO34csN7HGqUG26qTWUJHB0TaLvM2Qzdu5287hTUvJXruMTZfGY38LQkSsshMV /l9AC6WmGHJay5bIgGtpwSHXlkidfKCdyPGQX33FRR8SdjAmCTq5kaiD38Iyw3UG8Zr2 p3KtDS4nTBhru0tucNZpRWcuLGkmXtkxhMZUUCAgBM9/P4SQF8h8OCWWxQu5n1FNC3+w LCioUd+awXlHzpkgvuvTa27LiyfowO1cUlG2Sfwh6xmZjzzFEsC5buKN8nDGYeQoD6V+ tkJSzwfNoRoB2iQeuqSGcasRejgjK867cHMO7CJY3j0BFjTvU+3nOLJTp/2MvZtx0/jN OhfA== X-Gm-Message-State: AC+VfDwOUZAh8fjeh+roxuO6RWa4apgHbejIyN6o2GfFnuvazqwwwF3f TqCXn5YwB3wNiNP3gn6fB5Hjws2MpRex4N0zDKY= X-Received: by 2002:a17:903:1110:b0:1ac:528c:e71 with SMTP id n16-20020a170903111000b001ac528c0e71mr5612726plh.18.1685550355825; Wed, 31 May 2023 09:25:55 -0700 (PDT) Received: from vineet-framework.ba.rivosinc.com ([71.202.114.183]) by smtp.gmail.com with ESMTPSA id q9-20020a170902788900b001a6f7744a27sm1604443pll.87.2023.05.31.09.25.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 09:25:55 -0700 (PDT) From: Vineet Gupta To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, Jeff Law , Palmer Dabbelt , Philipp Tomsich , Christoph Mullner , gnu-toolchain@rivosinc.com, Kito Cheng , Vineet Gupta Subject: [PATCH 2/3] RISC-V: Add missing torture-init and torture-finish for rvv.exp Date: Wed, 31 May 2023 09:25:33 -0700 Message-Id: <20230531162534.119952-3-vineetg@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230531162534.119952-1-vineetg@rivosinc.com> References: <20230531162534.119952-1-vineetg@rivosinc.com> MIME-Version: 1.0 X-Spam-Status: No, score=-10.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: , 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?1767427757097166939?= X-GMAIL-MSGID: =?utf-8?q?1767427757097166939?= From: Kito Cheng This is in line with recent test harness expectations and is a preventive change as it doesn't actually fix any errors. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/rvv.exp: Add torture-init and torture-finish. Signed-off-by: Vineet Gupta --- gcc/testsuite/gcc.target/riscv/rvv/rvv.exp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp b/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp index 5e69235a268c..7ab7456d1d15 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp +++ b/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp @@ -39,6 +39,7 @@ if [istarget riscv32-*-*] then { # Initialize `dg'. dg-init +torture-init # Main loop. set CFLAGS "$DEFAULT_CFLAGS -march=$gcc_march -mabi=$gcc_mabi -O3" @@ -90,5 +91,7 @@ foreach op $AUTOVEC_TEST_OPTS { dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/autovec/vls-vlmax/*.\[cS\]]] \ "-std=c99 -O3 -ftree-vectorize --param riscv-autovec-preference=fixed-vlmax" $CFLAGS +torture-finish + # All done. dg-finish From patchwork Wed May 31 16:25:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vineet Gupta X-Patchwork-Id: 101536 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp3005112vqr; Wed, 31 May 2023 09:28:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5nnAcgdoEgqEDqhex/3pHAcNUtHxRCrbaPZ3A2FMPwDqsomTb2RmO/sm5935YXcAPyonwl X-Received: by 2002:aa7:c3c8:0:b0:514:96f9:4f20 with SMTP id l8-20020aa7c3c8000000b0051496f94f20mr3905865edr.41.1685550490927; Wed, 31 May 2023 09:28:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685550490; cv=none; d=google.com; s=arc-20160816; b=AqtYFE6fOyd96J39U0qa+lO9j26zNZopa8U1P9h3WeOlhonXTTiSBkVZOyE7Sw1S4b mVhWfU/hhEMCJqPieRgMPoq4Yj614YEIh86a6XqQGJ61VsWYhkXN9JMoVxHP9YHFvIh5 BTt/8Bf96U3McmMy1XKH81wdGEWumbMXRhJRSVp63tpnaAS6ENB7GzS4KxXPZ5kcmCWA yfrdBBjf8YNfmrk4HYzB8iSbQhOo0dhA2JIThFfdWkdViy5atXS5LbZvd3VR7N+4GKY0 HbYPeqWdKmLuAVqQaLiCXYz4gO1WOqq6xoshEW3ZoUlRkfWrr5bs4isBUYWLz1QGwbSZ r9TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:dmarc-filter:delivered-to; bh=NSJO4sfy36ozV2luGeL6qC+mUSkTs9wT9LA5bl29Hlw=; b=OxBdQMo0RY6RgtfHnQKeImiAPbM49XqXHsdnAam+2eWrvDwS+OQ+9RIEU7cZUvJAeu +MxB8ptQwTPd7SEq37AvMB44gozF6oSeEfMRHCO01z5bT1ecIpO8Kt6qb7Ilx5GfGFFn pMZNTiWUijaaP/IUgx/xNuhmRiO8dqnIK9gPbL/BWJL+vnfvFC5QXG/C4Rdjmx5+NuVD R1ymlBxhAbOegxqYgwvjDB5MmzkN4RPD6HeZjrCgPaYfXPZenthvjZeVqWeftAuP/Qt/ oEga6maBqdrKU4HzIXtWn2X+rSk11iSKoxG7/Hc1bK6bsXpCEN3GpnX/6uFNE75ealvc 2l3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=kVPGjPa6; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id d20-20020a056402079400b005149e0f8897si2191100edy.331.2023.05.31.09.28.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 09:28:10 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=kVPGjPa6; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 74241385735D for ; Wed, 31 May 2023 16:27:48 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id 3DF263857C43 for ; Wed, 31 May 2023 16:25:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3DF263857C43 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1b00ecabdf2so54582695ad.2 for ; Wed, 31 May 2023 09:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1685550357; x=1688142357; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NSJO4sfy36ozV2luGeL6qC+mUSkTs9wT9LA5bl29Hlw=; b=kVPGjPa6RyNOVFNy25+9B8VhtjAdHC9/3UHNHwCgbnRQVY8xAJh8lsL5tAZP0gMrTa b0dAsCIzg4IvQiOxUvfgNgZKISzjsKGtKxKjXS+8m0xcuoHR/vTw1XzSrJ62an2tXH8c VamKY5hIS4ZeJ0vHmM9e8PgKMdNY4j0rbVltSYQwmG9tB4EOfon7AkYfAwCclG2o+BS5 KaCPo2jZvNASFF0GWhQiIWfWNIZszPYgIitHGc11bcI3eZboHQTOCwA8hudZHS/GVCrR rykZdq/RZvDUNCMnUbdxPcqQR6bRAZAnRdlwHbs6M6NX0Wl8rFpQaaJRvss6NmGeGdOE J85Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685550357; x=1688142357; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NSJO4sfy36ozV2luGeL6qC+mUSkTs9wT9LA5bl29Hlw=; b=MyfBbNjFeRWodaL5nj3evq+GlzJqVIqVFmTfgyaiqpLWQbhwmgCE+64Wti/d0cvGjz msTNYsvGqcvcwWQy/tUO6m7GMMnrNA8pq9OBJZegYyuYlMLyRpBWv+MLVd5uHkk9cm1I oLWFjqw/CMfzV997SwnDyUzNMd8/F2WFNUiflE08ws+BIrczdW7fyYUxL4o/ax6Ridiw 3uXd4xTQGkM7wnnZwfpSQB/yuH6rVYShypfTsgNTswM6OBgUaBNER+crXBTQWB/QXtAL SjM6UI2b5d0kqAkBPi9i1GX+2sxm40VrtBj5nGrNgYT42Sa9Pr4zpK/24RAAb8xwiJbF Gumw== X-Gm-Message-State: AC+VfDzRpLsc8pwpFgWn3zXXmG36eNhEJlVIj0yYFJXVKV7PJaj1bnD5 FEwYW+4FY7BAEkLN/daJAqumVfXOhgHmk21woIc= X-Received: by 2002:a17:902:eec6:b0:1b0:5d15:3132 with SMTP id h6-20020a170902eec600b001b05d153132mr5545319plb.58.1685550356983; Wed, 31 May 2023 09:25:56 -0700 (PDT) Received: from vineet-framework.ba.rivosinc.com ([71.202.114.183]) by smtp.gmail.com with ESMTPSA id q9-20020a170902788900b001a6f7744a27sm1604443pll.87.2023.05.31.09.25.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 May 2023 09:25:56 -0700 (PDT) From: Vineet Gupta To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, Jeff Law , Palmer Dabbelt , Philipp Tomsich , Christoph Mullner , gnu-toolchain@rivosinc.com, Vineet Gupta Subject: [PATCH 3/3] testsuite: print any leaking torture options for debugging Date: Wed, 31 May 2023 09:25:34 -0700 Message-Id: <20230531162534.119952-4-vineetg@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230531162534.119952-1-vineetg@rivosinc.com> References: <20230531162534.119952-1-vineetg@rivosinc.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: , 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?1767427791377173660?= X-GMAIL-MSGID: =?utf-8?q?1767427791377173660?= This was helpful when debugging the recent multilib testsuite failure. gcc/testsuite: * lib/torture-options.exp: print the value of non-empty options: torture_without_loops, torture_with_loops, LTO_TORTURE_OPTIONS. Signed-off-by: Vineet Gupta --- gcc/testsuite/lib/torture-options.exp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/lib/torture-options.exp b/gcc/testsuite/lib/torture-options.exp index d00d07e9378d..dfb536d1d96c 100644 --- a/gcc/testsuite/lib/torture-options.exp +++ b/gcc/testsuite/lib/torture-options.exp @@ -23,15 +23,15 @@ proc torture-init { args } { global torture_without_loops global_with_loops if [info exists torture_without_loops] { - error "torture-init: torture_without_loops is not empty as expected" + error "torture-init: torture_without_loops is not empty as expected = \"${torture_without_loops}\"" } if [info exists torture_with_loops] { - error "torture-init: torture_with_loops is not empty as expected" + error "torture-init: torture_with_loops is not empty as expected = \"${torture_with_loops}\"" } global LTO_TORTURE_OPTIONS if [info exists LTO_TORTURE_OPTIONS] { - error "torture-init: LTO_TORTURE_OPTIONS is not empty as expected" + error "torture-init: LTO_TORTURE_OPTIONS is not empty as expected = \"${LTO_TORTURE_OPTIONS}\"" } set LTO_TORTURE_OPTIONS "" if [check_effective_target_lto] {