diff mbox series

Update sinhatanh test

Message ID 20190110205151.s3cknbehcxywv6sn@smtp.gmail.com
State New
Headers show
Series Update sinhatanh test | expand

Commit Message

Giuliano Belinassi Jan. 10, 2019, 8:51 p.m. UTC
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.belinassi@usp.br>

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

Comments

Giuliano Belinassi April 29, 2019, 9:41 p.m. UTC | #1
Hi.
Ping :-)
(I hope I am not bothering you with it)
Giuliano.

On Thu, Jan 10, 2019 at 6:51 PM Giuliano Belinassi
<giuliano.belinassi@usp.br> wrote:
>
> 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.belinassi@usp.br>
>
>         * gcc.dg/sinhatanh-2.c: Count the number of functions.
>         * gcc.dg/sinhatanh-3.c: Likewise.
>
Jeff Law April 30, 2019, 3:07 p.m. UTC | #2
On 4/29/19 3:41 PM, Giuliano Augusto Faulin Belinassi wrote:
> Hi.
> Ping :-)
> (I hope I am not bothering you with it)
> Giuliano.
> 
> On Thu, Jan 10, 2019 at 6:51 PM Giuliano Belinassi
> <giuliano.belinassi@usp.br> wrote:
>>
>> 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.belinassi@usp.br>
>>
>>         * gcc.dg/sinhatanh-2.c: Count the number of functions.
>>         * gcc.dg/sinhatanh-3.c: Likewise.
>>
Thanks for the ping.  The patch wasn't even in my queue of things to
look at.

I've installed the patch on the trunk.

jeff
diff mbox series

Patch

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" } } */