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/56114] x86_64-linux-gnu-gcc generate wrong asm instruction MOVABS for intel syntax
Date: Sat, 26 Jan 2013 15:08:00 -0000	[thread overview]
Message-ID: <bug-56114-4-pEc4qc1V5z@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-56114-4@http.gcc.gnu.org/bugzilla/>


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

--- Comment #4 from Uros Bizjak <ubizjak at gmail dot com> 2013-01-26 15:08:35 UTC ---
Well, following patch won't break then:

--cut here--
Index: i386.md
===================================================================
--- i386.md     (revision 195486)
+++ i386.md     (working copy)
@@ -2308,7 +2308,7 @@
        (match_operand:SWI1248x 1 "nonmemory_operand" "a,r<i>"))]
   "TARGET_LP64 && ix86_check_movabs (insn, 0)"
   "@
-   movabs{<imodesuffix>}\t{%1, %P0|%P0, %1}
+   movabs{<imodesuffix>}\t{%1, %P0|[%P0], %1}
    mov{<imodesuffix>}\t{%1, %a0|%a0, %1}"
   [(set_attr "type" "imov")
    (set_attr "modrm" "0,*")
@@ -2322,7 +2322,7 @@
         (mem:SWI1248x (match_operand:DI 1 "x86_64_movabs_operand" "i,r")))]
   "TARGET_LP64 && ix86_check_movabs (insn, 1)"
   "@
-   movabs{<imodesuffix>}\t{%P1, %0|%0, %P1}
+   movabs{<imodesuffix>}\t{%P1, %0|%0, [%P1]}
    mov{<imodesuffix>}\t{%a1, %0|%0, %a1}"
   [(set_attr "type" "imov")
    (set_attr "modrm" "0,*")
--cut here--


  parent reply	other threads:[~2013-01-26 15:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-25 22:48 [Bug target/56114] New: " akobets at mail dot ru
2013-01-25 23:07 ` [Bug target/56114] " akobets at mail dot ru
2013-01-26  9:21 ` ubizjak at gmail dot com
2013-01-26 14:31 ` akobets at mail dot ru
2013-01-26 15:08 ` ubizjak at gmail dot com [this message]
2013-01-26 16:55 ` akobets at mail dot ru
2013-01-27 13:17 ` uros at gcc dot gnu.org
2013-01-27 16:04 ` uros at gcc dot gnu.org
2013-01-27 18:37 ` uros at gcc dot gnu.org
2013-01-27 18:46 ` ubizjak at gmail dot com
2013-01-27 20:49 ` akobets at mail dot ru

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-56114-4-pEc4qc1V5z@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).