From patchwork Tue Nov 7 14:45:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?6ZKf5bGF5ZOy?= X-Patchwork-Id: 1861135 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org 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 4SPrc75ZV7z1yQg for ; Wed, 8 Nov 2023 01:45:27 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C0B033857B9B for ; Tue, 7 Nov 2023 14:45:25 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgjp3.qq.com (smtpbgjp3.qq.com [54.92.39.34]) by sourceware.org (Postfix) with ESMTPS id B09083858D35 for ; Tue, 7 Nov 2023 14:45:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B09083858D35 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B09083858D35 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=54.92.39.34 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699368316; cv=none; b=wB0RN/w7Hccrb0I4I+/OnFTPJ135qGIjtuzjBv9QfTI2I0EotIMKq1h/ZtWgRsrcZCWN1O5qjYF8he7I1vcTwF+ikPlpBQz30Zo6MqTC94qA7u1ZmQl05x32vqw6g7L10OTk0tQ3HJTbMlYwg0lp9+QHHHLYMpf0o8lnSsp3ui8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699368316; c=relaxed/simple; bh=AwDiPb/Zs+iZUtGvRkJne9/o5p6e0QbYspouyvvE/Zo=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=Wj8nmp5XYDTsnBYiMjfEz90NSTitoYjwXMk1vXOokkWUOxr3hrOZuRbjp5g9UM7LlxigwzbFbkgbOBysvRLq2kTMZ7OvwjZBWHcJRC9Gby5XBVDKyQDb5gsLKcLf/Mrxp4N70MBdQnQXMzT3tF8jI4+/O/qz7mtPuQwcABkBwDs= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp87t1699368308ta82u5x8 Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 07 Nov 2023 22:45:06 +0800 (CST) X-QQ-SSF: 01400000000000G0V000000A0000000 X-QQ-FEAT: znfcQSa1hKbU9+VZLdWeQmWXquYaWFgDcCMK29+DCgMKE4Hw+rc5tn8VTY0pG 0OGSrB1aFnTJOgtBVpTghRU8MIruVhhaEWxlFJpMMm2AaXrlIl70NlqQhVyx56T2DtDAdnl g3DYAu+dRUtJrjI1ESVFv8w8vYXF0/G4eGA6+1hW9zGrTQem4dIyda8eRQUznANjJbXFrgu UuLaIYaWXCTI21WW5yN5T2kVKfh9+C8jxfGVaV4bfYX/8t+L8kOHnDRfls7MEZtTTAp2ayB /ANivLFWHC3x9SqJ2KiNFX7mEZTFdDAiDt+u73pp++Lfl0neo4wry6uOqI8k3BUbekVf3qv psYyJRIpQqoxFIuSS3kUjNq2ZR4/X0e/hC4HwZ2/fEIdAhuEwzmZEm657KiA/v/Q2vBpZoI X-QQ-GoodBg: 2 X-BIZMAIL-ID: 2081023769429275138 From: Juzhe-Zhong To: gcc-patches@gcc.gnu.org Cc: rguenther@suse.de, Juzhe-Zhong Subject: [PATCH] test: Recover sdiv_pow2 check and remove test of RISC-V Date: Tue, 7 Nov 2023 22:45:05 +0800 Message-Id: <20231107144505.2879197-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.3 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, 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 gcc/testsuite/ChangeLog: * gcc.dg/vect/vect-sdiv-pow2-1.c: Recover scan check. * lib/target-supports.exp: Remove riscv. --- gcc/testsuite/gcc.dg/vect/vect-sdiv-pow2-1.c | 2 +- gcc/testsuite/lib/target-supports.exp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.dg/vect/vect-sdiv-pow2-1.c b/gcc/testsuite/gcc.dg/vect/vect-sdiv-pow2-1.c index 8056c2a6748..49ecbe216f2 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-sdiv-pow2-1.c +++ b/gcc/testsuite/gcc.dg/vect/vect-sdiv-pow2-1.c @@ -79,5 +79,5 @@ main (void) return 0; } -/* { dg-final { scan-tree-dump "vect_recog_divmod_pattern: detected" "vect" } } */ +/* { dg-final { scan-tree-dump {\.DIV_POW2} "vect" { target vect_sdiv_pow2_si } } } */ /* { dg-final { scan-tree-dump-times "vectorized 1 loop" 18 "vect" { target vect_sdiv_pow2_si } } } */ diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 0317fc102ef..8f6cdf16661 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -8077,9 +8077,7 @@ proc check_effective_target_vect_mulhrs_hi {} { proc check_effective_target_vect_sdiv_pow2_si {} { return [expr { ([istarget aarch64*-*-*] - && [check_effective_target_aarch64_sve]) - || ([istarget riscv*-*-*] - && [check_effective_target_riscv_v]) }] + && [check_effective_target_aarch64_sve]) }] } # Return 1 if the target plus current options supports a vector