public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/82883] eax register unnecessary consumed
[not found] <bug-82883-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-15 10:55 ` pinskia at gcc dot gnu.org
2021-08-15 13:43 ` hjl.tools at gmail dot com
1 sibling, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-15 10:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82883
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
With -mtune=intel -O3, we produce:
movl $1819043144, (%rdi)
movw $8303, 4(%rdi)
ret
So it looks like a target tuning issue.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug target/82883] eax register unnecessary consumed
[not found] <bug-82883-4@http.gcc.gnu.org/bugzilla/>
2021-08-15 10:55 ` [Bug target/82883] eax register unnecessary consumed pinskia at gcc dot gnu.org
@ 2021-08-15 13:43 ` hjl.tools at gmail dot com
1 sibling, 0 replies; 2+ messages in thread
From: hjl.tools at gmail dot com @ 2021-08-15 13:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82883
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |INVALID
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
It is done on purpose by r0-116075:
[hjl@gnu-cfl-2 tmp]$ gcc -S -O2 x.c -mtune-ctrl=^lcp_stall
[hjl@gnu-cfl-2 tmp]$ cat x.s
.file "x.c"
.text
.p2align 4
.globl foo
.type foo, @function
foo:
.LFB0:
.cfi_startproc
movl $1819043144, (%rdi)
movw $8303, 4(%rdi)
ret
.cfi_endproc
.LFE0:
.size foo, .-foo
.ident "GCC: (GNU) 11.2.1 20210728 (Red Hat 11.2.1-1)"
.section .note.GNU-stack,"",@progbits
[hjl@gnu-cfl-2 tmp]$
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-15 13:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-82883-4@http.gcc.gnu.org/bugzilla/>
2021-08-15 10:55 ` [Bug target/82883] eax register unnecessary consumed pinskia at gcc dot gnu.org
2021-08-15 13:43 ` hjl.tools at gmail dot com
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).