[committed 02/22] arm: testsuite: correctly detect hard_float
Christophe Lyon
christophe.lyon@linaro.org
Mon Nov 20 10:41:07 GMT 2023
Hi Richard,
On Mon, 13 Nov 2023 at 15:27, Richard Earnshaw <rearnsha@arm.com> wrote:
>
>
> Add an arm-specific test to check_effective_target_hard_float for
> Arm to handle cases where we only have single-precision FP in hardware.
>
> gcc/testsuite:
>
> * lib/target-supports.exp (check_effective_target_hard_float): Add
> arm-specific test.
> ---
> gcc/testsuite/lib/target-supports.exp | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
Our CI has detected a problem when testing this patch for cortex-m33:
with -mthumb/-march=armv8-m.main+dsp+fp/-mtune=cortex-m33/-mfloat-abi=hard/-mfpu=auto
and GCC configured with --disable-multilib --with-mode=thumb
--with-cpu=cortex-m33 --with-float=hard
FAIL: gcc:gcc.dg/torture/dg-torture.exp=gcc.dg/torture/fp-double-convert-float-1.c
-O0 execution test
FAIL: gcc:gcc.dg/torture/dg-torture.exp=gcc.dg/torture/fp-double-convert-float-1.c
-O1 execution test
FAIL: gcc:gcc.dg/torture/dg-torture.exp=gcc.dg/torture/fp-double-convert-float-1.c
-O2 execution test
FAIL: gcc:gcc.dg/torture/dg-torture.exp=gcc.dg/torture/fp-double-convert-float-1.c
-O2 -flto -fno-use-linker-plugin -flto-partition=none execution
test
FAIL: gcc:gcc.dg/torture/dg-torture.exp=gcc.dg/torture/fp-double-convert-float-1.c
-O2 -flto -fuse-linker-plugin -fno-fat-lto-objects execution test
FAIL: gcc:gcc.dg/torture/dg-torture.exp=gcc.dg/torture/fp-double-convert-float-1.c
-O3 -g execution test
FAIL: gcc:gcc.dg/torture/dg-torture.exp=gcc.dg/torture/fp-double-convert-float-1.c
-Os execution test
We use qemu for testing. Do these tests pass in your configuration?
Thanks,
Christophe
More information about the Gcc-patches
mailing list