public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/113395] New: RTL expansion drops MEM_EXPR
@ 2024-01-15 10:49 rguenth at gcc dot gnu.org
  2024-01-15 11:54 ` [Bug middle-end/113395] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-01-15 10:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113395
           Summary: RTL expansion drops MEM_EXPR
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rguenth at gcc dot gnu.org
  Target Milestone: ---

struct S {
  signed m : 7;
  signed e : 2;
} g;

void
k()
{
  g.e ^= 1;
}

expands as

(insn 8 7 0 (parallel [
            (set (mem/j/c:HI (reg/f:DI 100) [0 +0 S2 A32])
                (xor:HI (mem/j/c:HI (reg/f:DI 100) [0 +0 S2 A32])
                    (reg:HI 101)))
            (clobber (reg:CC 17 flags))
        ]) "t.c":9:7 -1
     (nil))

similar g.e = 1;

(insn 9 8 10 (set (reg:HI 102)
        (mem/j/c:HI (reg/f:DI 101) [0 +0 S2 A32])) "t.c":9:7 -1
     (nil))
...
(insn 12 11 0 (set (mem/j/c:HI (reg/f:DI 101) [0 +0 S2 A32])
        (reg:HI 104)) "t.c":9:7 -1
     (nil))

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

end of thread, other threads:[~2024-01-16  9:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-15 10:49 [Bug middle-end/113395] New: RTL expansion drops MEM_EXPR rguenth at gcc dot gnu.org
2024-01-15 11:54 ` [Bug middle-end/113395] " rguenth at gcc dot gnu.org
2024-01-15 11:57 ` [Bug middle-end/113395] RTL expansion of bitfield accesses " rguenth at gcc dot gnu.org
2024-01-15 22:55 ` pinskia at gcc dot gnu.org
2024-01-15 22:58 ` pinskia at gcc dot gnu.org
2024-01-16  9:27 ` rguenth 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).