This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ARM,testsuite] Force hard-float on armv8_2-fp16-move-1.c


Hi,

I've noticed that armv8_2-fp16-move-1.c fails on arm-linux-gnueabi and
arm-none-eabi targets because:
dg-add-options arm_v8_2a_fp16_scalar adds -mfloat-abi=softfp
but we also have
dg-options "-O2 -mfloat-abi=hard
which means the testcase is compiled with both -mfloat-abi=hard
-mfloat-abi=softfp (in that order)

-mfloat-abi=hard is required for the test to pass, so I propose the
attached workaround to make it pass on arm-linux-gnueabi /
arm-none-eabi targets: move -mfloat-abi=hard to dg-additional-options
such that it appears after the other options.

Is that OK?

Thanks,

Christophe

2018-04-03  Christophe Lyon  <christophe.lyon@linaro.org>

* gcc.target/arm/armv8_2-fp16-move-1.c: Move -mfloat-abi=hard to
dg-additional-options.

Attachment: armv8_2-fp16-move-1.patch3
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]