From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26528 invoked by alias); 1 Feb 2015 01:37:24 -0000 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 Received: (qmail 26470 invoked by uid 48); 1 Feb 2015 01:37:20 -0000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/64893] New: [5 Regression] ICE while doing a bootstrap with the latest compiler Date: Sun, 01 Feb 2015 01:37:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: build, ice-on-valid-code X-Bugzilla-Severity: blocker X-Bugzilla-Who: pinskia at gcc dot gnu.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-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cf_gcctarget Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-02/txt/msg00002.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64893 Bug ID: 64893 Summary: [5 Regression] ICE while doing a bootstrap with the latest compiler Product: gcc Version: 5.0 Status: UNCONFIRMED Keywords: build, ice-on-valid-code Severity: blocker Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Target: aarch64* Compile the following with -O0: typedef __Uint32x2_t uint32x2_t; __extension__ static __inline unsigned __attribute__ ((__always_inline__))vget_lane_u32 (uint32x2_t __a, const int __b) { return __extension__ ({ __builtin_aarch64_im_lane_boundsi ((sizeof (__a) / sizeof (__a[0])), __b); __a[__b]; }); } int search_line_fast (uint32x2_t t) { return vget_lane_u32 (t, 0); } -- CUT --- With the C front-end, it works correctly but with the C++ front-end it fails due to (int) (8 / 4) not being folded into just 2.