gcc.dg/tree-ssa/reassoc-20.c: Adjust for mmix.

Message ID alpine.BSF.2.20.16.2007262011200.14329@arjuna.pair.com
State New
Headers show
Series
  • gcc.dg/tree-ssa/reassoc-20.c: Adjust for mmix.
Related show

Commit Message

Hans-Peter Nilsson July 27, 2020, 12:12 a.m.
The expression of interest looks like "e_5 = a::0_1 + b::1_2;" for
mmix-knuth-mmixware, while other targets have a "." instead of the
"::".  ISTM the most useful change here is not to disable the test,
but to add an optional character in the matched expression to match
the "extra" ":".  Also checked cris-elf to assert that the expression
still passes for an "ordinary" ELF target.  Committed.

gcc/testsuite:
	* gcc.dg/tree-ssa/reassoc-20.c: Adjust for mmix.

Patch

--- gcc/gcc/testsuite/gcc.dg/tree-ssa/reassoc-20.c.orig	Mon Jan 13 22:30:47 2020
+++ gcc/gcc/testsuite/gcc.dg/tree-ssa/reassoc-20.c	Mon Jul 27 01:54:35 2020
@@ -15,5 +15,5 @@  int main(void)
   printf ("%d %d\n", e, f);
 }

-/* { dg-final { scan-tree-dump-times "\[ab\].._. \\\+ \[ab\].._." 1 "optimized" } } */
+/* { dg-final { scan-tree-dump-times "\[ab\].\?.._. \\\+ \[ab\].\?.._." 1 "optimized" } } */
 /* { dg-final { scan-tree-dump-times " \\\+ " 2 "optimized" } } */