* Is this a typo in setup_incoming_varargs_64?
@ 2008-06-04 17:17 H.J. Lu
2008-06-05 9:35 ` Jan Hubicka
0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 2008-06-04 17:17 UTC (permalink / raw)
To: Uros Bizjak, Jan Hubicka, GCC
Hi,
setup_incoming_varargs_64 in i386.c has
/* Compute address to jump to :
label - 5*eax + nnamed_sse_arguments*5 */
tmp_reg = gen_reg_rtx (Pmode);
nsse_reg = gen_reg_rtx (Pmode);
emit_insn (gen_zero_extendqidi2 (nsse_reg, gen_rtx_REG (QImode, AX_REG)));
emit_insn (gen_rtx_SET (VOIDmode, tmp_reg,
gen_rtx_MULT (Pmode, nsse_reg,
GEN_INT (4))));
if (cum->sse_regno)
emit_move_insn
(nsse_reg,
gen_rtx_CONST (DImode,
gen_rtx_PLUS (DImode,
label_ref,
GEN_INT (cum->sse_regno * 4))));
else
emit_move_insn (nsse_reg, label_ref);
emit_insn (gen_subdi3 (nsse_reg, nsse_reg, tmp_reg));
The comments don't match the code. Shout the comments be
/* Compute address to jump to :
label - 4*eax + nnamed_sse_arguments*4 */
Thanks.
--
H.J.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Is this a typo in setup_incoming_varargs_64?
2008-06-04 17:17 Is this a typo in setup_incoming_varargs_64? H.J. Lu
@ 2008-06-05 9:35 ` Jan Hubicka
0 siblings, 0 replies; 2+ messages in thread
From: Jan Hubicka @ 2008-06-05 9:35 UTC (permalink / raw)
To: H.J. Lu; +Cc: Uros Bizjak, Jan Hubicka, GCC
> Hi,
>
> setup_incoming_varargs_64 in i386.c has
>
> /* Compute address to jump to :
> label - 5*eax + nnamed_sse_arguments*5 */
>
> The comments don't match the code. Shout the comments be
>
> /* Compute address to jump to :
> label - 4*eax + nnamed_sse_arguments*4 */
Yes, this is most likely type caused by originally using different
register than eax that resulted in different length of encoding.
Thanks for noticing it!
Honza
>
> Thanks.
>
> --
> H.J.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-06-05 9:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-04 17:17 Is this a typo in setup_incoming_varargs_64? H.J. Lu
2008-06-05 9:35 ` Jan Hubicka
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).