Skip to content

Commit 1843341

Browse files
author
Christophe Lyon
committed
testsuite/arm: Add arm_hard_ok check in armv8_2-fp16-scalar-2.c
This test relies on -mfloat-abi=hard to pass (otherwise test_mov_imm_[12] directly build the 1.0 fp16 representation via movw r0, #15360 rather than using vmov.f16 s0, #1.0e+0 as expected by scan-assembler-times) Adding the arm_hard_ok check makes the test unsupported eg. on arm-linux-gnueabi instead of reporting a failure. 2021-03-20 Christophe Lyon <[email protected]> gcc/testsuite/ * gcc.target/arm/armv8_2-fp16-scalar-2.c: Add arm_hard_ok.
1 parent fcfad74 commit 1843341

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gcc/testsuite/gcc.target/arm/armv8_2-fp16-scalar-2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/* { dg-do compile } */
2+
/* { dg-require-effective-target arm_hard_ok } */
23
/* { dg-require-effective-target arm_v8_2a_fp16_scalar_ok } */
34
/* { dg-options "-O2 -std=c11" } */
45
/* { dg-add-options arm_v8_2a_fp16_scalar } */
6+
/* { dg-additional-options "-mfloat-abi=hard" } */
57

68
/* Test compiler use of FP16 instructions. */
79
#include <arm_fp16.h>

0 commit comments

Comments
 (0)