public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Adjust testcases to be robust against operand order changes
@ 2014-10-20 13:30 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2014-10-20 13:30 UTC (permalink / raw)
  To: gcc-patches


When folding all stmts we can end up canonicalizing operand order
correctly which breaks at least the following two testcases.

Fixed by making their expected outcome more robust.

Tested on x86_64-unknown-linux-gnu, applied.

Richard.

2014-10-20  Richard Biener  <rguenther@suse.de>

	* gcc.dg/tree-ssa/slsr-19.c: Make robust against operand order changes.
	* gcc.dg/tree-ssa/reassoc-20.c: Likewise.

Index: gcc/testsuite/gcc.dg/tree-ssa/slsr-19.c
===================================================================
--- gcc/testsuite/gcc.dg/tree-ssa/slsr-19.c	(revision 216463)
+++ gcc/testsuite/gcc.dg/tree-ssa/slsr-19.c	(working copy)
@@ -16,7 +16,7 @@ f (int c, int s)
   return x1 + x2;
 }
 
-/* { dg-final { scan-tree-dump-times " \\* y" 1 "optimized" } } */
-/* { dg-final { scan-tree-dump-times " \\* 2" 1 "optimized" } } */
+/* { dg-final { scan-tree-dump-times " \\* " 2 "optimized" } } */
+/* { dg-final { scan-tree-dump-times " \\* 2;" 1 "optimized" } } */
 /* { dg-final { cleanup-tree-dump "optimized" } } */
 
Index: gcc/testsuite/gcc.dg/tree-ssa/reassoc-20.c
===================================================================
--- gcc/testsuite/gcc.dg/tree-ssa/reassoc-20.c	(revision 216463)
+++ gcc/testsuite/gcc.dg/tree-ssa/reassoc-20.c	(working copy)
@@ -15,6 +15,6 @@ int main(void)
   printf ("%d %d\n", e, f);
 }
 
-/* { dg-final { scan-tree-dump-times "b.._. \\\+ a.._." 1 "optimized" } } */
+/* { dg-final { scan-tree-dump-times "\[ab\].._. \\\+ \[ab\].._." 1 "optimized" } } */
 /* { dg-final { scan-tree-dump-times " \\\+ " 2 "optimized" } } */
 /* { dg-final { cleanup-tree-dump "optimized" } } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-20 12:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-20 13:30 [PATCH] Adjust testcases to be robust against operand order changes Richard Biener

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