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
This commit is contained in:
Kai Tietz 2008-05-04 19:19:50 +00:00 committed by Kai Tietz
parent da96f5ab49
commit 8fa8585de8
2 changed files with 13 additions and 2 deletions

View File

@ -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.

View File

@ -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);