From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8216 invoked by alias); 21 Nov 2014 17:03:40 -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 8164 invoked by uid 48); 21 Nov 2014 17:03:36 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/63848] [5 Regression] FAIL: c-c++-common/torture/builtin-arith-overflow-17.c -O0 execution test Date: Fri, 21 Nov 2014 17:03:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on assigned_to everconfirmed attachments.created Message-ID: In-Reply-To: References: 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: 2014-11/txt/msg02455.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63848 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2014-11-21 Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #4 from Jakub Jelinek --- Created attachment 34069 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34069&action=edit gcc5-pr63848.patch Untested fix. Apparently on some targets for some modes emit_cmp_and_jump_insns silently generates wrong code, so one needs to use do_compare_rtx_and_jump which wraps that and handles the wider modes. Unfortunately the two functions have different order of arguments (and do_compare_rtx_and_jump one additional one). built-arith-overflow* still passes on x86_64-linux and i686-linux with this, haven't bootstrapped/regtested it yet (but, on these targets it doesn't make much difference, as there are even TImode comparison patterns for -m64 and DImode for -m32).