[Bug target/27390] [4.2 Regression] gcc.target/x86_64/abi/test_complex_returning.c execution fails at -O0
bonzini at gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon May 29 07:25:00 GMT 2006
------- Comment #7 from bonzini at gnu dot org 2006-05-29 07:24 -------
The problem is that regstack is wrong when it comes to handling
COMPLEX_FLOAT_MODEs.
To handle clobbers, it calls move_nan_to_stack_reg twice on the same insn. But
the second call does *not* add a new insn, so we get only one flds instead of
two.
There is also something wrong in emit_pop_insn of a complex float, because if
we fix the above we get a
flds .LC0
flds .LC0
fstp %st
fstp %st(1)
which is still wrong: we should have two fstps to %st.
The solution is probably to emit two distinct clobbers with XFmode instead of
one with a complex mode.
Paolo
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27390
More information about the Gcc-bugs
mailing list