public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug rtl-optimization/78085] extra sign extend if used to store in 32bit and return 64bit and the upper bits are known to be zeroed. [not found] <bug-78085-4@http.gcc.gnu.org/bugzilla/> @ 2021-08-07 5:33 ` pinskia at gcc dot gnu.org 2022-09-26 6:19 ` crazylht at gmail dot com ` (2 subsequent siblings) 3 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-08-07 5:33 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78085 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|target |rtl-optimization Last reconfirmed| |2021-08-07 Ever confirmed|0 |1 Summary|Unexpected cltq instruction |extra sign extend if used |on Linux x86-64 for |to store in 32bit and |conversion of positive int |return 64bit and the upper |to long |bits are known to be | |zeroed. Status|UNCONFIRMED |NEW Keywords| |missed-optimization Severity|normal |enhancement --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/78085] extra sign extend if used to store in 32bit and return 64bit and the upper bits are known to be zeroed. [not found] <bug-78085-4@http.gcc.gnu.org/bugzilla/> 2021-08-07 5:33 ` [Bug rtl-optimization/78085] extra sign extend if used to store in 32bit and return 64bit and the upper bits are known to be zeroed pinskia at gcc dot gnu.org @ 2022-09-26 6:19 ` crazylht at gmail dot com 2022-09-26 16:29 ` pinskia at gcc dot gnu.org 2022-09-26 16:33 ` pinskia at gcc dot gnu.org 3 siblings, 0 replies; 4+ messages in thread From: crazylht at gmail dot com @ 2022-09-26 6:19 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78085 --- Comment #2 from Hongtao.liu <crazylht at gmail dot com> --- It looks like this issue has been fixed in GCC13 trunk,cltq is gone for the first and the last function, but i don't know which exact commit fixed it. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/78085] extra sign extend if used to store in 32bit and return 64bit and the upper bits are known to be zeroed. [not found] <bug-78085-4@http.gcc.gnu.org/bugzilla/> 2021-08-07 5:33 ` [Bug rtl-optimization/78085] extra sign extend if used to store in 32bit and return 64bit and the upper bits are known to be zeroed pinskia at gcc dot gnu.org 2022-09-26 6:19 ` crazylht at gmail dot com @ 2022-09-26 16:29 ` pinskia at gcc dot gnu.org 2022-09-26 16:33 ` pinskia at gcc dot gnu.org 3 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2022-09-26 16:29 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78085 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- From REE: Trying to eliminate extension: (insn 9 8 15 2 (set (reg:DI 0 ax [orig:88 _3 ] [88]) (sign_extend:DI (reg:SI 0 ax [orig:84 _3 ] [84]))) "a.c":6:9 160 {*extendsidi2_rex64} (nil)) Tentatively merged extension with definition : (insn 7 6 8 2 (parallel [ (set (reg:DI 0 ax) (zero_extend:DI (and:SI (reg:SI 0 ax [86]) (const_int 3 [0x3])))) (clobber (reg:CC 17 flags)) ]) "a.c":5:4 -1 (nil)) deferring rescan insn with uid = 7. All merges were successful. Eliminated the extension. deferring deletion of insn with uid = 9. Elimination opportunities = 1 realized = 1 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug rtl-optimization/78085] extra sign extend if used to store in 32bit and return 64bit and the upper bits are known to be zeroed. [not found] <bug-78085-4@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 2022-09-26 16:29 ` pinskia at gcc dot gnu.org @ 2022-09-26 16:33 ` pinskia at gcc dot gnu.org 3 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2022-09-26 16:33 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78085 --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Most likely r13-1942-gc23a9c87cc62bd . ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-09-26 16:33 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-78085-4@http.gcc.gnu.org/bugzilla/> 2021-08-07 5:33 ` [Bug rtl-optimization/78085] extra sign extend if used to store in 32bit and return 64bit and the upper bits are known to be zeroed pinskia at gcc dot gnu.org 2022-09-26 6:19 ` crazylht at gmail dot com 2022-09-26 16:29 ` pinskia at gcc dot gnu.org 2022-09-26 16:33 ` 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).