summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-22 12:30:12 +0000
committerirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2007-02-22 12:30:12 +0000
commit3326680b408b3414e67501b400120decdc4ab893 (patch)
treed9253aab39b73d5f69ae734d600a9eb4aeeb1242 /gcc/testsuite/gcc.dg
parente077c1d9907f047874b9e2d9f05a837525234d94 (diff)
downloadgcc-3326680b408b3414e67501b400120decdc4ab893.tar.gz
PR tree-optimization/30843
* tree-vect-transform.c (vect_transform_loop): Remove strided scalar stores only after all the group is vectorized. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122225 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/vect/pr30843.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/vect/pr30843.c b/gcc/testsuite/gcc.dg/vect/pr30843.c
new file mode 100644
index 00000000000..616b618f4d8
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/vect/pr30843.c
@@ -0,0 +1,25 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target vect_long } */
+
+#include <stdarg.h>
+#include "tree-vect.h"
+
+#define N 16
+
+void dacP98FillRGBMap (unsigned char *pBuffer)
+{
+ unsigned long dw, dw1;
+ unsigned long *pdw = (unsigned long *)(pBuffer);
+
+ for( dw = 256, dw1 = 0; dw; dw--, dw1 += 0x01010101)
+ {
+ *pdw++ = dw1;
+ *pdw++ = dw1;
+ *pdw++ = dw1;
+ *pdw++ = dw1;
+ }
+}
+
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_interleave } } } } */
+/* { dg-final { cleanup-tree-dump "vect" } } */
+