public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] testsuite: Fix up tree-ssa/divide-7.c testcase [PR95424]
@ 2022-01-29 16:26 Jakub Jelinek
  2022-02-16  4:21 ` Mike Stump
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Jelinek @ 2022-01-29 16:26 UTC (permalink / raw)
  To: Richard Biener, Jeff Law; +Cc: Zhao Wei Liew, GCC Patches

Hi!

This test fails everywhere, because ? doesn't match literal ?.
It should use \\? instead.  I've also changed those .s in there.
Tested on x86_64-linux (-m32/-m64) and powerpc64le-linux, ok for trunk?

2022-01-29  Jakub Jelinek  <jakub@redhat.com>

	PR tree-optimization/95424
	* gcc.dg/tree-ssa/divide-7.c: Fix up regexps in scan-tree-dump{,-not}.

--- gcc/testsuite/gcc.dg/tree-ssa/divide-7.c.jj	2022-01-29 11:11:39.338627697 +0100
+++ gcc/testsuite/gcc.dg/tree-ssa/divide-7.c	2022-01-29 17:11:31.516070531 +0100
@@ -5,5 +5,5 @@ int f(int x) {
   return 1 / x;
 }
 
-/* { dg-final { scan-tree-dump-not "1 / x_..D.;" "optimized" } } */
-/* { dg-final { scan-tree-dump ".. <= 2 ? x_..D. : 0;" "optimized" } } */
+/* { dg-final { scan-tree-dump-not "1 / x_\[0-9]\+\\\(D\\\);" "optimized" } } */
+/* { dg-final { scan-tree-dump " <= 2 \\? x_\[0-9]\+\\\(D\\\) : 0;" "optimized" } } */

	Jakub


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] testsuite: Fix up tree-ssa/divide-7.c testcase [PR95424]
  2022-01-29 16:26 [PATCH] testsuite: Fix up tree-ssa/divide-7.c testcase [PR95424] Jakub Jelinek
@ 2022-02-16  4:21 ` Mike Stump
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Stump @ 2022-02-16  4:21 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Richard Biener, Jeff Law, Zhao Wei Liew, GCC Patches

On Jan 29, 2022, at 8:26 AM, Jakub Jelinek via Gcc-patches <gcc-patches@gcc.gnu.org> wrote:
> 
> This test fails everywhere, because ? doesn't match literal ?.
> It should use \\? instead.  I've also changed those .s in there.
> Tested on x86_64-linux (-m32/-m64) and powerpc64le-linux, ok for trunk?

Ok.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-16  4:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-29 16:26 [PATCH] testsuite: Fix up tree-ssa/divide-7.c testcase [PR95424] Jakub Jelinek
2022-02-16  4:21 ` Mike Stump

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