From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2053) id 643893858416; Wed, 21 Feb 2024 09:50:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 643893858416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708509055; bh=iTdGAOFQzGkH/3f9XKJidln1TZ97+nxK//JRipUNeTo=; h=From:To:Subject:Date:From; b=NEiDJf7PXK0oPhe0SLIMh077s/mk7eK6hVPV+1W+UZTt2JnIBLo1d9Hal0BJ3HMXJ QFvd2KVgA7Cd0rUOxLQ9ntN3HYyeN9gxo55fp5wMIGzCCDybHFkgMALQUp60LeMyB7 eTts5tArHVUogDQNgAO+Nw7fYPkvUm62nN2dCwB0= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Ilya Leoshkevich To: gcc-cvs@gcc.gnu.org Subject: [gcc r14-9095] IBM Z: Preserve exceptions in autovec-*-signaling-eq.c tests X-Act-Checkin: gcc X-Git-Author: Ilya Leoshkevich X-Git-Refname: refs/heads/master X-Git-Oldrev: 608d40fde0c7e7e72a0acf4f262bf76c16443be0 X-Git-Newrev: 51c0ff6f503323908d3326050274fc57899300bd Message-Id: <20240221095055.643893858416@sourceware.org> Date: Wed, 21 Feb 2024 09:50:55 +0000 (GMT) List-Id: https://gcc.gnu.org/g:51c0ff6f503323908d3326050274fc57899300bd commit r14-9095-g51c0ff6f503323908d3326050274fc57899300bd Author: Ilya Leoshkevich Date: Mon Feb 19 11:51:38 2024 +0100 IBM Z: Preserve exceptions in autovec-*-signaling-eq.c tests 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. Diff: --- gcc/testsuite/gcc.target/s390/zvector/autovec-double-signaling-eq.c | 2 +- gcc/testsuite/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 3645d3cc3937..b23568e06b46 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 d98aa0c494ee..cd25d10c577b 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"