[Bug target/18118] New: bad code gen for -mcpu=G5
fjahanian at apple dot com
gcc-bugzilla@gcc.gnu.org
Sat Oct 23 00:31:00 GMT 2004
Following test case, extracted from rbug.c of dejagnu fails on apple-ppc-darwin when -mcpu=G5
is specified.
double s (unsigned long long k)
{
return (float)k;
}
extern void abort();
main ()
{
unsigned long long int k;
double x;
k = 0x8234508000000001ULL;
x = s (k);
k = (unsigned long long) x;
if (k != 0x8234510000000000ULL)
abort();
return 0;
}
--
Summary: bad code gen for -mcpu=G5
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fjahanian at apple dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: apple-ppc-darwin
GCC host triplet: apple-ppc-darwin
GCC target triplet: apple-ppc-darwin
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18118
More information about the Gcc-bugs
mailing list