aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2008-05-04 19:19:50 +0000
committerKai Tietz <ktietz@gcc.gnu.org>2008-05-04 21:19:50 +0200
commit8fa8585de83aa9ff48ff462d3caf5f69411d46ab (patch)
tree8acc1198fa3497309d6375ff1d29fd984efd2400 /gcc
parentda96f5ab49d8e45bdca0d08c5ecc408ddbc3de47 (diff)
downloadgcc-8fa8585de83aa9ff48ff462d3caf5f69411d46ab.zip
gcc-8fa8585de83aa9ff48ff462d3caf5f69411d46ab.tar.gz
gcc-8fa8585de83aa9ff48ff462d3caf5f69411d46ab.tar.bz2
i386.c (x86_output_mi_thunk): Use movq alternative mnemonic in this_param move for TARGET_64BIT.
2008-05-04 Kai Tietz <kai.tietz@onevision.com> * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative mnemonic in this_param move for TARGET_64BIT. From-SVN: r134935
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/i386/i386.c10
2 files changed, 13 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5017016..c29c26f 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-04 Kai Tietz <kai.tietz@onevision.com>
+
+ * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
+ mnemonic in this_param move for TARGET_64BIT.
+
2008-05-04 Uros Bizjak <ubizjak@gmail.com>
* config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index 3c203a0..6b9ad68 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -23042,7 +23042,10 @@ x86_output_mi_thunk (FILE *file ATTRIBUTE_UNUSED,
/* Put the this parameter into %eax. */
xops[0] = this_param;
xops[1] = this_reg = gen_rtx_REG (Pmode, AX_REG);
- output_asm_insn ("mov{l}\t{%0, %1|%1, %0}", xops);
+ if (TARGET_64BIT)
+ output_asm_insn ("mov{q}\t{%0, %1|%1, %0}", xops);
+ else
+ output_asm_insn ("mov{l}\t{%0, %1|%1, %0}", xops);
}
else
this_reg = NULL_RTX;
@@ -23111,7 +23114,10 @@ x86_output_mi_thunk (FILE *file ATTRIBUTE_UNUSED,
{
xops[0] = this_reg;
xops[1] = this_param;
- output_asm_insn ("mov{l}\t{%0, %1|%1, %0}", xops);
+ if (TARGET_64BIT)
+ output_asm_insn ("mov{q}\t{%0, %1|%1, %0}", xops);
+ else
+ output_asm_insn ("mov{l}\t{%0, %1|%1, %0}", xops);
}
xops[0] = XEXP (DECL_RTL (function), 0);