From patchwork Sun Nov 10 13:38:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Torbjorn SVENSSON X-Patchwork-Id: 2009229 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=foss.st.com header.i=@foss.st.com header.a=rsa-sha256 header.s=selector1 header.b=TSZz/Und; dkim-atps=neutral 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 4XmYqG48W2z1xty for ; Mon, 11 Nov 2024 00:45:59 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7EFA6385841F for ; Sun, 10 Nov 2024 13:45:56 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by sourceware.org (Postfix) with ESMTPS id 0F4C53858D28 for ; Sun, 10 Nov 2024 13:45:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0F4C53858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=foss.st.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0F4C53858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=185.132.182.106 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731246340; cv=none; b=hLEbqYqhddyJG3hYcWzU6yTRRwn62jdtH9CP936NXbJ8RKT0686bANnxotFraMBKNJGNIDI7htCio7f9/GV/collCjLjs2mEDErPrT9cRUEUeljUMo2FJoHJCucJGoPz8/kvc4PQNrFsw7GNBoIZpuHFVt70Z3c4BAUTJ/pUlNQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1731246340; c=relaxed/simple; bh=6Ym7hq1ZVSebYEIRI0jatFzOQEXAuaSPIgijMsi/tOY=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=hj2HLfzvQou0JEL8ogtDf5LdeFCoMn5rPw1gupHOQsvEkch4GPTTD97Pd9a5q1Eg0kk+h6Qk8i+fTapAqIeVQTKC/QbsEU62wRVGd04euYYjjpJR86YaCYvt0Zx4ICLWyDGjl/gAcKgiVAC8RIWRVKvYxWneE6Jchsm7nkwQAG8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0369458.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4AACX78s000733; Sun, 10 Nov 2024 14:45:34 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=selector1; bh=mav/cGYsaC5bqhnkAXiqVv VtaKpdNutASz0zBnLoPi4=; b=TSZz/Und7KdhT01SL29Qn438TA6EbRzL5CBD9A C+f5AYYDrYhJnD06+Djkpn/gu8RaRZw5wTDIPt5Z1CG0tMtiibKuf40e3UvQ9sJ8 MnJlH2sFiF4DZmhC07SB2rOEK89HIl/jIlZRnAZ9E8jS89my4fWOE/RmwoAkaMhh HLtzr9yg1g6isZhBXZElojkl3NQJ/8AEls9ZF0EFw/C3BM3Dkj+hf7+tLxa4W7JA Ypj5n96VHFxX9Gcn8Yjn/YEHffOfpqyRoCfh1Piiw3FogZ7zxoBKXPRTiMGKHyE2 8GVrd4Su2swsm5HIrld5uJERw6LTI7sOjMaSV6p8wAffiEmA== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 42tj63s8u3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 10 Nov 2024 14:45:34 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 906DB40045; Sun, 10 Nov 2024 14:44:53 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 877FF2A9F7F; Sun, 10 Nov 2024 14:44:42 +0100 (CET) Received: from jkgcxl0004.jkg.st.com (10.74.22.255) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.37; Sun, 10 Nov 2024 14:44:42 +0100 From: =?utf-8?q?Torbj=C3=B6rn_SVENSSON?= To: CC: , =?utf-8?q?Torbj=C3=B6rn_SVENSSON?= Subject: [PATCH] testsuite: arm: Update expected RTL for reg_equal_test.c test Date: Sun, 10 Nov 2024 14:38:16 +0100 Message-ID: <20241110133815.3342355-1-torbjorn.svensson@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.74.22.255] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 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 Richard, I'm not sure if I'm doing something wrong here, or if it was an oversight when doing the update in r12-8108-g62082d278d1. Anyway, the commit message suggest that it's only the constant that is of interrest, so I updated the test to only check the constant. Do you think this is enough, or is should the test case also verify that it's used in a "set" expression? Ok for trunk and releases/gcc-14? --- The test case was re-writtend in r12-8108-g62082d278d1, but the expected RTL was not updated. The diff for the generated reg_equal_test.c.*r.expand files produced by r12-8108-g62082d278d1 and r15-5047-g7e1d9f58858 is: --- reg_equal_test.c.253r.expand-r12-8108-g62082d278d1 2024-11-10 14:24:54.957438394 +0100 +++ reg_equal_test.c.268r.expand-r15-5047-g7e1d9f58858 2024-11-10 14:30:13.633437178 +0100 @@ -1,5 +1,5 @@ -;; Function x (x, funcdef_no=0, decl_uid=4195, cgraph_uid=1, symbol_order=0) +;; Function x (x, funcdef_no=0, decl_uid=4590, cgraph_uid=1, symbol_order=0) ;; Generating RTL for gimple basic block 2 @@ -25,6 +25,6 @@ (note 1 0 3 NOTE_INSN_DELETED) (note 3 1 2 2 [bb 2] NOTE_INSN_BASIC_BLOCK) (note 2 3 5 2 NOTE_INSN_FUNCTION_BEG) -(insn 5 2 0 2 (set (reg/v:SI 113 [ d ]) +(insn 5 2 0 2 (set (reg/v:SI 114 [ d ]) (const_int -942519458 [0xffffffffc7d24b5e])) -1 (nil)) In both versions, the constant is simply assigned, thus I updated the expected RTL accordingly. gcc/testsuite/ChangeLog: * gcc.target/arm/reg_equal_test.c: Update expected RTL. Signed-off-by: Torbjörn SVENSSON --- gcc/testsuite/gcc.target/arm/reg_equal_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/arm/reg_equal_test.c b/gcc/testsuite/gcc.target/arm/reg_equal_test.c index d87c75cc27c..4337e3f0af5 100644 --- a/gcc/testsuite/gcc.target/arm/reg_equal_test.c +++ b/gcc/testsuite/gcc.target/arm/reg_equal_test.c @@ -12,4 +12,4 @@ x () return; } -/* { dg-final { scan-rtl-dump "expr_list:REG_EQUAL \\(const_int -942519458" "expand" } } */ +/* { dg-final { scan-rtl-dump "\\(const_int -942519458" "expand" } } */