public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/65105] New: [i386] XMM registers are not used for 64bit computations on 32bit target
@ 2015-02-18 12:11 enkovich.gnu at gmail dot com
  2015-02-18 12:45 ` [Bug target/65105] " jakub at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: enkovich.gnu at gmail dot com @ 2015-02-18 12:11 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65105
           Summary: [i386] XMM registers are not used for 64bit
                    computations on 32bit target
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: enkovich.gnu at gmail dot com

XMM registers may be used for 64bit operations on 32bit target.  It should make
code faster and free some GPRs.

Here is an example test where GCC doesn't use XMM registers and possible code
with XMM usage:

>cat test.c
long long
test1 (long long x, long long y, long long z)
{
  return ((x | z ) + (y & z) - z);
}
>cat test_xmm.s
        .file "test.c"
        .text
        .globl test1
test1:
        movq      4(%esp), %xmm2
        movq      20(%esp), %xmm1
        movq      12(%esp), %xmm0
        por       %xmm1, %xmm2
        pand      %xmm1, %xmm0
        paddq     %xmm0, %xmm2
        psubq     %xmm1, %xmm2
        movd      %xmm2, %eax
        psrlq     $32, %xmm2
        movd      %xmm2, %edx
        ret


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

end of thread, other threads:[~2022-03-05  8:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-18 12:11 [Bug target/65105] New: [i386] XMM registers are not used for 64bit computations on 32bit target enkovich.gnu at gmail dot com
2015-02-18 12:45 ` [Bug target/65105] " jakub at gcc dot gnu.org
2015-02-18 13:28 ` enkovich.gnu at gmail dot com
2015-09-29  9:33 ` ienkovich at gcc dot gnu.org
2015-09-29  9:37 ` ienkovich at gcc dot gnu.org
2022-03-05  8:52 ` cvs-commit 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).