Patchwork [testsuite] : Fix UNRESOLVED: gcc.dg/vect/vec-scal-opt*.c scan-tree-dump-times veclower

login
register
mail settings
Submitter Uros Bizjak
Date Oct. 5, 2011, 7:43 p.m.
Message ID <CAFULd4ZRROyJ1PDthWGc+CoSb+1DbJJWASADmM5m-VdRY+6FqQ@mail.gmail.com>
Download mbox | patch
Permalink /patch/117909/
State New
Headers show

Comments

Uros Bizjak - Oct. 5, 2011, 7:43 p.m.
On Wed, Oct 5, 2011 at 7:42 PM, Uros Bizjak <ubizjak@gmail.com> wrote:

> 2011-10-05  Uros Bizjak  <ubizjak@gmail.com>
>
>        * gcc.dg/vect/vect.exp (VEC_CFLAGS): Move initialization after
>        DEFAULT_VECTFLAGS initialization.
>

Actually, these testcases need a bit more surgery...

2011-10-05  Uros Bizjak  <ubizjak@gmail.com>

	* gcc.dg/vect/vect.exp (VEC_CFLAGS): Move initialization after
	DEFAULT_VECTFLAGS initialization.  Append "-fdump-tree-veclower2".
	* gcc.dg/vect/vec-scal-opt.c: Scan and cleanup veclower2 tree dump.
	* gcc.dg/vect/vec-scal-opt1.c: Ditto.
	* gcc.dg/vect/vec-scal-opt2.c: Ditto.

Attached additional patch tested on x86_64-pc-linux-gnu {,-m32},
committed to mainline SVN.

Uros.

Patch

Index: gcc.dg/vect/vec-scal-opt1.c
===================================================================
--- gcc.dg/vect/vec-scal-opt1.c	(revision 179565)
+++ gcc.dg/vect/vec-scal-opt1.c	(working copy)
@@ -17,5 +17,5 @@ 
    return vidx(short, r1, 0);
 }
 
-/* { dg-final { scan-tree-dump-times ">> 2" 1 "veclower" { target vect_shift_scalar } } } */
-/* { dg-final { cleanup-tree-dump "veclower" } } */
+/* { dg-final { scan-tree-dump-times ">> 2" 1 "veclower2" { target vect_shift_scalar } } } */
+/* { dg-final { cleanup-tree-dump "veclower2" } } */
Index: gcc.dg/vect/vec-scal-opt2.c
===================================================================
--- gcc.dg/vect/vec-scal-opt2.c	(revision 179565)
+++ gcc.dg/vect/vec-scal-opt2.c	(working copy)
@@ -16,5 +16,5 @@ 
    return vidx(short, r1, 0);
 }
 
-/* { dg-final { scan-tree-dump-times ">> 2" 1 "veclower" { target vect_shift_scalar } } } */
-/* { dg-final { cleanup-tree-dump "veclower" } } */
+/* { dg-final { scan-tree-dump-times ">> 2" 1 "veclower2" { target vect_shift_scalar } } } */
+/* { dg-final { cleanup-tree-dump "veclower2" } } */
Index: gcc.dg/vect/vec-scal-opt.c
===================================================================
--- gcc.dg/vect/vec-scal-opt.c	(revision 179565)
+++ gcc.dg/vect/vec-scal-opt.c	(working copy)
@@ -19,5 +19,5 @@ 
    return vidx(short, r1, 0);
 }
 
-/* { dg-final { scan-tree-dump-times ">> k.\[0-9_\]*" 1 "veclower" { target vect_shift_scalar } } } */
-/* { dg-final { cleanup-tree-dump "veclower" } } */
+/* { dg-final { scan-tree-dump-times ">> k.\[0-9_\]*" 1 "veclower2" { target vect_shift_scalar } } } */
+/* { dg-final { cleanup-tree-dump "veclower2" } } */
Index: gcc.dg/vect/vect.exp
===================================================================
--- gcc.dg/vect/vect.exp	(revision 179565)
+++ gcc.dg/vect/vect.exp	(working copy)
@@ -64,8 +64,8 @@ 
 dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/nodump-*.\[cS\]]]  \
 	"" $DEFAULT_VECTCFLAGS
 
-# "-O -fdump-tree-veclower"
-lappend VEC_FLAGS "-O" "-fdump-tree-veclower"
+# "-O -fdump-tree-veclower2"
+lappend VEC_FLAGS "-O" "-fdump-tree-veclower2"
 dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/vec-scal-*.\[cS\]]]  \
         "" $VEC_FLAGS