From: Christophe Lyon Date: Thu, 16 Sep 2021 09:31:31 +0000 (+0000) Subject: testsuite: Support single-precision in g++.dg/eh/arm-vfp-unwind.C X-Git-Tag: basepoints/gcc-13~4742 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e2c293f02745d47948fff19615064e4b34c1776;p=thirdparty%2Fgcc.git 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 gcc/testsuite/ * g++.dg/eh/arm-vfp-unwind.C: Support single-precision. --- diff --git a/gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C b/gcc/testsuite/g++.dg/eh/arm-vfp-unwind.C index 62263c0c3b06..8ea25e57ca25 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; }