public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dean at arctic dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/34256] mmx and movd/movq on x86_64
Date: Wed, 28 Nov 2007 01:44:00 -0000	[thread overview]
Message-ID: <20071128014355.17276.qmail@sourceware.org> (raw)
In-Reply-To: <bug-34256-5748@http.gcc.gnu.org/bugzilla/>



------- Comment #1 from dean at arctic dot org  2007-11-28 01:43 -------
this appears to be a regression between gcc 4.1.x and 4.2.x.  i had to switch
the intrinsic to _mm_cvtsi64_si64x but it otherwise generates the same code on
4.3.x...

ubuntu 4.1.2:

% objdump -dr movq.o

movq.o:     file format elf64-x86-64

Disassembly of section .text:

0000000000000000 <foo>:
   0:   0f 6f 05 00 00 00 00    movq   0(%rip),%mm0        # 7 <foo+0x7>
                        3: R_X86_64_PC32        x+0xfffffffffffffffc
   7:   0f fe 05 00 00 00 00    paddd  0(%rip),%mm0        # e <foo+0xe>
                        a: R_X86_64_PC32        y+0xfffffffffffffffc
   e:   48 0f 7e c0             movd   %mm0,%rax
  12:   c3                      retq

and 4.2.1:

movq.o:     file format elf64-x86-64

Disassembly of section .text:

0000000000000000 <foo>:
   0:   48 8b 05 00 00 00 00    mov    0x0(%rip),%rax        # 7 <foo+0x7>
                        3: R_X86_64_PC32        x+0xfffffffffffffffc
   7:   48 89 44 24 f8          mov    %rax,-0x8(%rsp)
   c:   0f 6f 44 24 f8          movq   -0x8(%rsp),%mm0
  11:   0f fe 05 00 00 00 00    paddd  0x0(%rip),%mm0        # 18 <foo+0x18>
                        14: R_X86_64_PC32       y+0xfffffffffffffffc
  18:   0f 7f 44 24 f8          movq   %mm0,-0x8(%rsp)
  1d:   48 8b 44 24 f8          mov    -0x8(%rsp),%rax
  22:   c3                      retq


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34256


  reply	other threads:[~2007-11-28  1:44 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-28  1:15 [Bug target/34256] New: " dean at arctic dot org
2007-11-28  1:44 ` dean at arctic dot org [this message]
2007-11-28 12:45 ` [Bug target/34256] " ubizjak at gmail dot com
2007-11-28 12:46 ` ubizjak at gmail dot com
2007-12-10  8:40 ` ubizjak at gmail dot com
2008-02-23 15:25 ` uros at gcc dot gnu dot org
2008-11-16  0:09 ` howarth at nitro dot med dot uc dot edu
2008-11-16  0:10 ` howarth at nitro dot med dot uc dot edu
2008-11-17  0:36 ` howarth at nitro dot med dot uc dot edu
2008-11-17  0:39 ` howarth at nitro dot med dot uc dot edu
2008-12-13 18:39 ` howarth at nitro dot med dot uc dot edu
2008-12-13 19:30 ` ubizjak at gmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071128014355.17276.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).