From patchwork Mon Nov 20 16:26:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Dapp X-Patchwork-Id: 1866150 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=h2U+n+x3; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4SYtDt6YqQz1yRg for ; Tue, 21 Nov 2023 03:26:38 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 134DC3857B8B for ; Mon, 20 Nov 2023 16:26:36 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by sourceware.org (Postfix) with ESMTPS id 7A5673858D33 for ; Mon, 20 Nov 2023 16:26:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7A5673858D33 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 7A5673858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::630 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700497586; cv=none; b=L0WkZa42wMIGaHdgPFW0tOOKk2xb9dXoSY5SCW2bofxqSreLx7Nx7gHKgt8lVFkPpQeWf/wUxj6mQ2cxnAYLKGDGm9FiyfiXfEelP1760Pwup5n7sVkDeeH8SDXYFXcpru8YhgwHCHcOXy+sbhrcknxSlNyck3/kHVVhZkq9LjI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700497586; c=relaxed/simple; bh=GL15CVoQw9g025+jh3Kj4PVJjsi70g1FaMhBMVOSsxs=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=vEA1MSra48NhRi2sMUx63CaHJzdL91zdNIRwbUztrAHpsWgTBF1XAFDQ9+HZ2fRHQ66vCZMlYtQ73iTFejOR6xAMR+RyZ+HarMkHaTECIszONoaObChL20Db9oTE1QCwplNxZuLIjeM1EqJqlnky0SL3P7ET0EDEvQ44QJrxrsg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a00b01955acso59398466b.1 for ; Mon, 20 Nov 2023 08:26:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700497582; x=1701102382; darn=gcc.gnu.org; h=content-transfer-encoding:subject:from:to:content-language:cc :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=KxWB1ywVKnK1eFU1nVaNUUQ3rf/DMhDYjpeXNWhz8g4=; b=h2U+n+x3dtLLZXrHTtXNNpm13DlhOuZp/SolF5mhYvDbUE3g8AafGiTinhqQeHpLLU 1bwwqX3aqNuGeHfak3KKItpnObf/XPdG9Bk5+8RmlawghMLTlBb8HU5zDMEIKmJPfO9j i4N57iGPamvXwYs1Vr8p0TXbepaXF4EIkqoYEa4o+oS5e6xiJQsKai/X4/JFZIbxLwe2 Kwx7EcfO2qGSjIJzl/OkNDyCS4zyvmMSKnIOVD8DbbUet2G04/TobMZFSuCUxDScooVG rpq7hYyEHhN6s4uS/BCFG9XpHkic535rd8gUJ+v/N1RlWDcbS+5o3NfitMqKOfRmFWcr S34w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700497582; x=1701102382; h=content-transfer-encoding:subject:from:to:content-language:cc :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=KxWB1ywVKnK1eFU1nVaNUUQ3rf/DMhDYjpeXNWhz8g4=; b=qSRCh3E7TGn0cBOSP/xYDEYAbANiQTHiDgOVbKR9adw1urncFBixPAjJnerRZq+NEP Ifm6DBa/wTtgyYVxXSInzMjrcweqIqOtiWL+5qtbkh5xm8DjyA8fl4p1lkL+bXVAkzOZ 05lCpHzB6P0TjMvEn1RlXeqc6dluJf5YBHPVgvH2bjUAUAcvRqlejiHpnQoPYbDIbNru SVT/2ZccfdX398fGySJIODWlJSvmIsFPlGsd8Vj6EBVd2iyaP5XmUK0Yr8vmc4rea/ms 799Lz4EAPs58XPDCckXkLoX4tR64N7zZzYxymcAj9163fDiXDwHghKLQcc1PCt3ezMga FoQA== X-Gm-Message-State: AOJu0Yym/LhKwHgqEvCTiqh4YK+Sr+EgyWQ/VIvQdsG+JrsGJNuCvG2T KH4i6ctr6atdymGb4IsNGS9yzvnNI2g= X-Google-Smtp-Source: AGHT+IEVwGiAnjcPdFztoon//f35hPkPrBhfCvVorbOo0YTcYJaSHMmfA31tDz3fw4YjiNhivF65WQ== X-Received: by 2002:a17:907:d311:b0:9ae:4776:5a3a with SMTP id vg17-20020a170907d31100b009ae47765a3amr7118532ejc.39.1700497582099; Mon, 20 Nov 2023 08:26:22 -0800 (PST) Received: from [192.168.1.23] (ip-046-223-203-173.um13.pools.vodafone-ip.de. [46.223.203.173]) by smtp.gmail.com with ESMTPSA id b10-20020a17090630ca00b009fd7fe076aesm1584226ejb.205.2023.11.20.08.26.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Nov 2023 08:26:21 -0800 (PST) Message-ID: <04bf027f-cfc5-4f5a-91de-268ce67f07d3@gmail.com> Date: Mon, 20 Nov 2023 17:26:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: rdapp.gcc@gmail.com Content-Language: en-US To: gcc-patches , palmer , Kito Cheng , jeffreyalaw , "juzhe.zhong@rivai.ai" From: Robin Dapp Subject: [PATCH] RISC-V: testsuite: Do not set default arch for RVV. X-Spam-Status: No, score=-9.2 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, 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 Hi, as per recent discussion and in order to fix inconsistencies between spike and qemu this patch removes gcc_march and gcc_mabi arguments from the default CFLAGS in the testsuite invocation for some sub directories. Juzhe reported that this helps for him. Regards Robin gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/rvv.exp: Remove -march and -mabi from default CFLAGS. --- gcc/testsuite/gcc.target/riscv/rvv/rvv.exp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp b/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp index 237a20e11aa..1d5041b0c8c 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp +++ b/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp @@ -30,18 +30,11 @@ if ![info exists DEFAULT_CFLAGS] then { set DEFAULT_CFLAGS " -ansi -pedantic-errors" } -set gcc_march "rv64gcv_zfh" -set gcc_mabi "lp64d" -if [istarget riscv32-*-*] then { - set gcc_march "rv32gcv_zfh" - set gcc_mabi "ilp32d" -} - # Initialize `dg'. dg-init # Main loop. -set CFLAGS "$DEFAULT_CFLAGS -march=$gcc_march -mabi=$gcc_mabi -O3" +set CFLAGS "$DEFAULT_CFLAGS -O3" dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/base/*.\[cS\]]] \ "" $CFLAGS gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/vsetvl/*.\[cS\]]] \