public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] testsuite: Make sure double-precision is supported in g++.dg/eh/arm-vfp-unwind.C
@ 2021-08-26 15:53 Christophe Lyon
  2021-09-06  7:23 ` Christophe LYON
  2021-09-15 11:02 ` Richard Earnshaw
  0 siblings, 2 replies; 11+ messages in thread
From: Christophe Lyon @ 2021-08-26 15:53 UTC (permalink / raw)
  To: gcc-patches

g++.dg/eh/arm-vfp-unwind.C uses an asm statement relying on
double-precision FPU support, but does not make sure it is actually
supported by the target.
Check (__ARM_FP & 8) to ensure this.

2021-08-26  Christophe Lyon  <christophe.lyon@foss.st.com>

	gcc/testsuite/
	* g++.dg/eh/arm-vfp-unwind.C: Check __ARM_FP.
---
 gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C b/gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C
index 62263c0c3b0..90d20081d78 100644
--- a/gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C
+++ b/gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C
@@ -3,7 +3,7 @@
 
 /* Test to catch off-by-one errors in arm/pr-support.c.  */
 
-#if defined (__VFP_FP__) && !defined (__SOFTFP__)
+#if defined (__VFP_FP__) && !defined (__SOFTFP__) && (__ARM_FP & 8)
 
 #include <iostream>
 #include <stdlib.h>
-- 
2.25.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-09-16  9:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-26 15:53 [PATCH] testsuite: Make sure double-precision is supported in g++.dg/eh/arm-vfp-unwind.C Christophe Lyon
2021-09-06  7:23 ` Christophe LYON
2021-09-13  7:52   ` Christophe LYON
2021-09-15 11:02 ` Richard Earnshaw
2021-09-15 12:26   ` Christophe LYON
2021-09-15 12:49     ` Richard Earnshaw
2021-09-15 16:13       ` Christophe Lyon
2021-09-15 16:43         ` Richard Earnshaw
2021-09-16  9:12           ` Christophe LYON
2021-09-16  9:19             ` Richard Earnshaw
2021-09-16  9:35               ` Christophe Lyon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).