public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/112568] New: [14 Regression] Miscompilation of radeonsi (mesa) with -march=raptorlake (-mavx) since r14-5355-g3cd3a09b3f91a1
@ 2023-11-16 12:51 kocelfc at tutanota dot com
  2023-11-16 12:51 ` [Bug target/112568] " kocelfc at tutanota dot com
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: kocelfc at tutanota dot com @ 2023-11-16 12:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112568
           Summary: [14 Regression] Miscompilation of radeonsi (mesa) with
                    -march=raptorlake (-mavx) since
                    r14-5355-g3cd3a09b3f91a1
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kocelfc at tutanota dot com
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

Created attachment 56602
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56602&action=edit
objdump -d -Mintel of function at trunk

Since r14-5355-g3cd3a09b3f91a1, there is a bug causing gcc to miscompile
radeonsi when using -march=raptorlake, which leads to segfaults. I tried making
a testcase but I've got no idea where to even start looking.

The function appears in the preprocessed file as 
static uint16_t
tc_call_flush(struct pipe_context *pipe, void *call, uint64_t *last)
{
   struct tc_flush_call *p = ((struct tc_flush_call *)to_call_check((void
*)(call), ( ((sizeof(struct tc_flush_call)) + (8) - 1) / (8) )));
   struct pipe_screen *screen = pipe->screen;

   pipe->flush(pipe, p->fence ? &p->fence : 
# 3619 "../src/gallium/auxiliary/util/u_threaded_context.c" 3 4
                                           ((void *)0)
# 3619 "../src/gallium/auxiliary/util/u_threaded_context.c"
                                               , p->flags);
   screen->fence_reference(screen, &p->fence, 
# 3620 "../src/gallium/auxiliary/util/u_threaded_context.c" 3 4
                                             ((void *)0)
# 3620 "../src/gallium/auxiliary/util/u_threaded_context.c"
                                                 );

   tc_flush_queries(p->tc);

   return ( ((sizeof(struct tc_flush_call)) + (8) - 1) / (8) );
}

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

end of thread, other threads:[~2023-11-19  7:21 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-16 12:51 [Bug target/112568] New: [14 Regression] Miscompilation of radeonsi (mesa) with -march=raptorlake (-mavx) since r14-5355-g3cd3a09b3f91a1 kocelfc at tutanota dot com
2023-11-16 12:51 ` [Bug target/112568] " kocelfc at tutanota dot com
2023-11-16 12:52 ` kocelfc at tutanota dot com
2023-11-16 12:53 ` kocelfc at tutanota dot com
2023-11-16 14:11 ` sjames at gcc dot gnu.org
2023-11-16 20:10 ` [Bug rtl-optimization/112568] " pinskia at gcc dot gnu.org
2023-11-17  5:22 ` pinskia at gcc dot gnu.org
2023-11-17  5:28 ` pinskia at gcc dot gnu.org
2023-11-17  7:22 ` kocelfc at tutanota dot com
2023-11-17  7:25 ` pinskia at gcc dot gnu.org
2023-11-17  8:04 ` kocelfc at tutanota dot com
2023-11-17  8:05 ` kocelfc at tutanota dot com
2023-11-17  8:20 ` kocelfc at tutanota dot com
2023-11-17  9:08 ` kocelfc at tutanota dot com
2023-11-17  9:10 ` kocelfc at tutanota dot com
2023-11-17  9:14 ` kocelfc at tutanota dot com
2023-11-17  9:15 ` kocelfc at tutanota dot com
2023-11-18 21:01 ` pinskia at gcc dot gnu.org
2023-11-18 21:28 ` pinskia at gcc dot gnu.org
2023-11-19  7:00 ` kocelfc at tutanota dot com
2023-11-19  7:21 ` pinskia 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).