This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, committed] Fix PR78210
- From: Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: christophe dot lyon at linaro dot org
- Date: Fri, 4 Nov 2016 10:27:19 -0500
- Subject: [PATCH, committed] Fix PR78210
- Authentication-results: sourceware.org; auth=none
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" } } */