From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11643 invoked by alias); 30 Sep 2011 10:44:18 -0000 Received: (qmail 11631 invoked by uid 22791); 30 Sep 2011 10:44:17 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 30 Sep 2011 10:44:04 +0000 From: "mgretton at sourceware dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/50576] New: Recent vector comparison changes cause an ICE Date: Fri, 30 Sep 2011 10:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mgretton at sourceware dot org 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: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" 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: 2011-09/txt/msg02381.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50576 Bug #: 50576 Summary: Recent vector comparison changes cause an ICE Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization AssignedTo: unassigned@gcc.gnu.org ReportedBy: mgretton@sourceware.org CC: artyom.shinkaroff@gmail.com, richard.guenther@gmail.com Host: x86_64-linux-gnu Target: arm-none-eabi Compiling the following (cut down from the gcc.c-torture/execute/vector-compare-1.c test case): /* try.c. */ int main (int argc, char *argv[]) { __attribute__ ((vector_size ((2) * sizeof (double)))) double d0; __attribute__ ((vector_size ((2) * sizeof (double)))) double d1; __attribute__ ((vector_size ((2) * sizeof (long long)))) long long idres; { idres = (d0 > d1); } } /* end of try.c. */ with: arm-none-eabi-gcc -mfpu=neon -mfloat-abi=softfp -mcpu=cortex-a9 -c try.c Gives: try.c: In function 'main': try.c:3:1: error: invalid vector comparison resulting type vector(2) long long int idres = d0 > d1; try.c:3:1: internal compiler error: verify_gimple failed This was tested with trunk r179378. The issue was introduced by this patch (http://gcc.gnu.org/ml/gcc-patches/2011-08/msg01088.html - checked in as r179342), and has not been fixed by Richard Guenther's follow on patch (http://gcc.gnu.org/ml/gcc-patches/2011-09/msg01933.html).