public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/107063] New: [X86_64 codegen] Using inc eax instead of inc dword ptr
@ 2022-09-27 23:30 hiraditya at msn dot com
2022-09-27 23:37 ` [Bug rtl-optimization/107063] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: hiraditya at msn dot com @ 2022-09-27 23:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107063
Bug ID: 107063
Summary: [X86_64 codegen] Using inc eax instead of inc dword
ptr
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: hiraditya at msn dot com
Target Milestone: ---
int volatile gv = 0;
void foo() {
++gv;
}
$ gcc -Os
foo():
mov eax, DWORD PTR gv[rip]
inc eax
mov DWORD PTR gv[rip], eax
ret
gv:
.zero 4
$ clang -Os
foo(): # @foo()
inc dword ptr [rip + gv]
ret
gv:
.long 0
https://godbolt.org/z/vzq4jr5vj
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug rtl-optimization/107063] [X86_64 codegen] Using inc eax instead of inc dword ptr
2022-09-27 23:30 [Bug rtl-optimization/107063] New: [X86_64 codegen] Using inc eax instead of inc dword ptr hiraditya at msn dot com
@ 2022-09-27 23:37 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-09-27 23:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107063
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 50677.
*** This bug has been marked as a duplicate of bug 50677 ***
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-27 23:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-27 23:30 [Bug rtl-optimization/107063] New: [X86_64 codegen] Using inc eax instead of inc dword ptr hiraditya at msn dot com
2022-09-27 23:37 ` [Bug rtl-optimization/107063] " 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).