public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH PR57206]Add test since the PR is fixed by patch to PR48052
@ 2016-05-05 16:24 Bin Cheng
  0 siblings, 0 replies; only message in thread
From: Bin Cheng @ 2016-05-05 16:24 UTC (permalink / raw)
  To: gcc-patches; +Cc: nd

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

Hi,
This patch adds a test for PR57206.  The issue itself is long fixed by patch to PR48052.

Test on x86_64.  It's an obvious change, applied on trunk.

Thanks
bin

gcc/testsuite/ChangeLog
2016-05-04  Bin Cheng  <bin.cheng@arm.com>

	PR tree-optimization/57206
	* gcc.dg/vect/pr57206.c: New test.

[-- Attachment #2: pr57206.txt --]
[-- Type: text/plain, Size: 464 bytes --]

diff --git a/gcc/testsuite/gcc.dg/vect/pr57206.c b/gcc/testsuite/gcc.dg/vect/pr57206.c
new file mode 100644
index 0000000..009688e
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/vect/pr57206.c
@@ -0,0 +1,11 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target vect_float } */
+
+void bad0(float * d, unsigned int n)
+{
+  unsigned int i;
+  for (i=n; i>0; --i) 
+    d[n-i] = 0.0;
+}
+
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-05-05 16:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-05 16:24 [PATCH PR57206]Add test since the PR is fixed by patch to PR48052 Bin Cheng

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