From patchwork Mon Feb 19 12:39:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Leoshkevich X-Patchwork-Id: 85965 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 26A973864804 for ; Mon, 19 Feb 2024 12:40:33 +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 5B708384F00A for ; Mon, 19 Feb 2024 12:40:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5B708384F00A 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 5B708384F00A 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=1708346407; cv=none; b=MYY32BlRcCRhmSfQxykNzhMeDKeiC+BLcTvgfcTVR40DyCIyUfMJMCpkkCKeeLqTs39ttVvvx3if13lWIjywqOpx3M7yoF5MSIBF8KCtyWlCqx+P+wnCH40DNVy3CFCqF30UBXTtS9WAJZyqZTGmpr/zpCJBt75eIy2915imOks= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708346407; c=relaxed/simple; bh=RBNb/mWsoTmQGYzMIbCeLVDYloHPTUUCLbjxGY6REXw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=qtX1hSFkauH843sYvo5wFRIYR9AxKjqm1qQWWCwJgaHjdeIm3rfi0qHdAE/6JU78N6Hb7V4K+iXRjJczjnpC0aBDkksTgogELutvweeiI9n6KnVZrEn2EIHWaWIjkKiOVjS/WvwYckM2+F7yIayAtklYWZeS7q9u2T3qhXua0oU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353728.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 41JBuCjn013566 for ; Mon, 19 Feb 2024 12:40:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=KzCNMEbnAo3OeWwH+EPnGYHiSBP9Kmr0TO2g6GMWWR4=; b=XJ2ryUrCqbQN5drhDTE9A1qbwftWgAOZtTe5KTJrIfM1hBhUK2pdD849HWNlxFgNoRfW H3JbLN/Ut7PkN3ZWV9EbGp8/IfzYJxmDxa5zZBKdrKHphrWzf8nFzIR6F+S95nwhReS9 n9P2SDcL7iFoAKfNvj3wEiJV0q32YXDZJqLeKgBPDOKbFlXPA2tavZ3EOycwQWepHuyk pDeUEi01aQMYANVG+p0k34bPrKGQobmom5jCEE0h3A5xKLTCGj0IDDA02xzjzR7SBTon m67LZzZajhLvvjEmg4mNeZ2scre7nAWXSHxnf49qOFaU+E2h6RaUmQVqWWUvthLHIk5U Jg== Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3wb7eecrfs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 19 Feb 2024 12:40:03 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 41JA7VQ6014390 for ; Mon, 19 Feb 2024 12:40:02 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3wb9u28n8v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 19 Feb 2024 12:40:02 +0000 Received: from smtpav05.fra02v.mail.ibm.com (smtpav05.fra02v.mail.ibm.com [10.20.54.104]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 41JCdvoO9568776 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Feb 2024 12:39:59 GMT Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 39ED12004D; Mon, 19 Feb 2024 12:39:57 +0000 (GMT) Received: from smtpav05.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 043852004B; Mon, 19 Feb 2024 12:39:57 +0000 (GMT) Received: from black.boeblingen.de.ibm.com (unknown [9.155.200.166]) by smtpav05.fra02v.mail.ibm.com (Postfix) with ESMTP; Mon, 19 Feb 2024 12:39:56 +0000 (GMT) From: Ilya Leoshkevich To: Andreas Krebbel Cc: Stefan Schulze Frielinghaus , Juergen Christ , gcc-patches@gcc.gnu.org, Ilya Leoshkevich Subject: [PATCH] IBM Z: Preserve exceptions in autovec-*-signaling-eq.c tests Date: Mon, 19 Feb 2024 13:39:49 +0100 Message-ID: <20240219123949.11179-1-iii@linux.ibm.com> X-Mailer: git-send-email 2.43.2 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-GUID: F7yFCSOLIURRg9vb8gzboVSJmk8-ht0u X-Proofpoint-ORIG-GUID: F7yFCSOLIURRg9vb8gzboVSJmk8-ht0u 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-02-19_08,2024-02-19_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 bulkscore=0 clxscore=1011 priorityscore=1501 spamscore=0 adultscore=0 mlxlogscore=999 lowpriorityscore=0 mlxscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402190093 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, 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+patchwork=sourceware.org@gcc.gnu.org DSE, DCE, and other passes are removing redundant signaling comparisons from these tests, but the whole point is to check that GCC knows how to emit them. Use -fno-delete-dead-exceptions to prevent that. gcc/testsuite/ChangeLog: * gcc.target/s390/zvector/autovec-double-signaling-eq.c: Preserve exceptions. * gcc.target/s390/zvector/autovec-float-signaling-eq.c: Likewise. --- .../gcc.target/s390/zvector/autovec-double-signaling-eq.c | 2 +- .../gcc.target/s390/zvector/autovec-float-signaling-eq.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/s390/zvector/autovec-double-signaling-eq.c b/gcc/testsuite/gcc.target/s390/zvector/autovec-double-signaling-eq.c index 3645d3cc393..b23568e06b4 100644 --- a/gcc/testsuite/gcc.target/s390/zvector/autovec-double-signaling-eq.c +++ b/gcc/testsuite/gcc.target/s390/zvector/autovec-double-signaling-eq.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -march=z14 -mzvector -mzarch -fexceptions -fnon-call-exceptions" } */ +/* { dg-options "-O3 -march=z14 -mzvector -mzarch -fexceptions -fnon-call-exceptions -fno-delete-dead-exceptions" } */ #include "autovec.h" diff --git a/gcc/testsuite/gcc.target/s390/zvector/autovec-float-signaling-eq.c b/gcc/testsuite/gcc.target/s390/zvector/autovec-float-signaling-eq.c index d98aa0c494e..cd25d10c577 100644 --- a/gcc/testsuite/gcc.target/s390/zvector/autovec-float-signaling-eq.c +++ b/gcc/testsuite/gcc.target/s390/zvector/autovec-float-signaling-eq.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -march=z14 -mzvector -mzarch -fexceptions -fnon-call-exceptions" } */ +/* { dg-options "-O3 -march=z14 -mzvector -mzarch -fexceptions -fnon-call-exceptions -fno-delete-dead-exceptions" } */ #include "autovec.h"