This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/27946] New: double to long long and back to double stores to the stack
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2006 04:54:07 -0000
- Subject: [Bug middle-end/27946] New: double to long long and back to double stores to the stack
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Testcase:
void f(double a, double *b)
{
long long c = a;
*b = c;
}
-----
We currently get:
_f:
fctidz f1,f1
fcfid f0,f1
stfd f1,-16(r1) ; <--- not needed
stfd f0,0(r4)
blr
--------
On the Yara branch we get:
fctidz f0,f1
fcfid f0,f0
stfd f0,0(r4)
blr
So this is a RA issue, I am recording this to make sure that the next ra that
goes in as default actually fixes it.
--
Summary: double to long long and back to double stores to the
stack
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: missed-optimization, ra
Severity: enhancement
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
GCC target triplet: powerpc64-*-*
OtherBugsDependingO 18427
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27946