From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11332 invoked by alias); 28 Dec 2012 15:41:21 -0000 Received: (qmail 9340 invoked by uid 48); 28 Dec 2012 15:40:55 -0000 From: "vbyakovl23 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug regression/54390] [AVX] FAIL: gcc.dg/vect/no-tree-sra-bb-slp-pr50730.c Date: Fri, 28 Dec 2012 15:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: regression X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vbyakovl23 at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: CC Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg02393.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D54390 Vladimir Yakovlev changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vbyakovl23 at gmail dot com --- Comment #2 from Vladimir Yakovlev 2012-12= -28 15:40:53 UTC --- Compiler has different behavior on the test gcc.dg/vect/no-tree-sra-bb-slp-pr50730.c with =E2=80=93mavx and =E2=80=93mn= o-avx. With =E2=80=93mno-avx routine get_vectype_for_scalar_type (scalar_type) at tree-vect-data-refs.c:= 3265 returns NULL for scalar_type =E2=80=9Cstruct A=E2=80=9D whereas with =E2=80= =93mavx returns =E2=80=9Cvector(2) __int128 unsigned=E2=80=9D.=20 The test is passed if constant 16 at line 6 of the test is replaced by 32 o= r 64 (better 64 otherwise we will have the problem with avx2 in future). diff --git a/gcc/testsuite/gcc.dg/vect/no-tree-sra-bb-slp-pr50730.c b/gcc/testsuite/gcc.dg/vect/no-tree-sra-bb-slp-pr50730.c index 90dcd84..68e0bf1 100644 --- a/gcc/testsuite/gcc.dg/vect/no-tree-sra-bb-slp-pr50730.c +++ b/gcc/testsuite/gcc.dg/vect/no-tree-sra-bb-slp-pr50730.c @@ -3,7 +3,7 @@ typedef __complex__ float Value; typedef struct { - Value a[16 / sizeof (Value)]; + Value a[64 / sizeof (Value)]; } A; A sum(A a,A b)