From patchwork Thu Jan 11 23:35:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Maciej W. Rozycki" X-Patchwork-Id: 187511 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp1790127dyi; Thu, 11 Jan 2024 15:37:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IG6LG94lDqrcqmbqxLHrCTcXtIOg0KCpWovQ1tBObx2itPbLBRh9C/iw7NdKccH1Y6t8lo5 X-Received: by 2002:a05:6808:11cb:b0:3bb:fc6b:e57e with SMTP id p11-20020a05680811cb00b003bbfc6be57emr100176oiv.100.1705016245780; Thu, 11 Jan 2024 15:37:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705016245; cv=pass; d=google.com; s=arc-20160816; b=TrjPVSl/nX/cHyw1p5CeBLttU3rSP3ZolrYV8PDDmtztTRScTMusISlcz76fzBW4QF wPSTwu/AcIooSr5sUsowhIC61h2gedrLtrCVQ+WSXwb8Lt/d9/xTM7qHNxyHfT0bpNUU kbtUCa7uN+XHOf1+LpCM5CBNYJLoMvT5xexSJNh0PKPj5tWhi5w48Boc6CRHfC1m4WVu WLRfpu4dHpbeQawH1614k52hYyre6KqWvX6VcKAoX9l27tyP9NCq3WRtlJNEqAdIaIhj 6kjzSZpLxdx5qz7wVuq6Eqwf/PiE+FESk0QEaKgagKeBLbd9rpMH5iPR1bK2iU/QY2SZ z/FQ== 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:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=i5Cg9XDHyefxfeguom4VBbU8njHx2MyN7uzW+yhll8Q=; fh=dp1z4I3tVhinwswv7IAFxpunWK+Ws/fGQfmox9vHv3I=; b=iUC8HUyyu9KNfh+3NVBpLoA1y+KiL+B9MbcaRaeHyWuu6ww4OF8ylT8XMI+Jmivf5p +2DvBoB+wFogJpA07HcVj0dM2Zsb6bnJzpw68nuFNXQcnJY1IK8kz/nqlAf1DNlFOver QtwaImFCnSG9/wZnZQNBayr19l5355yA+BcbT8GG3JfZ2SWTwCwbrBkHk+v0PoYmJW6O eLiHpAQHnJJ0FITukqPrbpVhe3PhngCgbcQbgRnSC3AjwsoTsdnVzv6xfn9wmDsGA/OZ i4q8YjXmPSZJRm8b8M7vlPEC43gaGAKg/GSCxTjnIjn6rveiYFPPqLSgLxixWoBcIAGa UFBQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@embecosm.com header.s=google header.b=Klxsn181; 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 z2-20020a0cda82000000b0067f8c3a5124si1805242qvj.507.2024.01.11.15.37.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 15:37:25 -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; dkim=pass header.i=@embecosm.com header.s=google header.b=Klxsn181; 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 2FF983858C2F for ; Thu, 11 Jan 2024 23:37:25 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id E48EC3858417 for ; Thu, 11 Jan 2024 23:35:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E48EC3858417 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embecosm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E48EC3858417 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::32f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705016155; cv=none; b=m4inx/IlJG1OSbb2P40KRe8f51XYsudsda8pTPoR1a4vv9mdfwOCHjNpsfxOVB7B3qU/AH8KOL9tVJKHdO7qUsOy89M2R1xfFofxlV1a4fgrSq2oO6N6hc7XO30DWtJqrIOmIWwulNYk75YJMzO4v9ea8zytHxS6tXRqwJHqrRM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705016155; c=relaxed/simple; bh=wJwjlHYInDXvPSlnqCT08eO/7nkYsLLHl4JLZ8dWOjw=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=p8+SA5YZtMs/0oCgsOLlZ7No0D5hcXP3XlDR9J382bgp1c3mFmKMwNFnlfIsebXIm9YXaTzAykzgxoEqK5ioXVucc6ZYvpzwdCI/v9rOeUeww8rBcPnHQgiga/Fuo8DRly9AFDMQjqfDevZJ7+/nm33Pm1aBO/uFAo9l9z/RNFc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40d6b4e2945so68609455e9.0 for ; Thu, 11 Jan 2024 15:35:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; t=1705016151; x=1705620951; darn=gcc.gnu.org; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=i5Cg9XDHyefxfeguom4VBbU8njHx2MyN7uzW+yhll8Q=; b=Klxsn181VnD9tdYgGql26xe2QShlsWIT+dwKnIdToCzc0pQJ2Vk1YAXGtXmUxZLmNG IjHB1XwDtZctlo0+hKrl3VnpbrD9xVB0YOCYIdki/ErsK67HXafq0gSu2rL9JN0uni4e qDIogTI2teiUeummnsyHS+oA8v2XLb7BYiHCzN47A9/Kfo/wSfG+5JFMqIEX10QLr6Vh wqBjCjE8K3r9jSclkclcgK0YNNkE4DrPK8Z63nFnGE7jQi+wybv297Q/HAkn3rgGSXqZ +EvfWCi0t8Cyi+HyxWIAG7uY0HYtCSnOtjYLqA3aByJLBIAV+FypGXJ4b4Tb5R9bpYSu z1gQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705016151; x=1705620951; h=mime-version:user-agent:references:message-id:in-reply-to:subject :cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=i5Cg9XDHyefxfeguom4VBbU8njHx2MyN7uzW+yhll8Q=; b=kAZRS+/Eg+6rSoom1sZIW7J8BOe+ZIn+LG3xivU/y7ihiugL3i8I8asGIRvqYuzp37 ELaIZiiafLciG7RCBnBs1mYId3hVCKU2ebKAMfuKuW1dtKWJGClQUmwUtV03JoAKsCPe tPhMDrV5+Q9vmHkhuXBUsb1xMTg2Ml5ldXq+wQrVaZ8DMvKPcM58q9hTXefFGW1wNW/4 sXwSAddjq/P1t0SusO8ocB9cj/nwjt4qZRwZNH7atYGAE21gcPYQ8ARbLnpnaLUBXsh/ rQqwMEoBrmPEwXXBQZ3dAoNpjylMg3maBmKoYmN8qvZjIATOBWYBXyS0i7a7vJTWeqor Fcug== X-Gm-Message-State: AOJu0Yw/X4EDvl2lnK6XIeH8mfP/8A6uGhifI7wgAmUwox90meHuZ48H gqo6uLiBsTEESxlkXLvhEkZpH/955B+SuaMREts9wI+a8RU= X-Received: by 2002:a05:600c:474c:b0:40e:4cc6:9fe5 with SMTP id w12-20020a05600c474c00b0040e4cc69fe5mr187812wmo.141.1705016151707; Thu, 11 Jan 2024 15:35:51 -0800 (PST) Received: from [192.168.219.3] ([78.8.192.131]) by smtp.gmail.com with ESMTPSA id o5-20020a170906358500b00a2c189de7b8sm1103714ejb.124.2024.01.11.15.35.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jan 2024 15:35:51 -0800 (PST) Date: Thu, 11 Jan 2024 23:35:49 +0000 (GMT) From: "Maciej W. Rozycki" To: gcc-patches@gcc.gnu.org cc: Andrew Waterman , Jim Wilson , Kito Cheng , Palmer Dabbelt Subject: [PATCH 2/2] RISC-V/testsuite: Also verify if-conversion runs for pr105314.c In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, LIKELY_SPAM_BODY, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no 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: 1787839114568453865 X-GMAIL-MSGID: 1787839114568453865 Verify that if-conversion succeeded through noce_try_store_flag_mask, as per PR rtl-optimization/105314, tightening the test case and making it explicit. gcc/testsuite/ * gcc.target/riscv/pr105314.c: Scan the RTL "ce1" pass too. --- gcc/testsuite/gcc.target/riscv/pr105314.c | 2 ++ 1 file changed, 2 insertions(+) gcc-test-riscv-pr105314-rtl.diff Index: gcc/gcc/testsuite/gcc.target/riscv/pr105314.c =================================================================== --- gcc.orig/gcc/testsuite/gcc.target/riscv/pr105314.c +++ gcc/gcc/testsuite/gcc.target/riscv/pr105314.c @@ -1,6 +1,7 @@ /* PR rtl-optimization/105314 */ /* { dg-do compile } */ /* { dg-skip-if "" { *-*-* } { "-O0" "-Og" "-Os" "-Oz" } } */ +/* { dg-options "-fdump-rtl-ce1" } */ long foo (long a, long b, long c) @@ -10,4 +11,5 @@ foo (long a, long b, long c) return a; } +/* { dg-final { scan-rtl-dump-times "if-conversion succeeded through noce_try_store_flag_mask" 1 "ce1" } } */ /* { dg-final { scan-assembler-not "\\s(?:beq|bne)\\s" } } */