Previously, the tests 'sinhatanh-2.c' and 'sinhatanh-3.c' did not count
the number of functions found in the tree-dump. This patch address this
issue.

2019-01-10  Giuliano Belinassi  <giuliano.belina...@usp.br>

        * gcc.dg/sinhatanh-2.c: Count the number of functions.
        * gcc.dg/sinhatanh-3.c: Likewise.

Index: gcc/testsuite/gcc.dg/sinhatanh-2.c
===================================================================
--- gcc/testsuite/gcc.dg/sinhatanh-2.c	(revision 267815)
+++ gcc/testsuite/gcc.dg/sinhatanh-2.c	(working copy)
@@ -57,12 +57,12 @@
 }
 
 /* There should be calls to sinh, cosh and atanh */
-/* { dg-final { scan-tree-dump "cosh " "optimized" } } */
-/* { dg-final { scan-tree-dump "sinh " "optimized" } } */
-/* { dg-final { scan-tree-dump "atanh " "optimized" } } */
-/* { dg-final { scan-tree-dump "coshf " "optimized" } } */
-/* { dg-final { scan-tree-dump "sinhf " "optimized" } } */
-/* { dg-final { scan-tree-dump "atanhf " "optimized" } } */
-/* { dg-final { scan-tree-dump "coshl " "optimized" } } */
-/* { dg-final { scan-tree-dump "sinhl " "optimized" } } */
-/* { dg-final { scan-tree-dump "atanhl " "optimized" } } */
+/* { dg-final { scan-tree-dump-times "cosh " "1" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "sinh " "1" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "atanh " "2" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "coshf " "1" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "sinhf " "1" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "atanhf " "2" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "coshl " "1" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "sinhl " "1" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "atanhl " "2" "optimized" } } */
Index: gcc/testsuite/gcc.dg/sinhatanh-3.c
===================================================================
--- gcc/testsuite/gcc.dg/sinhatanh-3.c	(revision 267815)
+++ gcc/testsuite/gcc.dg/sinhatanh-3.c	(working copy)
@@ -51,12 +51,12 @@
 }
 
 /* There should be calls to sinh, cosh and atanh */
-/* { dg-final { scan-tree-dump "cosh " "optimized" } } */
-/* { dg-final { scan-tree-dump "sinh " "optimized" } } */
-/* { dg-final { scan-tree-dump "atanh " "optimized" } } */
-/* { dg-final { scan-tree-dump "coshf " "optimized" } } */
-/* { dg-final { scan-tree-dump "sinhf " "optimized" } } */
-/* { dg-final { scan-tree-dump "atanhf " "optimized" } } */
-/* { dg-final { scan-tree-dump "coshl " "optimized" } } */
-/* { dg-final { scan-tree-dump "sinhl " "optimized" } } */
-/* { dg-final { scan-tree-dump "atanhl " "optimized" } } */
+/* { dg-final { scan-tree-dump-times "cosh " "1" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "sinh " "1" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "atanh " "2" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "coshf " "1" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "sinhf " "1" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "atanhf " "2" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "coshl " "1" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "sinhl " "1" "optimized" } } */
+/* { dg-final { scan-tree-dump-times "atanhl " "2" "optimized" } } */

Reply via email to