[patch] PR19951 fix - new C++ testcase

Dorit Naishlos DORIT@il.ibm.com
Sun Feb 20 23:51:00 GMT 2005





Richard Henderson <rth@redhat.com> wrote on 19/02/2005 19:22:41:
> On Sat, Feb 19, 2005 at 11:30:14AM +0200, Dorit Naishlos wrote:
> > !       if (!(e->flags & EDGE_ABNORMAL))
> ...
> > !      if (vect_print_dump_info (REPORT_BAD_FORM_LOOPS, loop_loc))
> > !        fprintf (vect_dump, "not vectorized: exit-bb has
multiplepreds.");
>
> Ok, but change the error message to "exit edge is abnormal".

ok, done.

> It would also be a good idea to add a test case.
>

sure. ok to add a new subdirectory in g++.dg for vectorizer tests as in the
attached patch?

thanks to Volker for the reduced testcase.

dorit


testsuite/Changelog:

      PR tree-optimization/19951
      * g++.dg/vect: New directory.
      * g++.dg/vect/vect.exp: New file.
      * g++.dg/vect/pr19951.cc: New testcase.
      * g++.dg/dg.exp: Also prune vectorizer tests.

patch:

Index: dg.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/g++.dg/dg.exp,v
retrieving revision 1.10
diff -c -3 -p -r1.10 dg.exp
*** dg.exp  27 Feb 2004 02:01:09 -0000    1.10
--- dg.exp  20 Feb 2005 13:48:05 -0000
*************** set tests [prune $tests $srcdir/$subdir/
*** 39,44 ****
--- 39,45 ----
  set tests [prune $tests $srcdir/$subdir/pch/*]
  set tests [prune $tests $srcdir/$subdir/special/*]
  set tests [prune $tests $srcdir/$subdir/tls/*]
+ set tests [prune $tests $srcdir/$subdir/vect/*]

  # Main loop.
  dg-runtest $tests "" $DEFAULT_CXXFLAGS

(See attached file: vect_cc.tar.gz)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vect_cc.tar.gz
Type: application/octet-stream
Size: 1625 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20050220/51779a7f/attachment.obj>


More information about the Gcc-patches mailing list