From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1032 invoked by alias); 20 Jan 2015 14:10:39 -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 961 invoked by uid 48); 20 Jan 2015 14:10:30 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/64689] tree-vectorize generates wrong code with inlined function - minimum working example included Date: Tue, 20 Jan 2015 14:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 4.9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: RESOLVED 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_status cc resolution 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: 2015-01/txt/msg02047.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64689 Markus Trippelsdorf changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED CC| |trippels at gcc dot gnu.org Resolution|--- |INVALID --- Comment #1 from Markus Trippelsdorf --- Compile with gcc-5 and use -fsanitize=undefined: markus@x4 tmp % gcc -fsanitize=undefined test.c -o test -O3 -std=c99 -pedantic -Wall -Wextra -fwrapv -fno-strict-aliasing markus@x4 tmp % ./test test.c:67:21: runtime error: shift exponent -4 is negative test.c:68:21: runtime error: shift exponent -4 is negative