public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] PR66669: Fix failure of gcc.dg/loop-8.c on Power
@ 2017-01-23 17:01 Kelvin Nilsen
  2017-01-23 17:08 ` Jeff Law
  2017-06-26 22:13 ` [PATCH] PR66669: Fix failure of gcc.dg/loop-8.c on Power (Backport) Kelvin Nilsen
  0 siblings, 2 replies; 3+ messages in thread
From: Kelvin Nilsen @ 2017-01-23 17:01 UTC (permalink / raw)
  To: gcc-patches; +Cc: law


The test gcc.dg/loop-8.c makes assumptions that are not valid on Power
architecture (and on certain other architectures for which this issue
has already been addressed).  The test case assumes that a single
loop-invariant statement will be moved outside the loop.  On Power, a
constant is copy-propagated within the loop, and the subsequent
loop-invariant code motion moves two loop-invariant statements out of
the loop.

This patch simply disables this test case on Power architecture.


gcc/testsuite/ChangeLog:

2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>

	PR target/66669
	* gcc.dg/loop-8.c: Modify dg-skip-if directive to exclude this
	test on powerpc targets.

Index: gcc/testsuite/gcc.dg/loop-8.c
===================================================================
--- gcc/testsuite/gcc.dg/loop-8.c	(revision 244730)
+++ gcc/testsuite/gcc.dg/loop-8.c	(working copy)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-O1 -fdump-rtl-loop2_invariant" } */
-/* { dg-skip-if "unexpected IV" { "hppa*-*-* mips*-*-* visium-*-*" } { "*" } { "" } } */
+/* { dg-skip-if "unexpected IV" { "hppa*-*-* mips*-*-* visium-*-* powerpc*-*-*" } { "*" } { "" } } */
 
 void
 f (int *a, int *b)

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] PR66669: Fix failure of gcc.dg/loop-8.c on Power
  2017-01-23 17:01 [PATCH] PR66669: Fix failure of gcc.dg/loop-8.c on Power Kelvin Nilsen
@ 2017-01-23 17:08 ` Jeff Law
  2017-06-26 22:13 ` [PATCH] PR66669: Fix failure of gcc.dg/loop-8.c on Power (Backport) Kelvin Nilsen
  1 sibling, 0 replies; 3+ messages in thread
From: Jeff Law @ 2017-01-23 17:08 UTC (permalink / raw)
  To: Kelvin Nilsen, gcc-patches

On 01/23/2017 09:59 AM, Kelvin Nilsen wrote:
>
> The test gcc.dg/loop-8.c makes assumptions that are not valid on Power
> architecture (and on certain other architectures for which this issue
> has already been addressed).  The test case assumes that a single
> loop-invariant statement will be moved outside the loop.  On Power, a
> constant is copy-propagated within the loop, and the subsequent
> loop-invariant code motion moves two loop-invariant statements out of
> the loop.
>
> This patch simply disables this test case on Power architecture.
>
>
> gcc/testsuite/ChangeLog:
>
> 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
>
> 	PR target/66669
> 	* gcc.dg/loop-8.c: Modify dg-skip-if directive to exclude this
> 	test on powerpc targets.
OK.
jeff

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] PR66669: Fix failure of gcc.dg/loop-8.c on Power (Backport)
  2017-01-23 17:01 [PATCH] PR66669: Fix failure of gcc.dg/loop-8.c on Power Kelvin Nilsen
  2017-01-23 17:08 ` Jeff Law
@ 2017-06-26 22:13 ` Kelvin Nilsen
  1 sibling, 0 replies; 3+ messages in thread
From: Kelvin Nilsen @ 2017-06-26 22:13 UTC (permalink / raw)
  To: gcc-patches; +Cc: law


Is it ok to backport this patch to GCC-6?

On 01/23/2017 09:59 AM, Kelvin Nilsen wrote:
> 
> The test gcc.dg/loop-8.c makes assumptions that are not valid on Power
> architecture (and on certain other architectures for which this issue
> has already been addressed).  The test case assumes that a single
> loop-invariant statement will be moved outside the loop.  On Power, a
> constant is copy-propagated within the loop, and the subsequent
> loop-invariant code motion moves two loop-invariant statements out of
> the loop.
> 
> This patch simply disables this test case on Power architecture.
> 
> 
> gcc/testsuite/ChangeLog:
> 
> 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
> 
> 	PR target/66669
> 	* gcc.dg/loop-8.c: Modify dg-skip-if directive to exclude this
> 	test on powerpc targets.
> 
> Index: gcc/testsuite/gcc.dg/loop-8.c
> ===================================================================
> --- gcc/testsuite/gcc.dg/loop-8.c	(revision 244730)
> +++ gcc/testsuite/gcc.dg/loop-8.c	(working copy)
> @@ -1,6 +1,6 @@
>  /* { dg-do compile } */
>  /* { dg-options "-O1 -fdump-rtl-loop2_invariant" } */
> -/* { dg-skip-if "unexpected IV" { "hppa*-*-* mips*-*-* visium-*-*" } { "*" } { "" } } */
> +/* { dg-skip-if "unexpected IV" { "hppa*-*-* mips*-*-* visium-*-* powerpc*-*-*" } { "*" } { "" } } */
> 
>  void
>  f (int *a, int *b)
> 
> 

-- 
Kelvin Nilsen, Ph.D.  kdnilsen@linux.vnet.ibm.com
home office: 801-756-4821, cell: 520-991-6727
IBM Linux Technology Center - PPC Toolchain

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-06-26 22:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-23 17:01 [PATCH] PR66669: Fix failure of gcc.dg/loop-8.c on Power Kelvin Nilsen
2017-01-23 17:08 ` Jeff Law
2017-06-26 22:13 ` [PATCH] PR66669: Fix failure of gcc.dg/loop-8.c on Power (Backport) Kelvin Nilsen

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