diff mbox

[committed] Fix PR78210

Message ID 48bbcc95-1444-df6a-8ba1-b2d850e25e8c@linux.vnet.ibm.com
State New
Headers show

Commit Message

Bill Schmidt Nov. 4, 2016, 3:27 p.m. UTC
Hi,

On some targets (AArch64 in particular) test gcc.dg/tree-ssa/slsr-8.c
fails because the scan of the SLSR dump is too strict.  On these targets,
a multiply may be a widening multiply, and that wasn't accounted for.
Now it is.  Committed as obvious.

Thanks,
Bill


2016-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

	PR tree-optimization/78210
	* gcc.dg/tree-ssa/slsr-8.c: Fix slsr scan to include the
	possibility of widening multiplies.
diff mbox

Patch

Index: gcc/testsuite/gcc.dg/tree-ssa/slsr-8.c
===================================================================
--- gcc/testsuite/gcc.dg/tree-ssa/slsr-8.c	(revision 241844)
+++ gcc/testsuite/gcc.dg/tree-ssa/slsr-8.c	(working copy)
@@ -24,5 +24,6 @@  f (int s, int *c, int *d)
    initializer with a cast, so we'll keep it as is.  */
 
 /* There are 4 ' * ' instances in the decls (since "int * iftmp.0;" is
-   added), 2 parms, 3 in the code.  */
-/* { dg-final { scan-tree-dump-times " \\* " 9 "optimized" } } */
+   added), 2 parms, 3 in the code.  The second one in the code may
+   be a widening multiply (for example, on AArch64).  */
+/* { dg-final { scan-tree-dump-times " w?\\* " 9 "optimized" } } */