diff mbox

[testsuite] Remove dg-do run from gcc.dg/vect/pr48377.c

Message ID yddei4zpo30.fsf@manam.CeBiTec.Uni-Bielefeld.DE
State New
Headers show

Commit Message

Rainer Orth April 18, 2011, 3:37 p.m. UTC
The gcc.dg/vect/pr48377.c execution test is currently failing on Solaris
8/x86 and Solaris/SPARC.  On Solaris 8/x86, this happens because the
test is compiled with -msse2, but the OS cannot execute SSE2 insns.
This is usually taken care of by vect.exp, which only runs the tests as
compile tests if the platform supports vector insns.  An unconditional
dg-do run defeats this test, so removing it fixes the problem.

Tested with the appropriate runtest invocation on i386-pc-solaris2.8
(compile only) and i386-pc-solaris2.10 (run).

Installed on mainline.

The failure on SPARC remains, though.  The test SEGVs here:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 1)]
0x00010a44 in foo (s=0x20d81 "", len=26)
    at /vol/gcc/src/svn/trunk/gcc/testsuite/gcc.dg/vect/pr48377.c:12
12          hash += *p++;
(gdb) p p
$1 = (const U *) 0x20d81

	Rainer


2011-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* gcc.dg/vect/pr48377.c: Remove dg-do run.
diff mbox

Patch

Index: gcc/testsuite/gcc.dg/vect/pr48377.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/pr48377.c	(revision 172652)
+++ gcc/testsuite/gcc.dg/vect/pr48377.c	(working copy)
@@ -1,5 +1,4 @@ 
 /* PR tree-optimization/48377 */
-/* { dg-do run } */
 
 typedef unsigned int U __attribute__((__aligned__ (1), __may_alias__));