From patchwork Mon Nov 20 16:26:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robin Dapp X-Patchwork-Id: 1866151 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=gvifXZ3x; 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 4SYtF813V7z1yRg for ; Tue, 21 Nov 2023 03:26:52 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 18E00386183C for ; Mon, 20 Nov 2023 16:26:49 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by sourceware.org (Postfix) with ESMTPS id 9EEF1385841C for ; Mon, 20 Nov 2023 16:26:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9EEF1385841C 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 9EEF1385841C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::52c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700497599; cv=none; b=bqxQ/3lsypy+PwgG/q1zMJvhqiZ3nQNIoMK3U50PCD3ouzFtA6+MPGOS/OcoUxe7PMhuDQ7Ud2XtA8p2LXT54E/nos8hlQGn7njHKT8N3xTpCTJON/u1OcrwNZ1TwnU0qAsSeVksDzarLOYAOr8SSPo5abqcyQyhQb8zKQHOtvI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700497599; c=relaxed/simple; bh=XijNeVZMw4ujwqzLniFwY4WqN/U/XLKUN7eT8QXJFNU=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=GY9aHCWOFtvckLG7r4o30Lbn0F3qE+WHaeO0VdTzqfZjVkbC5XW9C2yaEQzM/hAXen5lLgr4G5Ala/DK2WPpH/nzENUhECbNW58edEfKjdgNYOk72sHTlKPTObQ1RDXZjsGW85aZo70MOlPRMumw2g8TZIiKt8W+Js0x7RlHKe8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-548ce28fd23so1242002a12.3 for ; Mon, 20 Nov 2023 08:26:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700497596; x=1701102396; 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=MgD7iTDDVLwzc7YqTHFleqv25MqS8UCVCOjX9aqHck4=; b=gvifXZ3xWvZgnF3TbIDPbybcUQxjwyA9nI+lFFIhUc4i7PERokZXISZKzCxwUXwBjv 9lO/SMNUl4BcKsAcPma2qsQMXgoCa7VbqeddyTNL45dxXOw3YEitD2/hyowulLWI11Gc O2sFx0NRrYSjfDQXvV7/gAadBoc3bGonC7fpfxnZIZ0YR/VgF+ZdzAe0G4jzuarLtO4u p/YK9yIeIRSvUO2HAeDlTOrYXKBC1V8bCYB0xnd8AY9ls6CryrcOwopDB07KxVLPbuT8 xBadh0P4WOUFx+AjEM9/HOpOcKXF+JaYtroAK5G20c/dHL6pw/059T/mhSI1Lzhc0z8k AX4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700497596; x=1701102396; 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=MgD7iTDDVLwzc7YqTHFleqv25MqS8UCVCOjX9aqHck4=; b=Monb7NoVrjwykk7xWJnt08tMbe1IYHuM5bXnqWW/StT//2fUwUaOh+etJrgzTyUDxJ vt7Zuxp4S29iLK3CtuwfV/FTjeO7Q7BecBCWLFYSsSwsMqvzD1ZRFWIc9mBpqRe8nbEn uPr5O8X+zrbEwznFBZ6uLhgJferbbmPuBHsC6bOkiJpJcitlIdY2P8L/tQw8joNEfThg 4E2k/6etbR1N/HMeYH6v1lAVeKYx2Ty4KdxHTv2kOfHV1Qox/J5mEjrIukrMB7glYAo7 bq1GfN1qNgSYHHluQouo5ftmdZa8X0lu5TVG1o/hZtj8A6IXlrZ7Xw2xOHoNdYs1cgg4 5JFA== X-Gm-Message-State: AOJu0Yyq9XX3INX0uG3CxPuXAHvJ+Fj0/xpeltY8T4h9fkdObyZwEV4G LgutmRbVy+V7x6TECkleQUszcIEP4xg= X-Google-Smtp-Source: AGHT+IFSK33NzAyD0xvoWf48GbgETr1CEXMUTYbd8dfGigrO6xAcUzlRbsLOhMPx5eOJyLr+Pf+JQw== X-Received: by 2002:a17:907:b86:b0:9bf:b129:5984 with SMTP id ey6-20020a1709070b8600b009bfb1295984mr3760255ejc.77.1700497595881; Mon, 20 Nov 2023 08:26:35 -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.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 Nov 2023 08:26:35 -0800 (PST) Message-ID: <1e713615-aba9-4f16-a38f-9b6658126415@gmail.com> Date: Mon, 20 Nov 2023 17:26:35 +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: Add rv64 requirement for bug-9 and bug-14. X-Spam-Status: No, score=-9.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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 Hi, this adds an effective target requirement to compile the tests. Since we disabled 64-bit indices on rv32 targets those tests should be unsupported on rv32. Regards Robin gcc/testsuite/ChangeLog: * g++.target/riscv/rvv/base/bug-14.C: Add dg-require-effective-target rv64. * g++.target/riscv/rvv/base/bug-9.C: Ditto. --- gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C | 1 + gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C | 1 + 2 files changed, 2 insertions(+) diff --git a/gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C b/gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C index bf0c7bd3a36..0d35f2056c6 100644 --- a/gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C +++ b/gcc/testsuite/g++.target/riscv/rvv/base/bug-14.C @@ -1,5 +1,6 @@ /* { dg-do run { target { { {riscv_v} && {rv64} } } } } */ /* { dg-options "-O2" } */ +/* { dg-require-effective-target rv64 } */ #include #include diff --git a/gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C b/gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C index 8d17883bb57..4241f940d63 100644 --- a/gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C +++ b/gcc/testsuite/g++.target/riscv/rvv/base/bug-9.C @@ -1,5 +1,6 @@ /* { dg-do run { target { { {riscv_v} && {rv64} } } } } */ /* { dg-options "-O2" } */ +/* { dg-require-effective-target rv64 } */ #include #include