* tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
vect_print_dump_info before fprintf.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102431
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-07-27 Dorit Nuzman <dorit@il.ibm.com>
+
+ PR tree-optimization/23073
+ * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
+ vect_print_dump_info before fprintf.
+
2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimize/22348
+2005-07-27 Dorit Nuzman <dorit@il.ibm.com>
+
+ PR tree-optimization/23073
+ * gcc.dg/vect/nodump-pr23073.c: New test.
+ * gcc.dg/vect/vect.exp: Allow running some tests without dump flags.
+
2005-07-27 Zdenek Dvorak <dvorakz@suse.cz>
PR tree-optimize/22348
--- /dev/null
+/* { dg-do compile } */
+/* { dg-require-effective-target vect_int } */
+
+extern struct {
+ int o[2];
+ int p[2];
+} d;
+
+void C()
+{
+ int i;
+
+ for( i=0; i<2; ++i )
+ {
+ d.o[i] = 0;
+ d.p[i] = 0;
+ }
+ return;
+}
set DEFAULT_VECTCFLAGS ""
# These flags are used for all targets.
-lappend DEFAULT_VECTCFLAGS "-O2" "-ftree-vectorize" \
- "-ftree-vectorizer-verbose=4" "-fdump-tree-vect-stats"
+lappend DEFAULT_VECTCFLAGS "-O2" "-ftree-vectorize"
# If the target system supports vector instructions, the default action
# for a test is 'run', otherwise it's 'compile'. Save current default.
# Initialize `dg'.
dg-init
+# Tests that should be run without generating dump info
+dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/nodump-*.\[cS\]]] \
+ "" $DEFAULT_VECTCFLAGS
+
+lappend DEFAULT_VECTCFLAGS "-ftree-vectorizer-verbose=4" "-fdump-tree-vect-stats"
+
# Main loop.
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/pr*.\[cS\]]] \
"" $DEFAULT_VECTCFLAGS
supportable_dr_alignment = vect_supportable_dr_alignment (dr);
if (!supportable_dr_alignment)
{
- if (DR_IS_READ (dr))
- fprintf (vect_dump,
- "not vectorized: unsupported unaligned load.");
- else
- fprintf (vect_dump,
- "not vectorized: unsupported unaligned store.");
- return false;
+ if (vect_print_dump_info (REPORT_UNVECTORIZED_LOOPS))
+ {
+ if (DR_IS_READ (dr))
+ fprintf (vect_dump,
+ "not vectorized: unsupported unaligned load.");
+ else
+ fprintf (vect_dump,
+ "not vectorized: unsupported unaligned store.");
+ }
+ return false;
}
if (supportable_dr_alignment != dr_aligned
&& (vect_print_dump_info (REPORT_ALIGNMENT)))