From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by sourceware.org (Postfix) with ESMTPS id E37343858D37 for ; Thu, 2 Nov 2023 19:09:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E37343858D37 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 E37343858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698952165; cv=none; b=m66H3qruBb6if4KhRSLjC2n8dluGUo10UO80zMBSnLFkArC/rOV8qA/Ge3Z1O2WeAEixH3WAGREzswq0xZdy3Y6Es9AYUH4L6QgDpJlndQJzjT6L9opwRs2QbUxYllwWVCjB6K8TvJ9DfUM4B44DwiOw/D1gDnj61A67/KhuU2A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698952165; c=relaxed/simple; bh=FO7S0XVMFde2kLp+FlrstHAeyQJCVoPNhVYGXGo8lgE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=HNt7j/Bh94spEIhCM9qBiqIi9vVN9fkMfd44cnQ7/nbzSvmjmmYgtyU/7QaS6FnexYrjlN7oUxjWtQvmdd0MhTA40/kfI9FH6dQ+fAAXgiG+idapHVZDU1+NVKQVmjbSoF8QOl3lsoHPfFPepS6UnVRPyC/34+IpcqmQwWlBy00= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62f.google.com with SMTP id d9443c01a7336-1cc58219376so11498075ad.1 for ; Thu, 02 Nov 2023 12:09:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1698952162; x=1699556962; 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=Bgeq/wbfhZSNcWzmoRCWkwEADJ0ZCnKsHiotpCQRxEg=; b=wzqphoC/YfFcEIuc3WPWbdy25HFAcY3O955fyZkts/59QHkUgWwhoqMtG0itBwc8P9 dXZauerY9BaXgomupVwRgfXE/qJy+iy/4VSSIzt2xv0XlQUT36bNMCop/7lf3AAvW44v HIS+vcI2H8e8Fp+zUS4s7kAsX0dVyT2TRrjXdS9Zf4UbgdrTI3gDr74sP6+zXelxXlrB CUhtrYkvxH5WPiaauvPf+WoKrRpSRR5aGGbANVdl9sC85Jb29DwQGrV+8XKTRVm+BVfT CAhkgrkgbWNaGv+6uHLss8ayj+t5q5Qtbe6BC2X6B0pU75v961dy0r0KnMxb2VQ7+VgH xciA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698952162; x=1699556962; 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=Bgeq/wbfhZSNcWzmoRCWkwEADJ0ZCnKsHiotpCQRxEg=; b=N09wSYtvSpA5bQV6xwFT2KeJfv7qadCEbOG4Y7a3TcYIV0LUvYX8Sg3Bkvps1UxGRu 8/TAl/Js0GQOg55498GFudOWHGuCdfAn5msq/IDjTkMyEkWa+AdiMpGxCOvFqe4EUFY9 PsNGxUVZ+ZopQ6llJKsXkDmiHllFuNLNmJjmORcpI62ahrPyuLn480vIRP25V0vpicLZ bHgqtf1ouxL7+pMwDmYICQO79lT5OQutMrc/QX1w3Q2bmIasTC74KXvfnvW82i9TUNiP aPcNFbqIdCZrMwYaAdEbEUccVcPvkHs7lMpxsJGMPvEHLxBwx+6+iU/q6CvrJXbOuMQH dA8A== X-Gm-Message-State: AOJu0YwEryCRVZ1h8bAAXXdnNSj0O+AbJMBfmS61pYo5bOI4l9rU7M/C LZsKnfwF/DqF9pII9Au4ywd3SnzIdAD0Vby05io= X-Google-Smtp-Source: AGHT+IEeh52Wgu2MKHZFM3Y7eo3NAn07S90p20h+OoVG2D6OLn0lATOysF9wz2IUWBZfABBK+mvqlA== X-Received: by 2002:a17:902:d50d:b0:1cc:339b:62af with SMTP id b13-20020a170902d50d00b001cc339b62afmr19677987plg.16.1698952162024; Thu, 02 Nov 2023 12:09:22 -0700 (PDT) Received: from patrick-ThinkPad-X1-Carbon-Gen-8.hq.rivosinc.com ([12.44.203.122]) by smtp.gmail.com with ESMTPSA id be4-20020a170902aa0400b001c736b0037fsm71506plb.231.2023.11.02.12.09.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Nov 2023 12:09:21 -0700 (PDT) From: Patrick O'Neill To: gcc-patches@gcc.gnu.org Cc: Patrick O'Neill Subject: [PATCH] gfortran: Rely on dg-do-what-default to avoid running pr85853.f90, pr107254.f90 and vect-alias-check-1.F90 on non-vector targets Date: Thu, 2 Nov 2023 12:09:11 -0700 Message-ID: <20231102190911.66763-1-patrick@rivosinc.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.5 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 List-Id: Testcases in gfortran.dg/vect/vect.exp 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 which causes issues for non-vector targets. Removing the dg-do run directive resolves this issue for non-vector targets (while still running the tests on vector targets). gcc/testsuite/ChangeLog: * gfortran.dg/vect/pr107254.f90: Remove dg-do run directive. * gfortran.dg/vect/pr85853.f90: Ditto. * gfortran.dg/vect/vect-alias-check-1.F90: Ditto. Signed-off-by: Patrick O'Neill --- Tested using rv64gc & rv64gcv to make sure the testcases compile/run as expected. These files haven't been changed in a long time so I'm not sure why (or if) this hasn't been run into by other people before. --- gcc/testsuite/gfortran.dg/vect/pr107254.f90 | 2 -- gcc/testsuite/gfortran.dg/vect/pr85853.f90 | 1 - gcc/testsuite/gfortran.dg/vect/vect-alias-check-1.F90 | 1 - 3 files changed, 4 deletions(-) diff --git a/gcc/testsuite/gfortran.dg/vect/pr107254.f90 b/gcc/testsuite/gfortran.dg/vect/pr107254.f90 index 85bcb5f3fa2..adce6bedc30 100644 --- a/gcc/testsuite/gfortran.dg/vect/pr107254.f90 +++ b/gcc/testsuite/gfortran.dg/vect/pr107254.f90 @@ -1,5 +1,3 @@ -! { dg-do run } - subroutine dlartg( f, g, s, r ) implicit none double precision :: f, g, r, s diff --git a/gcc/testsuite/gfortran.dg/vect/pr85853.f90 b/gcc/testsuite/gfortran.dg/vect/pr85853.f90 index 68f4a004324..4c0e3b81a09 100644 --- a/gcc/testsuite/gfortran.dg/vect/pr85853.f90 +++ b/gcc/testsuite/gfortran.dg/vect/pr85853.f90 @@ -1,5 +1,4 @@ ! Taken from execute/where_2.f90, but with special flags. -! { dg-do run } ! { dg-additional-options "-fno-tree-loop-vectorize" } ! Program to test the WHERE constructs diff --git a/gcc/testsuite/gfortran.dg/vect/vect-alias-check-1.F90 b/gcc/testsuite/gfortran.dg/vect/vect-alias-check-1.F90 index 3014ff9f3b6..85ae9b151e3 100644 --- a/gcc/testsuite/gfortran.dg/vect/vect-alias-check-1.F90 +++ b/gcc/testsuite/gfortran.dg/vect/vect-alias-check-1.F90 @@ -1,4 +1,3 @@ -! { dg-do run } ! { dg-additional-options "-fno-inline" } #define N 200 -- 2.34.1