]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR target/58132 (x86-64 gcc generate wrong movabs code for intel syntax)
authorUros Bizjak <ubizjak@gmail.com>
Sat, 17 Aug 2013 11:42:17 +0000 (13:42 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Sat, 17 Aug 2013 11:42:17 +0000 (13:42 +0200)
Backport from mainline
2013-08-12  Perez Read  <netfirewall@gmail.com>

PR target/58132
* config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
operand 0 for intel asm alternative.
(*movabs<mode>_2): Ditto for operand 1.

From-SVN: r201814

gcc/ChangeLog
gcc/config/i386/i386.md

index 0479d726df5df712365761f6da2c56d968776d2c..702f6bc33409dc94ffb981e365f96a9c7399b19b 100644 (file)
@@ -1,3 +1,13 @@
+2013-08-17  Uros Bizjak  <ubizjak@gmail.com>
+
+       Backport from mainline
+       2013-08-12  Perez Read  <netfirewall@gmail.com>
+
+       PR target/58132
+       * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
+       operand 0 for intel asm alternative.
+       (*movabs<mode>_2): Ditto for operand 1.
+
 2013-08-13  Marek Polacek  <polacek@redhat.com>
 
        Backport from 4.8:
@@ -14,7 +24,7 @@
        2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
 
        * collect2-aix.h: Define F_LOADONLY.
-       
+
 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
 
        * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
index c76cd6bac52c2566e468d98b9c4325c8bdfff290..f6124c2cf0dfb3b9c94176adf545684ef8aedd58 100644 (file)
   "TARGET_LP64 && ix86_check_movabs (insn, 0)"
   "@
    movabs{<imodesuffix>}\t{%1, %P0|[%P0], %1}
-   mov{<imodesuffix>}\t{%1, %a0|%a0, %1}"
+   mov{<imodesuffix>}\t{%1, %a0|<iptrsize> PTR %a0, %1}"
   [(set_attr "type" "imov")
    (set_attr "modrm" "0,*")
    (set_attr "length_address" "8,0")
   "TARGET_LP64 && ix86_check_movabs (insn, 1)"
   "@
    movabs{<imodesuffix>}\t{%P1, %0|%0, [%P1]}
-   mov{<imodesuffix>}\t{%a1, %0|%0, %a1}"
+   mov{<imodesuffix>}\t{%a1, %0|%0, <iptrsize> PTR %a1}"
   [(set_attr "type" "imov")
    (set_attr "modrm" "0,*")
    (set_attr "length_address" "8,0")