diff mbox series

[committed] testsuite: Fix up depobj-3.c test on i686-linux [PR112724]

Message ID Zf1RgQr3egrR6ifs@tucnak
State New
Headers show
Series [committed] testsuite: Fix up depobj-3.c test on i686-linux [PR112724] | expand

Commit Message

Jakub Jelinek March 22, 2024, 9:38 a.m. UTC
Hi!

While I've posted a patch to handle EXCESS_PRECISION_EXPR in C/C++
pretty printing, still we'd need to handle
(a + (float)5)
and
(float)(((long double)a) + (long double)5)
and possibly
(float)(((double)a) + (double)5)
too for s390?, so the following patch just uses -fexcess-precision=fast,
so that the expression is always the same.

Tested on x86_64-linux -m32/-m64, committed to trunk.

2024-03-22  Jakub Jelinek  <jakub@redhat.com>

	PR c++/112724
	* c-c++-common/gomp/depobj-3.c: Add -fexcess-precision=fast as
	dg-additional-options.


	Jakub
diff mbox series

Patch

--- gcc/testsuite/c-c++-common/gomp/depobj-3.c.jj	2023-12-01 08:10:43.769309565 +0100
+++ gcc/testsuite/c-c++-common/gomp/depobj-3.c	2024-03-22 10:12:17.680085428 +0100
@@ -1,3 +1,5 @@ 
+/* { dg-additional-options "-fexcess-precision=fast" } */
+
 typedef struct __attribute__((__aligned__ (sizeof (void *)))) omp_depend_t {
   char __omp_depend_t__[2 * sizeof (void *)];
 } omp_depend_t;