From patchwork Thu Nov 2 23:45:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick O'Neill X-Patchwork-Id: 1858740 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=GTQsi0WF; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SM0rC56pDz1yQ5 for ; Fri, 3 Nov 2023 10:46:02 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 681933858401 for ; Thu, 2 Nov 2023 23:46:00 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by sourceware.org (Postfix) with ESMTPS id 7F3DB3858D28 for ; Thu, 2 Nov 2023 23:45:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7F3DB3858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7F3DB3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::533 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698968748; cv=none; b=dSyGhV/7v4MMpQbXgPP+N8iDFwecHJhEaRysVYjzUzMd5rp66Btzh8Fabh/5MyjgfcAj2bb3SVGjrpgTo8V+J6Sq0tVf28M5rn+iVxm5Wq+a5AE20qjv1X5fr1Q9Ro5nNODabqljzhORMhS9gt+eq9EV3Zl08VchOHEWrofbMKU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698968748; c=relaxed/simple; bh=aKvA33qDQ2dZiTMuaPwclTSPR4gvW9FD4sDmCPrkXt0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=wCStZqnXAu8u1kVgaesRcZLWhLnqBG+WTnzM3iZ7KIzVq9Xre29ptfWik2EKomkFbPnKP7MINGRuwsltdEb3l0QAWr2pxtzqoZzM+jPSOWun3ojfKk/ggIWSWFARgoC+/PtsF2JUHX7S4b0mlEytZsZpKLsEgt7qfWr18CIW8eg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x533.google.com with SMTP id 41be03b00d2f7-5aaebfac4b0so1203959a12.2 for ; Thu, 02 Nov 2023 16:45:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1698968737; x=1699573537; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=zemPzfEGqgavjpPHN9QnMxBxLgbUi7NUO1iLxzJaDyM=; b=GTQsi0WFlZPPWYDETmdUx7DviQSpdpLOgFyNCQuk6W6GQShShAtA+myI4aIz+pqZHW uCy/vgy/8+xU+nsPnrb1jzHN0JVLqSFJAIRzTQrmTAVw1HiObJxH7XgAwAQq2TditZBX 9Va2aTd7YphsMn8uU7D7eU2xWn47znuYXbU09ytJQbKahH/1qdOpEWgYASUrMSP54stp v0BJsFAPUP7QahI9PjKoSDGW1kqyenl6UouVi8Cot94ve7Bw2T+r6A9kV+sKj8HMa5O3 pCfHxsEaQwKCyBtj07eGzQjLYlv7m9cxc83SEvz0RLetZ8iXcj+eeUkvEVeVPlPfVYsv 4GWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698968737; x=1699573537; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=zemPzfEGqgavjpPHN9QnMxBxLgbUi7NUO1iLxzJaDyM=; b=cnP43j7uz37YWisi2zKFqkHL58WjzKfh9t59qPc+4++ZCl7je6VHZEKkcwM2E+bYe+ vgveGyvfNnNRzSy7+pf7FhVRgIuyhD241HTIM8zYygipqyvR2CRKPhbQRc07I/pqzQhg N6ynZY4wz55QS9s6c3LU6ZdxP9g5nzyiRxV1waZ0WOKR5sQ15bnuwn8TqS/Z0GahOHJw u2Nwc82nLmPAWsrdNIyM6eKS2zFADsB2t+1ptwMp5aU0pbmhktIH/XqDXQzGyuSCWpVQ WYG2jW/vDMfMaVMqzJ2DzBBgXof7IyPIwVdhFZ23kHxV2KPK0RiyC+xeiLyoj2JMdqIL sgWA== X-Gm-Message-State: AOJu0Yxo1o97Puzol0YtxWy3U2VuRg0MgrNRyHOBAebYIdeklkuhg7M7 L9ZrH83HLjFSAwhHkCyMTfREHZeg1h0pvJ0nPVo= X-Google-Smtp-Source: AGHT+IEKKWKs/N8nwtB+C61CSXI94fNj7edbFehIBNzowGkyG2VW+pofQn+6m9PnD12DuXA8YNr/DA== X-Received: by 2002:a05:6a21:7905:b0:179:f7cc:c7e6 with SMTP id bg5-20020a056a21790500b00179f7ccc7e6mr19544007pzc.38.1698968736762; Thu, 02 Nov 2023 16:45:36 -0700 (PDT) Received: from patrick-ThinkPad-X1-Carbon-Gen-8.hq.rivosinc.com ([12.44.203.122]) by smtp.gmail.com with ESMTPSA id m2-20020aa78a02000000b0068fb8e18971sm261981pfa.130.2023.11.02.16.45.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 16:45:36 -0700 (PDT) From: Patrick O'Neill To: gcc-patches@gcc.gnu.org Cc: jeffreyalaw@gmail.com, gnu-toolchain@rivosinc.com, Patrick O'Neill Subject: [PATCH] g++: Rely on dg-do-what-default to avoid running pr102788.cc on non-vector targets Date: Thu, 2 Nov 2023 16:45:27 -0700 Message-ID: <20231102234527.77231-1-patrick@rivosinc.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.4 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Testcases in g++.dg/vect rely on check_vect_support_and_set_flags to set dg-do-what-default and avoid running vector tests on non-vector targets. The three testcases in this patch overwrite the default with dg-do run. Removing the dg-do run directive resolves this issue for non-vector targets (while still running the tests on vector targets). gcc/testsuite/ChangeLog: * g++.dg/vect/pr102788.cc: Remove dg-do run directive. Signed-off-by: Patrick O'Neill --- Tested using rv64gc & rv64gcv to make sure the testcases compile/run as expected. Similar to https://inbox.sourceware.org/gcc-patches/20231102190911.66763-1-patrick@rivosinc.com/T/#u --- gcc/testsuite/g++.dg/vect/pr102788.cc | 1 - 1 file changed, 1 deletion(-) -- 2.34.1 diff --git a/gcc/testsuite/g++.dg/vect/pr102788.cc b/gcc/testsuite/g++.dg/vect/pr102788.cc index fa9c366fe56..032fa29fc72 100644 --- a/gcc/testsuite/g++.dg/vect/pr102788.cc +++ b/gcc/testsuite/g++.dg/vect/pr102788.cc @@ -1,4 +1,3 @@ -// { dg-do run } // { dg-additional-options "-O3" } unsigned long long int var_4 = 235;