public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-5986] arm,testsuite: Fix vect-half-floats.c test
@ 2020-12-14 10:47 Christophe Lyon
  0 siblings, 0 replies; only message in thread
From: Christophe Lyon @ 2020-12-14 10:47 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:ebc15a4e1eee66f68b106e93d4fbf4ed9c8ef07a

commit r11-5986-gebc15a4e1eee66f68b106e93d4fbf4ed9c8ef07a
Author: Christophe Lyon <christophe.lyon@linaro.org>
Date:   Mon Dec 14 10:40:45 2020 +0000

    arm,testsuite: Fix vect-half-floats.c test
    
    This patch fixes typos in effective targets which otherwise lead to
    DejaGnu errors.
    
    It also replaces dg-additional-options with dg-options to avoid
    compiling with -ansi -pedantic-errors, resulting in
    error: ISO C does not support the '_Float16' type [-Wpedantic]
    
    2020-12-14  Christophe Lyon  <christophe.lyon@linaro.org>
    
            gcc/testsuite/
            * gcc.target/arm/vect-half-floats.c: Fix typos.

Diff:
---
 gcc/testsuite/gcc.target/arm/vect-half-floats.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gcc/testsuite/gcc.target/arm/vect-half-floats.c b/gcc/testsuite/gcc.target/arm/vect-half-floats.c
index ebfe7f96444..49ca2e9b083 100644
--- a/gcc/testsuite/gcc.target/arm/vect-half-floats.c
+++ b/gcc/testsuite/gcc.target/arm/vect-half-floats.c
@@ -1,8 +1,8 @@
 /* { dg-do compile }  */
-/* { dg-require-effective-target target_float16 } */ 
+/* { dg-options "-Ofast -ftree-vectorize -fdump-tree-vect-all -std=c11" } */
+/* { dg-require-effective-target float16 } */ 
 /* { dg-require-effective-target arm_fp16_ok } */
-/* { dg-add-options for_float16 } */
-/* { dg-additional-options "-Ofast -ftree-vectorize -fdump-tree-vect-all -std=c11" } */
+/* { dg-add-options float16 } */
 
 void foo (_Float16 n1[], _Float16 n2[], _Float16 r[], int n)
 {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-14 10:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-14 10:47 [gcc r11-5986] arm,testsuite: Fix vect-half-floats.c test Christophe Lyon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).