From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18639 invoked by alias); 6 Aug 2013 12:17:41 -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 18533 invoked by uid 48); 6 Aug 2013 12:17:35 -0000 From: "zajec5 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/58092] BEQ (Branch on equal) jumps to wrong address (executes conditional code!) Date: Tue, 06 Aug 2013 12:17:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.6.4 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zajec5 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-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg00355.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58092 --- Comment #2 from Rafa=C5=82 Mi=C5=82ecki --- ### Decompiled object ### 00000000 : 0: 24020002 li v0,2 4: 24030004 li v1,4 8: aca20000 sw v0,0(a1) c: 10830002 beq a0,v1,18 10: 24020008 li v0,8 14: 8ca20040 lw v0,64(a1) 18: aca20040 sw v0,64(a1) 1c: 03e00008 jr ra 20: 00000000 nop ### Decompiled with my explanations ### 0: 24020002 li v0,2 4: 24030004 li v1,4 8: aca20000 sw v0,0(a1) v0 (0x2) is stored in a1 unconditionally - this is fine c: 10830002 beq a0,v1,18 10: 24020008 li v0,8 a0 (rev argument) is compared with v1 (0x4) - if equal CPU jumps to 0x18 14: 8ca20040 lw v0,64(a1) the above line is executed to rev !=3D 4 18: aca20040 sw v0,64(a1) the above lins (store v0 in a1+64) is always executed! it should be executed for rev=3D=3D4 only v0 is 0x8 by default, or some different value for rev !=3D 4 1c: 03e00008 jr ra 20: 00000000 nop >>From gcc-bugs-return-427432-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Aug 06 12:27:57 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 31951 invoked by alias); 6 Aug 2013 12:27:56 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 31806 invoked by uid 48); 6 Aug 2013 12:27:50 -0000 From: "danglin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58014] vshuf-v2si.C fails at -O3 on hppa64 Date: Tue, 06 Aug 2013 12:27:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: danglin 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: 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: 2013-08/txt/msg00356.txt.bz2 Content-length: 309 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58014 --- Comment #2 from John David Anglin --- Introduced in r197845: 2013-04-12 Richard Biener * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should not be considered a gimple constant.