From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E31D1384CBA1; Fri, 10 May 2024 09:42:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E31D1384CBA1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1715334164; bh=vGtfv7jmV0sGDnjoOaG08BYOPOdqfcN91t/52iWCGCQ=; h=From:To:Subject:Date:From; b=NO/4Phh1R9nOGJpFY+5UYuQtyRItm2tBKdj/uHFCfSobjWkiQsOwBMMrUUV73XxWv kt7RWQRewHmBl7QLpDyavbHGOAvtVcVDY624ZFp42by5baWOxnjjgHOAZ5fpD8ajAy Smk+uqSHMR6uSCZtnCabMVE2pqHGW60Ttw/A6nMw= From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/115026] New: msp430-elf fails gcc.dg/pr66444.c with prange enabled Date: Fri, 10 May 2024 09:42:44 +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-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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 bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115026 Bug ID: 115026 Summary: msp430-elf fails gcc.dg/pr66444.c with prange enabled Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: aldyh at gcc dot gnu.org Target Milestone: --- This is a separate issue reported by Jeff in PR115009. I have reproduced o= n a cross compiler. Copied below is his report: And on msp430-elf we're getting a codegen correctness issue on msp430-elf.= =20 gcc.dg/pr66444.c fails in the simulator. The -O2 code difference looks lik= e: *** good.s Thu May 9 20:41:37 2024 --- bad.s Thu May 9 20:41:44 2024 *************** baz: *** 73,81 **** ; saved regs:(none) ; start of prologue ; end of prologue ! MOV.W #2062, R12 CALL #fn1 ! MOV.W #2062, R12 CALL #fn2 MOV.B #0, R12 ; start of epilogue --- 73,81 ---- ; saved regs:(none) ; start of prologue ; end of prologue ! MOV.B #0, R12 CALL #fn1 ! MOV.B #0, R12 CALL #fn2 MOV.B #0, R12 ; start of epilogue We're mucking up the pointer that baz() passes down to fn1 and fn2 I think.=