]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
IBM Z: Preserve exceptions in autovec-*-signaling-eq.c tests
authorIlya Leoshkevich <iii@linux.ibm.com>
Mon, 19 Feb 2024 10:51:38 +0000 (11:51 +0100)
committerIlya Leoshkevich <iii@linux.ibm.com>
Wed, 21 Feb 2024 09:50:45 +0000 (10:50 +0100)
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/testsuite/gcc.target/s390/zvector/autovec-double-signaling-eq.c
gcc/testsuite/gcc.target/s390/zvector/autovec-float-signaling-eq.c

index 3645d3cc3937ab3d85dbc10c7b2049eff7f2554d..b23568e06b465d5961d0e068762bf2e382d4d81c 100644 (file)
@@ -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"
 
index d98aa0c494ee9b95bec149fc32967cd97fb66b8d..cd25d10c577b58af926f06d57a31096b15972d4f 100644 (file)
@@ -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"