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