public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Committed] Fix gcc.target/aarch64/_Float16_*.c when supplied a -mcpu= option
@ 2017-08-06 17:46 Andrew Pinski
  0 siblings, 0 replies; only message in thread
From: Andrew Pinski @ 2017-08-06 17:46 UTC (permalink / raw)
  To: GCC Patches

[-- Attachment #1: Type: text/plain, Size: 595 bytes --]

Hi,
 The gcc.target/aarch64/_Float16_*.c tests fail if we are testing with
-mcpu= option which is not an armv8.2-a processor.  This is because
independent of the order -mcpu=/-march= options, -mcpu= overrides the
-march= option.

Committed as obvious after testing on aarch64-linux-gnu with
"--target_board=unix/\{,-mcpu=thunderx,-mcpu=thunderx2t99,-march=armv8-a,-march=armv8.1-a,-march=armv8.2-a\}".

Thanks,
Andrew Pinski

ChangeLog:
* gcc.target/aarch64/_Float16_1.c: Skip if supplied a -mcpu= option.
* gcc.target/aarch64/_Float16_2.c: Likewise
* gcc.target/aarch64/_Float16_3.c: Likewise.

[-- Attachment #2: fix_float16_tests.diff.txt --]
[-- Type: text/plain, Size: 1384 bytes --]

Index: testsuite/gcc.target/aarch64/_Float16_1.c
===================================================================
--- testsuite/gcc.target/aarch64/_Float16_1.c	(revision 250901)
+++ testsuite/gcc.target/aarch64/_Float16_1.c	(working copy)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O3 -march=armv8.2-a+nofp16" } */
+/* { dg-skip-if "" { *-*-* } { "-mcpu=*" } { "" } } */
 
 #pragma GCC target ("arch=armv8.2-a+nofp16")
 
Index: testsuite/gcc.target/aarch64/_Float16_2.c
===================================================================
--- testsuite/gcc.target/aarch64/_Float16_2.c	(revision 250901)
+++ testsuite/gcc.target/aarch64/_Float16_2.c	(working copy)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O3 -march=armv8.2-a+nofp16 -fpermitted-flt-eval-methods=c11" } */
+/* { dg-skip-if "" { *-*-* } { "-mcpu=*" } { "" } } */
 
 #pragma GCC target ("arch=armv8.2-a+nofp16")
 
Index: testsuite/gcc.target/aarch64/_Float16_3.c
===================================================================
--- testsuite/gcc.target/aarch64/_Float16_3.c	(revision 250901)
+++ testsuite/gcc.target/aarch64/_Float16_3.c	(working copy)
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O3 -march=armv8.2-a+nofp16 -std=c11 -ffp-contract=fast" } */
+/* { dg-skip-if "" { *-*-* } { "-mcpu=*" } { "" } } */
 
 #pragma GCC target ("arch=armv8.2-a+nofp16")
 

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

only message in thread, other threads:[~2017-08-06 17:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-06 17:46 [Committed] Fix gcc.target/aarch64/_Float16_*.c when supplied a -mcpu= option Andrew Pinski

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).