From patchwork Tue Jun 11 06:19:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Li, Pan2" X-Patchwork-Id: 1946138 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=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Nzs2Yc59; 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 4Vyz6z3n6nz20Tk for ; Tue, 11 Jun 2024 16:20:11 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B2C2E3858430 for ; Tue, 11 Jun 2024 06:20:09 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.16]) by sourceware.org (Postfix) with ESMTPS id 36A313858D34 for ; Tue, 11 Jun 2024 06:19:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 36A313858D34 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 36A313858D34 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=192.198.163.16 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718086791; cv=none; b=rTW5a3h689aJ0AjA7E3CHumPr+zqXTHfO8Lmk8UuuAsSYzvTEgJ2pdhkytC0RsoviLzrckMkIaXxHKCAZcmAMilVGlcBeZKMbZsyDsNKkeAK0MKoisPWHSdbzVhQccviuRLvH9CUzcdksikxX+ns1udqwFiV1QcTZ/9vWx9jaaw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718086791; c=relaxed/simple; bh=4oO6mDVLAvw0uFqq7rS9dTasokydWTTD4xT3X43BQyg=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=EwKWPifJCb52aLyVsW2LiZvbzYvAZakndILEa97oGn9AKwrn3lJF2yiw3DD/xRmOu7YJFy8kqg95eFFiNe4mdaw4KB3qqekYv7gr+6VrEfe7elrV8hEitlMOJfCRJBYfkqYwYNi/028JG/ydE204omNzqgGYHTa9g4ZW4V9a7C8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718086789; x=1749622789; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=4oO6mDVLAvw0uFqq7rS9dTasokydWTTD4xT3X43BQyg=; b=Nzs2Yc59HEnrykDKutGpeXN/MN6Lh3VoDrOxsIWu2QMO10wVUb1RCnRg 1viZnV76wXa5HeokQRf7uU2pB86w7gS3r+FfzyPCwBg5845P0ReWBurco iXRu/cfuYm0Upyyt/g72Tp7tHGW0oYjEsAoa6ddoZNTa9IK0zkdEsVVUB +UciJ+/kurwqv5Gu8J2klynd+CqNKqvCzjH/XILA16i9oqYfH5/AOR1u1 0AZ/v+R31AM4diwYttm+ozVJWiKOe+UmAgWMvyyHjywRicNXzvZzfMZzv QYZ3j289nEaV5tNbGPsSYx6udFaeVWiJDl53dT5O7fRl0Lbj3HSqUKJYm g==; X-CSE-ConnectionGUID: QMbvoKQjSG+kVu/AosnnAg== X-CSE-MsgGUID: yZI20AgMSQudat6n6+vThQ== X-IronPort-AV: E=McAfee;i="6600,9927,11099"; a="12012048" X-IronPort-AV: E=Sophos;i="6.08,229,1712646000"; d="scan'208";a="12012048" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa110.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Jun 2024 23:19:48 -0700 X-CSE-ConnectionGUID: qLyduDrIQRGx/sgSACZpLQ== X-CSE-MsgGUID: iQ+yrjaZQfKcZC1JbuAEvw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,229,1712646000"; d="scan'208";a="39769417" Received: from shvmail02.sh.intel.com ([10.239.244.9]) by orviesa006.jf.intel.com with ESMTP; 10 Jun 2024 23:19:46 -0700 Received: from pli-ubuntu.sh.intel.com (pli-ubuntu.sh.intel.com [10.239.159.47]) by shvmail02.sh.intel.com (Postfix) with ESMTP id 6B8671008106; Tue, 11 Jun 2024 14:19:45 +0800 (CST) From: pan2.li@intel.com To: gcc-patches@gcc.gnu.org Cc: juzhe.zhong@rivai.ai, kito.cheng@gmail.com, richard.guenther@gmail.com, jeffreyalaw@gmail.com, Pan Li Subject: [PATCH v1] Test: Move target independent test cases to gcc.dg/torture Date: Tue, 11 Jun 2024 14:19:43 +0800 Message-Id: <20240611061943.698499-1-pan2.li@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, SPF_HELO_NONE, SPF_NONE, 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 From: Pan Li The test cases of pr115387 are target independent, at least x86 and riscv are able to reproduce. Thus, move these cases to the gcc.dg/torture. The below test suites are passed. 1. The rv64gcv fully regression test. 2. The x86 fully regression test. gcc/testsuite/ChangeLog: * gcc.target/riscv/pr115387-1.c: Move to... * gcc.dg/torture/pr115387-1.c: ...here. * gcc.target/riscv/pr115387-2.c: Move to... * gcc.dg/torture/pr115387-2.c: ...here. Signed-off-by: Pan Li Signed-off-by: Pan Li > --- gcc/testsuite/{gcc.target/riscv => gcc.dg/torture}/pr115387-1.c | 2 +- gcc/testsuite/{gcc.target/riscv => gcc.dg/torture}/pr115387-2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename gcc/testsuite/{gcc.target/riscv => gcc.dg/torture}/pr115387-1.c (92%) rename gcc/testsuite/{gcc.target/riscv => gcc.dg/torture}/pr115387-2.c (84%) diff --git a/gcc/testsuite/gcc.target/riscv/pr115387-1.c b/gcc/testsuite/gcc.dg/torture/pr115387-1.c similarity index 92% rename from gcc/testsuite/gcc.target/riscv/pr115387-1.c rename to gcc/testsuite/gcc.dg/torture/pr115387-1.c index a1c926977c4..fde79f66757 100644 --- a/gcc/testsuite/gcc.target/riscv/pr115387-1.c +++ b/gcc/testsuite/gcc.dg/torture/pr115387-1.c @@ -1,6 +1,6 @@ /* Test there is no ICE when compile. */ /* { dg-do compile } */ -/* { dg-options "-march=rv64gcv -mabi=lp64d -O3" } */ +/* { dg-options "-O3" } */ #define PRINTF_CHK 0x34 diff --git a/gcc/testsuite/gcc.target/riscv/pr115387-2.c b/gcc/testsuite/gcc.dg/torture/pr115387-2.c similarity index 84% rename from gcc/testsuite/gcc.target/riscv/pr115387-2.c rename to gcc/testsuite/gcc.dg/torture/pr115387-2.c index 7183bf18dfd..0cb4b48d27b 100644 --- a/gcc/testsuite/gcc.target/riscv/pr115387-2.c +++ b/gcc/testsuite/gcc.dg/torture/pr115387-2.c @@ -1,6 +1,6 @@ /* Test there is no ICE when compile. */ /* { dg-do compile } */ -/* { dg-options "-march=rv64gcv -mabi=lp64d -O3" } */ +/* { dg-options "-O3" } */ #include #include