aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@foss.st.com>2021-09-16 09:31:31 +0000
committerChristophe Lyon <christophe.lyon@foss.st.com>2021-09-16 09:33:52 +0000
commit8e2c293f02745d47948fff19615064e4b34c1776 (patch)
treea7776d9d6616aa004d24cc3d5fe1186541043411
parent8137be3958be4e5421c283cce3e5b50dbb80b84e (diff)
downloadgcc-8e2c293f02745d47948fff19615064e4b34c1776.zip
gcc-8e2c293f02745d47948fff19615064e4b34c1776.tar.gz
gcc-8e2c293f02745d47948fff19615064e4b34c1776.tar.bz2
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.
-rw-r--r--gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C b/gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C
index 62263c0..8ea25e5 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;
}