public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Add test-case (PR tree-optimization/66278).
@ 2017-04-20  9:28 Martin Liška
  2017-04-20 13:26 ` Bin.Cheng
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Liška @ 2017-04-20  9:28 UTC (permalink / raw)
  To: GCC Patches; +Cc: Bin.Cheng

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

Hello.

The patch adds a new test-case for the mentioned PR. Tested on x86_64-linux-gnu
and ppc64le-linux-gnu.

Ready for trunk or should I postpone it for next stage1?
Martin

[-- Attachment #2: 0001-Add-test-case-PR-tree-optimization-66278.patch --]
[-- Type: text/x-patch, Size: 1151 bytes --]

From 84335b09fd7626224148be8883edbaa42dcc496e Mon Sep 17 00:00:00 2001
From: marxin <mliska@suse.cz>
Date: Thu, 20 Apr 2017 09:54:02 +0200
Subject: [PATCH] Add test-case (PR tree-optimization/66278).

gcc/testsuite/ChangeLog:

2017-04-20  Martin Liska  <mliska@suse.cz>

	PR tree-optimization/66278
	* gcc.dg/vect/pr66278.c: New test.
---
 gcc/testsuite/gcc.dg/vect/pr66278.c | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 gcc/testsuite/gcc.dg/vect/pr66278.c

diff --git a/gcc/testsuite/gcc.dg/vect/pr66278.c b/gcc/testsuite/gcc.dg/vect/pr66278.c
new file mode 100644
index 00000000000..3e0e2ec5e2b
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/vect/pr66278.c
@@ -0,0 +1,19 @@
+/* { dg-do compile } */
+#define N 101
+
+typedef unsigned int __uint32_t;
+
+int main(int argc, char **argv)
+{
+  __uint32_t array[N][N][N];
+
+  const unsigned int next = argc == 3 ? 0 : 1;
+
+  for (unsigned i = next; i < N;  i++)
+    array[3][3][i] = array[3][3][i] - 10;
+
+  return array[3][3][argc];
+}
+
+/* { dg-final { scan-tree-dump-times "LOOP VECTORIZED" 1 "vect" } } */
+/* { dg-require-effective-target vect_int } */
-- 
2.12.2


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

* Re: [PATCH] Add test-case (PR tree-optimization/66278).
  2017-04-20  9:28 [PATCH] Add test-case (PR tree-optimization/66278) Martin Liška
@ 2017-04-20 13:26 ` Bin.Cheng
  2017-04-20 22:11   ` Mike Stump
  0 siblings, 1 reply; 4+ messages in thread
From: Bin.Cheng @ 2017-04-20 13:26 UTC (permalink / raw)
  To: Martin Liška; +Cc: GCC Patches

On Thu, Apr 20, 2017 at 9:35 AM, Martin Liška <mliska@suse.cz> wrote:
> Hello.
>
> The patch adds a new test-case for the mentioned PR. Tested on x86_64-linux-gnu
> and ppc64le-linux-gnu.
>
> Ready for trunk or should I postpone it for next stage1?
Though can't approve, I think it's ok since we are in stage 1 now,
also adding test is unlikely to affect RCs.
Thanks,
bin
> Martin

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

* Re: [PATCH] Add test-case (PR tree-optimization/66278).
  2017-04-20 13:26 ` Bin.Cheng
@ 2017-04-20 22:11   ` Mike Stump
  2017-04-21  9:09     ` Martin Liška
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Stump @ 2017-04-20 22:11 UTC (permalink / raw)
  To: Martin Liška; +Cc: Bin.Cheng, GCC Patches

On Apr 20, 2017, at 6:04 AM, Bin.Cheng <amker.cheng@gmail.com> wrote:
> 
> On Thu, Apr 20, 2017 at 9:35 AM, Martin Liška <mliska@suse.cz> wrote:
>> Hello.
>> 
>> The patch adds a new test-case for the mentioned PR. Tested on x86_64-linux-gnu
>> and ppc64le-linux-gnu.
>> 
>> Ready for trunk or should I postpone it for next stage1?
> Though can't approve, I think it's ok since we are in stage 1 now,
> also adding test is unlikely to affect RCs.

Right, since we are in stage1 now, there is little reason to postpone any work the next stage 1 after the current stage 1.  :-)

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

* Re: [PATCH] Add test-case (PR tree-optimization/66278).
  2017-04-20 22:11   ` Mike Stump
@ 2017-04-21  9:09     ` Martin Liška
  0 siblings, 0 replies; 4+ messages in thread
From: Martin Liška @ 2017-04-21  9:09 UTC (permalink / raw)
  To: Mike Stump; +Cc: Bin.Cheng, GCC Patches

On 04/20/2017 11:31 PM, Mike Stump wrote:
> On Apr 20, 2017, at 6:04 AM, Bin.Cheng <amker.cheng@gmail.com> wrote:
>>
>> On Thu, Apr 20, 2017 at 9:35 AM, Martin Liška <mliska@suse.cz> wrote:
>>> Hello.
>>>
>>> The patch adds a new test-case for the mentioned PR. Tested on x86_64-linux-gnu
>>> and ppc64le-linux-gnu.
>>>
>>> Ready for trunk or should I postpone it for next stage1?
>> Though can't approve, I think it's ok since we are in stage 1 now,
>> also adding test is unlikely to affect RCs.
> 
> Right, since we are in stage1 now, there is little reason to postpone any work the next stage 1 after the current stage 1.  :-)
> 

Yep, the test is installed as r247051.

Thanks,
Martin

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

end of thread, other threads:[~2017-04-21  8:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-20  9:28 [PATCH] Add test-case (PR tree-optimization/66278) Martin Liška
2017-04-20 13:26 ` Bin.Cheng
2017-04-20 22:11   ` Mike Stump
2017-04-21  9:09     ` Martin Liška

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