public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/53071] Wrong instruction replacement when compiling for xop
Date: Fri, 23 Nov 2012 07:51:00 -0000	[thread overview]
Message-ID: <bug-53071-4-RLQFEgEAal@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-53071-4@http.gcc.gnu.org/bugzilla/>


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

--- Comment #1 from Uros Bizjak <ubizjak at gmail dot com> 2012-11-23 07:49:41 UTC ---
Resulting asm is quite different w/ current mainline:

_Z4testU8__vectorxS_S_:
    vmovdqa    %xmm2, -24(%rsp)
    vpsrlq    $32, %xmm0, %xmm3
    vpmuldq    %xmm1, %xmm0, %xmm2
    vpmuldq    %xmm1, %xmm3, %xmm1
    vpand    .LC0(%rip), %xmm1, %xmm1
    vpsrlq    $32, %xmm2, %xmm2
    vmovd    -24(%rsp), %xmm4
    vpor    %xmm1, %xmm2, %xmm1
    vpaddd    %xmm0, %xmm1, %xmm1
    vpsrad    $31, %xmm0, %xmm0
    vpsrad    %xmm4, %xmm1, %xmm1
    vpsubd    %xmm0, %xmm1, %xmm0
    ret

_Z5test2U8__vectorxS_S_:
    vpxor    %xmm3, %xmm3, %xmm3
    vmovdqa    %xmm2, -24(%rsp)
    vpmuldq    %xmm1, %xmm0, %xmm2
    vpsrlq    $32, %xmm2, %xmm2
    vpmacsdqh    %xmm3, %xmm1, %xmm0, %xmm1
    vpand    .LC0(%rip), %xmm1, %xmm1
    vmovd    -24(%rsp), %xmm4
    vpor    %xmm1, %xmm2, %xmm1
    vpaddd    %xmm0, %xmm1, %xmm1
    vpsrad    $31, %xmm0, %xmm0
    vpsrad    %xmm4, %xmm1, %xmm1
    vpsubd    %xmm0, %xmm1, %xmm0
    ret


  parent reply	other threads:[~2012-11-23  7:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-22 10:07 [Bug c/53071] New: " agner at agner dot org
2012-04-22 10:09 ` [Bug target/53071] " pinskia at gcc dot gnu.org
2012-04-23 10:33 ` rguenth at gcc dot gnu.org
2012-11-23  7:51 ` ubizjak at gmail dot com [this message]
2024-03-17  2:33 ` sjames at gcc dot gnu.org

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=bug-53071-4-RLQFEgEAal@http.gcc.gnu.org/bugzilla/ \
    --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).