public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/67325] New: Optimize shift (aka subreg) of load to simple load
@ 2015-08-23  6:10 glisse at gcc dot gnu.org
  2015-08-23  6:14 ` [Bug rtl-optimization/67325] " pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: glisse at gcc dot gnu.org @ 2015-08-23  6:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67325
           Summary: Optimize shift (aka subreg) of load to simple load
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glisse at gcc dot gnu.org
  Target Milestone: ---
            Target: x86_64-linux-gnu

int f(long*l){
  return *l>>32;
}

        movq    (%rdi), %rax
        sarq    $32, %rax

While it seems to me that a single movl would do.

Classified as target (x86_64) for now, but it is more likely tree-optimization
or rtl-optimization.


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

end of thread, other threads:[~2024-05-28 23:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-23  6:10 [Bug target/67325] New: Optimize shift (aka subreg) of load to simple load glisse at gcc dot gnu.org
2015-08-23  6:14 ` [Bug rtl-optimization/67325] " pinskia at gcc dot gnu.org
2015-08-23  6:41 ` glisse at gcc dot gnu.org
2015-08-23  6:59 ` trippels at gcc dot gnu.org
2015-08-23  7:08 ` [Bug target/67325] " pinskia at gcc dot gnu.org
2015-08-23  7:40 ` glisse at gcc dot gnu.org
2024-05-28 22:59 ` cvs-commit at gcc dot gnu.org
2024-05-28 23:00 ` liuhongt 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).