public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Christophe Lyon <clyon@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-3571] testsuite: Support single-precision in g++.dg/eh/arm-vfp-unwind.C
Date: Thu, 16 Sep 2021 09:34:50 +0000 (GMT)	[thread overview]
Message-ID: <20210916093450.4F02C3858D3C@sourceware.org> (raw)

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;
 }


                 reply	other threads:[~2021-09-16  9:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210916093450.4F02C3858D3C@sourceware.org \
    --to=clyon@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).