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: "juzhe.zhong@rivai.ai" X-Patchwork-Id: 162518 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp280769vqo; Tue, 7 Nov 2023 06:45:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IEroDcU0Mov5PLz+7zul4jiHSzOMZ/1S8Fh2cTHGLmY2sNell3W2H9Exri3s7PrDE8DWjqW X-Received: by 2002:a67:ab0a:0:b0:45f:36ed:edce with SMTP id u10-20020a67ab0a000000b0045f36ededcemr3888142vse.16.1699368338577; Tue, 07 Nov 2023 06:45:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699368338; cv=pass; d=google.com; s=arc-20160816; b=l2HUPEPB9BA5zFnGT4Z13bb4zauz7aKAGtGNjD+ndS0N97eVsBPIxNqjQBe6gwPCf0 g3m28Xt1331527iPY/DnUGAjs6qbnGKypS1+IrLvTg3kIvYjh3sG7gPFRE4b1HaRFY26 g3z2AuenpJzubxY41jM4lE7+cfsHgxtcIcKcR2T5ZI4w/BrmDurQN5/g103Ft5y544pl n6xDvz1QubX8W5TJZCYKeLQOy2/10zzrnrrsjON78mbk1H/jpS6Vaadt9lqAUFyuqQC7 A/5WIVqbXlggjdWz6WAe0PZKqcsF6rsUsQepPoWA/Vip39gJqVsyoDwV1G/zrNCl1EGV uw9A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:arc-filter:dmarc-filter:delivered-to; bh=6azN/jbx67xG98hjNz5D6AR8iub6wR6KDO2luF/JIUs=; fh=zFe76Ureu4a3OhTa7Y7HUK000hWvaXfU2DwtOZPu7ME=; b=K9OGSno9Hch1XyRgDfiGC1QoMuCHhDyPm3+CWSd1iJZmIgeBmJxTVAXEihDAjxpBOp g/kZ5U87qLFBTfo4eHxxje1GsTwnxnMKzy8DmKYMauwA7AKE8O0fg+83Vqk8sdco6eX4 e4/SI0CloHCOtxeKNCGtSuN5SU/XyPAC0CBZPFxJGw27RbuTMB8JGnXnPVnxFKTpzroo FJDHg+dkcrhHgNUowQBSzcClU+M/ns5j0ALurSDJlrWJ/zxsxIlbOZnJAa+VLl9Xb0r7 y6xAfFu9etSttikQtG1turR11v6XSnjhpFsTEen5E/bqztvpEXYuTuYKniP0X47eDvCd CvXw== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id s10-20020a05622a178a00b00419674b991asi7237719qtk.505.2023.11.07.06.45.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Nov 2023 06:45:38 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D105F3857C41 for ; Tue, 7 Nov 2023 14:45:37 +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+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781916855112211342 X-GMAIL-MSGID: 1781916855112211342 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