public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3571] testsuite: Support single-precision in g++.dg/eh/arm-vfp-unwind.C
@ 2021-09-16  9:34 Christophe Lyon
  0 siblings, 0 replies; only message in thread
From: Christophe Lyon @ 2021-09-16  9:34 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8e2c293f02745d47948fff19615064e4b34c1776

commit r12-3571-g8e2c293f02745d47948fff19615064e4b34c1776
Author: Christophe Lyon <christophe.lyon@foss.st.com>
Date:   Thu Sep 16 09:31:31 2021 +0000

    testsuite: Support single-precision in g++.dg/eh/arm-vfp-unwind.C
    
    g++.dg/eh/arm-vfp-unwind.C uses an asm statement relying on
    double-precision FPU support. This patch extends it support
    single-precision, useful for targets without double-precision.
    
    2021-09-16  Richard Earnshaw  <rearnsha@arm.com>
    
            gcc/testsuite/
            * g++.dg/eh/arm-vfp-unwind.C: Support single-precision.

Diff:
---
 gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C | 6 +++++-
 1 file changed, 5 insertions(+), 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..8ea25e57ca2 100644
--- a/gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C
+++ b/gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C
@@ -12,7 +12,11 @@ using namespace std;
 
 static void donkey ()
 {
-  asm volatile ("fcpyd d9, %P0" : : "w" (1.2345) : "d9");
+#if __ARM_FP & 8
+  asm volatile ("vmov.f64 d9, %P0" : : "w" (1.2345) : "d9");
+#else
+  asm volatile ("vmov.f32 s18, %0" : : "t" (1.2345f) : "s18");
+#endif
   throw 1;
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-16  9:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-16  9:34 [gcc r12-3571] testsuite: Support single-precision in g++.dg/eh/arm-vfp-unwind.C 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).