diff options
author | Alexandre Oliva <oliva@adacore.com> | 2020-04-08 14:24:29 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2020-04-08 14:24:29 -0300 |
commit | 7dbfcb91a87f78446c5e10582d4ea9ea168f3f98 (patch) | |
tree | f81e9bce6c4b5f574fe88c9b57895db3cfd5665e | |
parent | c5f379653964a1d2c7037b2de3e947a48370a198 (diff) | |
download | gcc-7dbfcb91a87f78446c5e10582d4ea9ea168f3f98.zip gcc-7dbfcb91a87f78446c5e10582d4ea9ea168f3f98.tar.gz gcc-7dbfcb91a87f78446c5e10582d4ea9ea168f3f98.tar.bz2 |
add missing fp16 options
dg-require-effective-target arm_fp16_alternative_ok may pass even when
arm_fp16_ok doesn't, and the latter's failure inhibits dg-add-options
arm_fp16_alternative. Requiring arm_fp16_ok would disable the test,
but if we just pass it the -mfp16-format=alternative option, it passes
even without arm_fp16_ok. Sibling test fp16-aapcs-4.c underwent a
similar change, so I'm proposing the explicit option to fp16-aapcs-3.c
as well.
for gcc/testsuite/ChangeLog
* gcc.target/arm/fp16-aapcs-3.c: Explicitly use the
-mfp16-format=alternative option.
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/fp16-aapcs-3.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e8305cb..db4f639 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-04-08 Alexandre Oliva <oliva@adacore.com> + + * gcc.target/arm/fp16-aapcs-3.c: Explicitly use the + -mfp16-format=alternative option. + 2020-04-08 H.J. Lu <hongjiu.lu@intel.com> PR target/94417 diff --git a/gcc/testsuite/gcc.target/arm/fp16-aapcs-3.c b/gcc/testsuite/gcc.target/arm/fp16-aapcs-3.c index 56a3ae2..858181c 100644 --- a/gcc/testsuite/gcc.target/arm/fp16-aapcs-3.c +++ b/gcc/testsuite/gcc.target/arm/fp16-aapcs-3.c @@ -1,8 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target arm_hard_vfp_ok } */ /* { dg-require-effective-target arm_fp16_alternative_ok } */ -/* { dg-options "-O2" } */ -/* { dg-add-options arm_fp16_alternative } */ +/* { dg-options "-O2 -mfp16-format=alternative" } */ /* Test __fp16 arguments and return value in registers (hard-float). */ |