This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, committed] Fix PR78210


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.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]