aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDi Zhao <dizhao@os.amperecomputing.com>2024-11-05 12:28:54 +0800
committerDi Zhao <dizhao@os.amperecomputing.com>2024-11-05 16:28:26 +0800
commit5c19ba52519be975d4464b063d3d5a2c700dd241 (patch)
tree6af2b6e86ab79809d2789b9f3f42900d36159f28 /gcc
parent648bd1fcc6acfc56e08f4ad8146a80910cfacfd7 (diff)
downloadgcc-5c19ba52519be975d4464b063d3d5a2c700dd241.zip
gcc-5c19ba52519be975d4464b063d3d5a2c700dd241.tar.gz
gcc-5c19ba52519be975d4464b063d3d5a2c700dd241.tar.bz2
testsuite: fix testcase pr110279-1.c
The test case is for targets that support FMA. Previously the "target" selector is missed in dg-final command. gcc/testsuite/ChangeLog: PR tree-optimization/110279 * gcc.dg/pr110279-1.c: add target selector.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/pr110279-1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.dg/pr110279-1.c b/gcc/testsuite/gcc.dg/pr110279-1.c
index a8c7257..c4f94ea 100644
--- a/gcc/testsuite/gcc.dg/pr110279-1.c
+++ b/gcc/testsuite/gcc.dg/pr110279-1.c
@@ -1,4 +1,4 @@
-/* { dg-do compile } */
+/* { dg-do compile { target { scalar_all_fma || { i?86-*-* x86_64-*-* } } } } */
/* { dg-options "-Ofast --param avoid-fma-max-bits=512 --param tree-reassoc-width=4 -fdump-tree-widening_mul-details" } */
/* { dg-additional-options "-mcpu=generic" { target aarch64*-*-* } } */
/* { dg-additional-options "-mfma" { target i?86-*-* x86_64-*-* } } */
@@ -64,4 +64,4 @@ foo3 (data_e a, data_e b, data_e c, data_e d)
return result;
}
-/* { dg-final { scan-tree-dump-times "Generated FMA" 3 "widening_mul"} } */ \ No newline at end of file
+/* { dg-final { scan-tree-dump-times "Generated FMA" 3 "widening_mul" } } */