public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/115026] New: msp430-elf fails gcc.dg/pr66444.c with prange enabled
@ 2024-05-10  9:42 aldyh at gcc dot gnu.org
  2024-05-10  9:43 ` [Bug tree-optimization/115026] " aldyh at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: aldyh at gcc dot gnu.org @ 2024-05-10  9:42 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115026

            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 on a
cross compiler.

Copied below is his report:

And on msp430-elf we're getting a codegen correctness issue on msp430-elf. 
gcc.dg/pr66444.c fails in the simulator.  The -O2 code difference looks like:

*** 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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-05-10 20:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-10  9:42 [Bug tree-optimization/115026] New: msp430-elf fails gcc.dg/pr66444.c with prange enabled aldyh at gcc dot gnu.org
2024-05-10  9:43 ` [Bug tree-optimization/115026] " aldyh at gcc dot gnu.org
2024-05-10 10:36 ` aldyh at gcc dot gnu.org
2024-05-10 10:37 ` aldyh at gcc dot gnu.org
2024-05-10 10:38 ` aldyh at gcc dot gnu.org
2024-05-10 12:41 ` [Bug tree-optimization/115026] [15 Regression] " rguenth at gcc dot gnu.org
2024-05-10 14:57 ` cvs-commit at gcc dot gnu.org
2024-05-10 15:09 ` aldyh at gcc dot gnu.org
2024-05-10 18:01 ` law at gcc dot gnu.org
2024-05-10 20:57 ` aldyh at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).