From a1381b69b9d81f210735d4a5bc9d65a0b01d1bda Mon Sep 17 00:00:00 2001 From: Richard Biener <rguenther@suse.de> Date: Fri, 18 Oct 2024 13:30:26 +0200 Subject: [PATCH] [3/n] remove fast-math-*.c special-casing of gcc.dg/vect/ files The following makes -ffast-math explicit. * gcc.dg/vect/vect.exp: Remove special-casing of tests named fast-math-* * gcc.dg/vect/fast-math-bb-slp-call-1.c: Add dg-additional-options -ffast-math. * gcc.dg/vect/fast-math-bb-slp-call-2.c: Likewise. * gcc.dg/vect/fast-math-bb-slp-call-3.c: Likewise. * gcc.dg/vect/fast-math-ifcvt-1.c: Likewise. * gcc.dg/vect/fast-math-pr35982.c: Likewise. * gcc.dg/vect/fast-math-pr43074.c: Likewise. * gcc.dg/vect/fast-math-pr44152.c: Likewise. * gcc.dg/vect/fast-math-pr55281.c: Likewise. * gcc.dg/vect/fast-math-slp-27.c: Likewise. * gcc.dg/vect/fast-math-slp-38.c: Likewise. * gcc.dg/vect/fast-math-vect-call-1.c: Likewise. * gcc.dg/vect/fast-math-vect-call-2.c: Likewise. * gcc.dg/vect/fast-math-vect-complex-3.c: Likewise. * gcc.dg/vect/fast-math-vect-outer-7.c: Likewise. * gcc.dg/vect/fast-math-vect-pow-1.c: Likewise. * gcc.dg/vect/fast-math-vect-pow-2.c: Likewise. * gcc.dg/vect/fast-math-vect-pr25911.c: Likewise. * gcc.dg/vect/fast-math-vect-pr29925.c: Likewise. * gcc.dg/vect/fast-math-vect-reduc-5.c: Likewise. * gcc.dg/vect/fast-math-vect-reduc-7.c: Likewise. * gcc.dg/vect/fast-math-vect-reduc-8.c: Likewise. * gcc.dg/vect/fast-math-vect-reduc-9.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-add-double.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-add-float.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-add-half-float.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-double.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-float.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-half-float.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-double.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-float.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-half-float.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-double.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-float.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-half-float.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-double.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-float.c: Likewise. * gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-half-float.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-add-double.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-add-float.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-add-half-float.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-add-pattern-double.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-add-pattern-float.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-add-pattern-half-float.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-mla-double.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-mla-float.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-mla-half-float.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-mls-double.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-mls-float.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-mls-half-float.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-mul-double.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-mul-float.c: Likewise. * gcc.dg/vect/complex/fast-math-complex-mul-half-float.c: Likewise. --- .../vect/complex/fast-math-bb-slp-complex-add-double.c | 2 +- .../vect/complex/fast-math-bb-slp-complex-add-float.c | 2 +- .../complex/fast-math-bb-slp-complex-add-half-float.c | 2 +- .../fast-math-bb-slp-complex-add-pattern-double.c | 2 +- .../fast-math-bb-slp-complex-add-pattern-float.c | 2 +- .../fast-math-bb-slp-complex-add-pattern-half-float.c | 2 +- .../vect/complex/fast-math-bb-slp-complex-mla-double.c | 2 +- .../vect/complex/fast-math-bb-slp-complex-mla-float.c | 2 +- .../complex/fast-math-bb-slp-complex-mla-half-float.c | 2 +- .../vect/complex/fast-math-bb-slp-complex-mls-double.c | 2 +- .../vect/complex/fast-math-bb-slp-complex-mls-float.c | 2 +- .../complex/fast-math-bb-slp-complex-mls-half-float.c | 2 +- .../vect/complex/fast-math-bb-slp-complex-mul-double.c | 2 +- .../vect/complex/fast-math-bb-slp-complex-mul-float.c | 2 +- .../complex/fast-math-bb-slp-complex-mul-half-float.c | 2 +- .../gcc.dg/vect/complex/fast-math-complex-add-double.c | 1 + .../gcc.dg/vect/complex/fast-math-complex-add-float.c | 1 + .../vect/complex/fast-math-complex-add-half-float.c | 1 + .../complex/fast-math-complex-add-pattern-double.c | 1 + .../vect/complex/fast-math-complex-add-pattern-float.c | 1 + .../complex/fast-math-complex-add-pattern-half-float.c | 1 + .../gcc.dg/vect/complex/fast-math-complex-mla-double.c | 1 + .../gcc.dg/vect/complex/fast-math-complex-mla-float.c | 1 + .../vect/complex/fast-math-complex-mla-half-float.c | 1 + .../gcc.dg/vect/complex/fast-math-complex-mls-double.c | 1 + .../gcc.dg/vect/complex/fast-math-complex-mls-float.c | 1 + .../vect/complex/fast-math-complex-mls-half-float.c | 1 + .../gcc.dg/vect/complex/fast-math-complex-mul-double.c | 1 + .../gcc.dg/vect/complex/fast-math-complex-mul-float.c | 1 + .../vect/complex/fast-math-complex-mul-half-float.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-1.c | 2 ++ gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-2.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-3.c | 2 ++ gcc/testsuite/gcc.dg/vect/fast-math-ifcvt-1.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-pr35982.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-pr43074.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-pr44152.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-pr55281.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-slp-27.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-call-1.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-call-2.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-complex-3.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-outer-7.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-1.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-2.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-pr25911.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-pr29925.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-5.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c | 1 + gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-9.c | 1 + gcc/testsuite/gcc.dg/vect/vect.exp | 10 +++------- 53 files changed, 57 insertions(+), 22 deletions(-) diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-double.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-double.c index 2e611b77c763..fd5bd9b2da01 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-double.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-double.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_double } */ /* { dg-add-options arm_v8_3a_complex_neon } */ -/* { dg-additional-options "-fno-tree-loop-vectorize" } */ +/* { dg-additional-options "-ffast-math -fno-tree-loop-vectorize" } */ #define UNROLL diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-float.c index 1e63a5f2c5e1..a859b2330308 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-float.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_float } */ /* { dg-add-options arm_v8_3a_complex_neon } */ -/* { dg-additional-options "-fno-tree-loop-vectorize" } */ +/* { dg-additional-options "-ffast-math -fno-tree-loop-vectorize" } */ #define UNROLL diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-half-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-half-float.c index 0ae49c16438c..12df361c06d0 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-half-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-half-float.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_complex_add_half } */ /* { dg-require-effective-target float16 } */ -/* { dg-additional-options "-fno-tree-loop-vectorize" } */ +/* { dg-additional-options "-ffast-math -fno-tree-loop-vectorize" } */ /* { dg-add-options arm_v8_3a_fp16_complex_neon } */ #define TYPE _Float16 diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-double.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-double.c index 3f5619b78ce5..e820356de0f0 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-double.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-double.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-add-options arm_v8_3a_complex_neon } */ -/* { dg-additional-options "-fno-tree-loop-vectorize" } */ +/* { dg-additional-options "-ffast-math -fno-tree-loop-vectorize" } */ /* { dg-require-effective-target vect_double } */ /* { dg-add-options arm_v8_3a_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-float.c index a961a852775f..6e560d8778e7 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-float.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_float } */ /* { dg-add-options arm_v8_3a_complex_neon } */ -/* { dg-additional-options "-fno-tree-loop-vectorize" } */ +/* { dg-additional-options "-ffast-math -fno-tree-loop-vectorize" } */ #define UNROLL diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-half-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-half-float.c index e30df0ff0b03..e90d10e584f9 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-half-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-add-pattern-half-float.c @@ -2,7 +2,7 @@ /* { dg-require-effective-target vect_complex_add_half } */ /* { dg-require-effective-target float16 } */ /* { dg-add-options arm_v8_3a_fp16_complex_neon } */ -/* { dg-additional-options "-fno-tree-loop-vectorize" } */ +/* { dg-additional-options "-ffast-math -fno-tree-loop-vectorize" } */ #define UNROLL diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-double.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-double.c index b77c847403df..ae3885b6ba50 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-double.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-double.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_complex_add_double } */ /* { dg-add-options arm_v8_3a_complex_neon } */ -/* { dg-additional-options "-fdump-tree-vect-details" } */ +/* { dg-additional-options "-ffast-math -fdump-tree-vect-details" } */ #define TYPE double #define N 16 diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-float.c index cd68fd190089..61026bef7154 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-float.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_complex_add_float } */ -/* { dg-additional-options "-fdump-tree-vect-details" } */ +/* { dg-additional-options "-ffast-math -fdump-tree-vect-details" } */ /* { dg-add-options arm_v8_3a_fp16_complex_neon } */ #define TYPE float diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-half-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-half-float.c index 510092028d56..38158b97d15e 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-half-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mla-half-float.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_complex_add_half } */ /* { dg-require-effective-target float16 } */ -/* { dg-additional-options "-fno-tree-loop-vectorize" } */ +/* { dg-additional-options "-ffast-math -fno-tree-loop-vectorize" } */ /* { dg-add-options arm_v8_3a_fp16_complex_neon } */ #define TYPE _Float16 diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-double.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-double.c index 9d9839417a2b..ab1d711130f7 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-double.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-double.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_complex_add_double } */ /* { dg-add-options arm_v8_3a_complex_neon } */ -/* { dg-additional-options "-fdump-tree-vect-details" } */ +/* { dg-additional-options "-ffast-math -fdump-tree-vect-details" } */ #define TYPE double #define N 16 diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-float.c index cf540a08acd1..5a5a3217a81c 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-float.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_complex_add_float } */ -/* { dg-additional-options "-fdump-tree-vect-details" } */ +/* { dg-additional-options "-ffast-math -fdump-tree-vect-details" } */ /* { dg-add-options arm_v8_3a_complex_neon } */ #define TYPE float diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-half-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-half-float.c index 217401bae59e..fb1e02c7fa5d 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-half-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mls-half-float.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_complex_add_half } */ /* { dg-require-effective-target float16 } */ -/* { dg-additional-options "-fno-tree-loop-vectorize" } */ +/* { dg-additional-options "-ffast-math -fno-tree-loop-vectorize" } */ /* { dg-add-options arm_v8_3a_fp16_complex_neon } */ #define TYPE _Float16 diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-double.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-double.c index dcac519cd98c..74972e0d0630 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-double.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-double.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_complex_add_double } */ /* { dg-add-options arm_v8_3a_complex_neon } */ -/* { dg-additional-options "-fdump-tree-vect-details" } */ +/* { dg-additional-options "-ffast-math -fdump-tree-vect-details" } */ #define TYPE double #define N 16 diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-float.c index 27280ae2ba4d..6015fdca100d 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-float.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_complex_add_float } */ -/* { dg-additional-options "-fno-tree-loop-vectorize" } */ +/* { dg-additional-options "-ffast-math -fno-tree-loop-vectorize" } */ /* { dg-add-options arm_v8_3a_complex_neon } */ #define TYPE float diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-half-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-half-float.c index 309b168dfb08..8df4f2cba813 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-half-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-bb-slp-complex-mul-half-float.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target vect_complex_add_half } */ /* { dg-require-effective-target float16 } */ -/* { dg-additional-options "-fno-tree-loop-vectorize" } */ +/* { dg-additional-options "-ffast-math -fno-tree-loop-vectorize" } */ /* { dg-add-options arm_v8_3a_fp16_complex_neon } */ #define TYPE _Float16 diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-double.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-double.c index 5cff373b80d2..c95c573d560f 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-double.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-double.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_double } */ /* { dg-add-options arm_v8_3a_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-float.c index 312df88ee689..954644b82f93 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-float.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ /* { dg-add-options arm_v8_3a_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-half-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-half-float.c index 046f014240bf..1fa914916eea 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-half-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-half-float.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_complex_add_half } */ /* { dg-require-effective-target float16 } */ /* { dg-add-options arm_v8_3a_fp16_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-pattern-double.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-pattern-double.c index 9c8b99bc003b..2dede5c7639c 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-pattern-double.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-pattern-double.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_double } */ /* { dg-add-options arm_v8_3a_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-pattern-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-pattern-float.c index ca5f5b257d36..73f2f07d7df1 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-pattern-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-pattern-float.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ /* { dg-add-options arm_v8_3a_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-pattern-half-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-pattern-half-float.c index c6617f5dad09..e634da938733 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-pattern-half-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-add-pattern-half-float.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_complex_add_half } */ /* { dg-require-effective-target float16 } */ /* { dg-add-options arm_v8_3a_fp16_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mla-double.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mla-double.c index 3ec46e5cf669..c4796ae60f4a 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mla-double.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mla-double.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_complex_add_double } */ /* { dg-add-options arm_v8_3a_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mla-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mla-float.c index af59323023a6..ba2c99dc5ee4 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mla-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mla-float.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_complex_add_float } */ /* { dg-add-options arm_v8_3a_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mla-half-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mla-half-float.c index 7beb6b8b5d82..b4236988f448 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mla-half-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mla-half-float.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-add-options arm_v8_3a_fp16_complex_neon } */ /* { dg-require-effective-target vect_complex_add_half } */ /* { dg-require-effective-target float16 } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mls-double.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mls-double.c index fc4cd6151c73..a69c788bacfa 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mls-double.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mls-double.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_complex_add_double } */ /* { dg-add-options arm_v8_3a_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mls-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mls-float.c index a931ca613871..6fa3da79d326 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mls-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mls-float.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_complex_add_float } */ /* { dg-add-options arm_v8_3a_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mls-half-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mls-half-float.c index dd153e499021..fb7e9a5619e9 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mls-half-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mls-half-float.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_complex_add_half } */ /* { dg-require-effective-target float16 } */ /* { dg-add-options arm_v8_3a_fp16_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mul-double.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mul-double.c index b6b21529a10d..e91239838b6c 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mul-double.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mul-double.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_complex_add_double } */ /* { dg-add-options arm_v8_3a_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mul-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mul-float.c index aa8efb4c2db5..0d1fee681cb5 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mul-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mul-float.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_complex_add_float } */ /* { dg-add-options arm_v8_3a_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mul-half-float.c b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mul-half-float.c index 51331625745f..0bc8951371f2 100644 --- a/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mul-half-float.c +++ b/gcc/testsuite/gcc.dg/vect/complex/fast-math-complex-mul-half-float.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_complex_add_half } */ /* { dg-require-effective-target float16 } */ /* { dg-add-options arm_v8_3a_fp16_complex_neon } */ diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-1.c b/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-1.c index d9f19d90431a..a10e8d677a61 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-1.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-ffast-math" } */ + #include "tree-vect.h" extern float copysignf (float, float); diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-2.c b/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-2.c index 76bb044914f4..234b31b6e447 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-2.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-2.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target vect_double } */ +/* { dg-additional-options "-ffast-math" } */ #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-3.c b/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-3.c index fd2c8be695af..a57de47f77c3 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-3.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-bb-slp-call-3.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-ffast-math" } */ + #include "tree-vect.h" extern double sqrt (double); diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-ifcvt-1.c b/gcc/testsuite/gcc.dg/vect/fast-math-ifcvt-1.c index f51202e08555..a8d94440cd95 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-ifcvt-1.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-ifcvt-1.c @@ -1,5 +1,6 @@ /* PR 47892 */ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_condition } */ diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-pr35982.c b/gcc/testsuite/gcc.dg/vect/fast-math-pr35982.c index 50ea7ffc1b9f..dc1a174b6e79 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-pr35982.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-pr35982.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ /* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_intfloat_cvt } */ diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-pr43074.c b/gcc/testsuite/gcc.dg/vect/fast-math-pr43074.c index b3e9884e9ebf..88298067304c 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-pr43074.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-pr43074.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ float pvslockprocess(float *fout, float *fin, int framesize) diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-pr44152.c b/gcc/testsuite/gcc.dg/vect/fast-math-pr44152.c index 4dd3b6f84636..482dab7a04ac 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-pr44152.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-pr44152.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ #include <stdarg.h> diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-pr55281.c b/gcc/testsuite/gcc.dg/vect/fast-math-pr55281.c index 49232616b451..68f6437586f5 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-pr55281.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-pr55281.c @@ -1,5 +1,6 @@ /* PR tree-optimization/55281 */ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ static inline float bar (float k, float j) diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-slp-27.c b/gcc/testsuite/gcc.dg/vect/fast-math-slp-27.c index 3597b3acef87..863fe15bee0a 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-slp-27.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-slp-27.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ float x[2*256+1]; diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c b/gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c index 96751faae7fa..65ad9a783718 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-slp-38.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_double } */ double self[1024]; diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-1.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-1.c index 6c9b7c37b6ec..9d437f8b3c23 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-1.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-ffast-math" } */ /* Disabling epilogues until we find a better way to deal with scans. */ /* { dg-additional-options "--param vect-epilogues-nomask=0" } */ #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-2.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-2.c index e52ffe435d33..c2aabc6357f3 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-2.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-call-2.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target vect_double } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-additional-options "--param vect-epilogues-nomask=0" } */ #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-complex-3.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-complex-3.c index 07992cf72dcf..1a11a8855d28 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-complex-3.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-complex-3.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ #include <stdarg.h> diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-outer-7.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-outer-7.c index 50ce3547eed4..13ff69dec9f2 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-outer-7.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-outer-7.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ float dvec[256]; diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-1.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-1.c index 6da61daa8122..42de1e094bfa 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-1.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-1.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ float x[256]; diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-2.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-2.c index fdcc4a50cdbc..3ae3b49f61a1 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-2.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pow-2.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ typedef double d_type; struct diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr25911.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr25911.c index e1d0d4571fbf..0c33baec5941 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr25911.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr25911.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ float bessel_Kn_scaled_small_x(int n) { diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr29925.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr29925.c index 9c58a485471d..e6e5a58fd02f 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr29925.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-pr29925.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ #include <stdlib.h> diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-5.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-5.c index 663976b57074..11ca08913a01 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-5.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-5.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ /* need -funsafe-math-optimizations to vectorize the summation. diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c index 15e7248ea81a..0a9feab8cea8 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-7.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_double } */ /* need -funsafe-math-optimizations to vectorize the summation. diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c index 840d07cb8ca4..f1ed34c3cd23 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-9.c b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-9.c index 0e9440caa9c0..22c5336a1826 100644 --- a/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-9.c +++ b/gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-9.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-ffast-math" } */ /* { dg-require-effective-target vect_float } */ #include "tree-vect.h" diff --git a/gcc/testsuite/gcc.dg/vect/vect.exp b/gcc/testsuite/gcc.dg/vect/vect.exp index 555e0ace1a56..eddebf53c7f5 100644 --- a/gcc/testsuite/gcc.dg/vect/vect.exp +++ b/gcc/testsuite/gcc.dg/vect/vect.exp @@ -109,6 +109,9 @@ foreach flags $VECT_ADDITIONAL_FLAGS { et-dg-runtest dg-runtest [lsort \ [glob -nocomplain $srcdir/$subdir/no-vfa-*.\[cS\]]] \ $flags $DEFAULT_VECTCFLAGS + et-dg-runtest dg-runtest [lsort \ + [glob -nocomplain $srcdir/$subdir/fast-math-\[ipsvc\]*.\[cS\]]] \ + $flags $DEFAULT_VECTCFLAGS et-dg-runtest dg-runtest [lsort \ [glob -nocomplain $srcdir/$subdir/bb-slp*.\[cS\]]] \ $flags $VECT_SLP_CFLAGS @@ -119,13 +122,6 @@ global SAVED_DEFAULT_VECTCFLAGS set SAVED_DEFAULT_VECTCFLAGS $DEFAULT_VECTCFLAGS set SAVED_VECT_SLP_CFLAGS $VECT_SLP_CFLAGS -# -ffast-math tests -set DEFAULT_VECTCFLAGS $SAVED_DEFAULT_VECTCFLAGS -lappend DEFAULT_VECTCFLAGS "-ffast-math" -et-dg-runtest dg-runtest [lsort \ - [glob -nocomplain $srcdir/$subdir/fast-math-\[ipsvc\]*.\[cS\]]] \ - "" $DEFAULT_VECTCFLAGS - # -ffast-math SLP tests set VECT_SLP_CFLAGS $SAVED_VECT_SLP_CFLAGS lappend VECT_SLP_CFLAGS "-ffast-math" -- GitLab