Bug 48287 - gcc.dg/vect/vect-cselim-1.c FAILs on SPARC
Summary: gcc.dg/vect/vect-cselim-1.c FAILs on SPARC
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.7.0
: P3 normal
Target Milestone: ---
Assignee: irar
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-25 14:06 UTC by Rainer Orth
Modified: 2011-03-25 18:05 UTC (History)
3 users (show)

See Also:
Host: sparc-sun-solaris2.*
Target: sparc-sun-solaris2.*
Build: sparc-sun-solaris2.*
Known to work:
Known to fail:
Last reconfirmed: 2011-03-25 15:42:06


Attachments
-fdump-tree-vect-details output (3.93 KB, application/x-bzip2)
2011-03-25 14:06 UTC, Rainer Orth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rainer Orth 2011-03-25 14:06:24 UTC
Created attachment 23773 [details]
-fdump-tree-vect-details output

The new gcc.dg/vect/vect-cselim-1.c FAILs on Solaris 2/SPARC (both 32 and 64-bit
ABIs):

FAIL: gcc.dg/vect/vect-cselim-1.c scan-tree-dump-times vect "vectorized 1 loops" 1

I'm attaching the dump for reference.
Comment 1 Ira Rosen 2011-03-25 15:42:06 UTC
It fails because of misaligned load, so

Index: vect-cselim-1.c
===================================================================
--- vect-cselim-1.c     (revision 171381)
+++ vect-cselim-1.c     (working copy)
@@ -82,5 +82,5 @@
   return 0;
 }

-/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect"  } } */
+/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect"  { xfail vect_no_align } } } */
 /* { dg-final { cleanup-tree-dump "vect" } } */

is supposed to fix this.

Thanks for attaching the dump.

Ira
Comment 2 ro@CeBiTec.Uni-Bielefeld.DE 2011-03-25 15:59:42 UTC
> --- Comment #1 from Ira Rosen <irar at il dot ibm.com> 2011-03-25 15:42:06 UTC ---
> It fails because of misaligned load, so
>
> Index: vect-cselim-1.c
> ===================================================================
> --- vect-cselim-1.c     (revision 171381)
> +++ vect-cselim-1.c     (working copy)
> @@ -82,5 +82,5 @@
>    return 0;
>  }
>
> -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect"  } } */
> +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect"  { xfail
> vect_no_align } } } */
>  /* { dg-final { cleanup-tree-dump "vect" } } */
>
> is supposed to fix this.

It does indeed, tested with runtest on sparc-sun-solaris2.10.

Thanks.
	Rainer
Comment 3 irar 2011-03-25 16:08:49 UTC
Author: irar
Date: Fri Mar 25 16:08:40 2011
New Revision: 171457

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=171457
Log:

        PR target/48287
        * gcc.dg/vect/vect-cselim-1.c: Fail for vect_no_align.


Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/vect/vect-cselim-1.c
Comment 4 Ira Rosen 2011-03-25 18:05:08 UTC
Fixed.