From patchwork Wed Apr 10 06:24:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kewen.Lin" X-Patchwork-Id: 88271 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 92C6B3858C32 for ; Wed, 10 Apr 2024 06:25:19 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 58C0B3858D20 for ; Wed, 10 Apr 2024 06:24:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 58C0B3858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 58C0B3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712730292; cv=none; b=uJRfVJ/LNa1CLwYnfAoqCQq8PN6sZAZzjPGqT8XgPHwIxfEzomGlZjo90qzqo47UIDo2fYRbYhhd33nrtxP0MI2Ea1t1XEs9HElx9Zsi/bpqvhpj5OPVq8f+ommdiQneeXOmEh+n5TxHhjIeUs95ITtJELEDFVZ8NyCb40QYxLk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712730292; c=relaxed/simple; bh=v/HGj+4wgygnRWRnm/DvH3blpVfr9GVgpPWzMctTYSk=; h=DKIM-Signature:Message-ID:Date:MIME-Version:To:From:Subject; b=XXT/Qrjc/OdiVKzennrpNeaNA+11nq3Gy6bFOzSmD65EckV4XE3XvcjTOaDKIuuO9EbrUB8z/t8YTYdyVAqSnbuT9pyJRThvnV5aPKSXoG/AW3WkZIzkNYSHLvyKfN+cNRzG0IaXBq4yG1uE1YptEEbCMovo5E3jJfYaTzQSE1k= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 43A5lDmT020019; Wed, 10 Apr 2024 06:24:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : to : cc : from : subject : content-type : content-transfer-encoding; s=pp1; bh=MOqquhK+5cgU2GXQp15ZoHgfiqjgqIQhkNfxu1Lic2c=; b=KXiZAAxuKuV8s/OKWCciFCbbmI3DMToOsf/ZlJfvUR/O9oKaGmsP52WMrD4PSOb6wfpY n7RFBLwBLFdSWaIwSabhLEGkDZT6cJbNMWOC2NHTujlBeTOEyJihBYYO+VEKTPvNMrpp UXVvVvz8EyUeVz441CGRA+jlBNsag6IKU018QwsizSEYKr178qFI2mvShyk4uoBoNlsp Q/ebc8ZkYpaZJYVSBMXI2zUKTQJ5QAJ5bEUzmMc4i1RSeUT6CV3W5mkgXEeEMhk43u0B m0jlPYJajxFkfDlxy74CUvGfY97w978ffG7Gb3Nj2lqLc8D5nAxZPm6ud3P5HBUg0q1Y qA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3xdmx182n8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Apr 2024 06:24:49 +0000 Received: from m0353727.ppops.net (m0353727.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 43A6MQMH013741; Wed, 10 Apr 2024 06:24:48 GMT Received: from ppma21.wdc07v.mail.ibm.com (5b.69.3da9.ip4.static.sl-reverse.com [169.61.105.91]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3xdmx182n6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Apr 2024 06:24:48 +0000 Received: from pps.filterd (ppma21.wdc07v.mail.ibm.com [127.0.0.1]) by ppma21.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 43A47reT022583; Wed, 10 Apr 2024 06:24:47 GMT Received: from smtprelay03.fra02v.mail.ibm.com ([9.218.2.224]) by ppma21.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3xbhqp3255-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 10 Apr 2024 06:24:47 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay03.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 43A6OhCD35455354 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 10 Apr 2024 06:24:45 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3819D2004B; Wed, 10 Apr 2024 06:24:43 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9335320040; Wed, 10 Apr 2024 06:24:41 +0000 (GMT) Received: from [9.197.254.195] (unknown [9.197.254.195]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Wed, 10 Apr 2024 06:24:41 +0000 (GMT) Message-ID: <7f06fb28-fc72-82fe-a686-132dd08784a2@linux.ibm.com> Date: Wed, 10 Apr 2024 14:24:39 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Content-Language: en-US To: GCC Patches Cc: Richard Biener , Martin Jambor , Peter Bergner From: "Kewen.Lin" Subject: [PATCH] testsuite: Adjust pr113359-2_*.c with unsigned long long [PR114662] X-TM-AS-GCONF: 00 X-Proofpoint-GUID: Hjxn-Lb-bTVmRAquYWNdeq30Mz_rtU_e X-Proofpoint-ORIG-GUID: Nij3NNtm7SANiKanZd5cryzq3gs1JdB2 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-04-10_01,2024-04-09_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 mlxlogscore=603 clxscore=1011 impostorscore=0 mlxscore=0 adultscore=0 malwarescore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2404010000 definitions=main-2404100045 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP 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+patchwork=sourceware.org@gcc.gnu.org Hi, pr113359-2_*.c define a struct having unsigned long type members ay and az which have 4 bytes size at -m32, while the related constants CL1 and CL2 used for equality check are always 8 bytes, it makes compiler consider the below 69 if (a.ay != CL1) 70 __builtin_abort (); always to abort and optimize away the following call to getb, which leads to the expected wpa dumping on "Semantic equality" missing. This patch is to modify the types with unsigned long long accordingly. Tested well on powerpc64-linux-gnu. Is it ok for trunk? BR, Kewen ----- PR testsuite/114662 gcc/testsuite/ChangeLog: * gcc.dg/lto/pr113359-2_0.c: Use unsigned long long instead of unsigned long. * gcc.dg/lto/pr113359-2_1.c: Likewise. --- gcc/testsuite/gcc.dg/lto/pr113359-2_0.c | 8 ++++---- gcc/testsuite/gcc.dg/lto/pr113359-2_1.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) -- 2.43.0 diff --git a/gcc/testsuite/gcc.dg/lto/pr113359-2_0.c b/gcc/testsuite/gcc.dg/lto/pr113359-2_0.c index 8b2d5bdfab2..8495667599d 100644 --- a/gcc/testsuite/gcc.dg/lto/pr113359-2_0.c +++ b/gcc/testsuite/gcc.dg/lto/pr113359-2_0.c @@ -8,15 +8,15 @@ struct SA { unsigned int ax; - unsigned long ay; - unsigned long az; + unsigned long long ay; + unsigned long long az; }; struct SB { unsigned int bx; - unsigned long by; - unsigned long bz; + unsigned long long by; + unsigned long long bz; }; struct ZA diff --git a/gcc/testsuite/gcc.dg/lto/pr113359-2_1.c b/gcc/testsuite/gcc.dg/lto/pr113359-2_1.c index 61bc0547981..8320f347efe 100644 --- a/gcc/testsuite/gcc.dg/lto/pr113359-2_1.c +++ b/gcc/testsuite/gcc.dg/lto/pr113359-2_1.c @@ -5,15 +5,15 @@ struct SA { unsigned int ax; - unsigned long ay; - unsigned long az; + unsigned long long ay; + unsigned long long az; }; struct SB { unsigned int bx; - unsigned long by; - unsigned long bz; + unsigned long long by; + unsigned long long bz; }; struct ZA