This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26398] Wrong code generated with SPE-Extensions on PowerPC
- From: "christian dot metzler at bmw-carit dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Feb 2006 08:11:05 -0000
- Subject: [Bug target/26398] Wrong code generated with SPE-Extensions on PowerPC
- References: <bug-26398-12234@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from christian dot metzler at bmw-carit dot de 2006-02-22 08:11 -------
Simple test case:
int main(int argc, char **argv) {
float t;
char u;
t = 1.0;
u = ( ( t<0.0)?-1:((t>0.0)?1:0));
return (int)u;
}
Compiles e.g. on i386 and returns 1. Compiled with given C-Flags and executed
on a MPC5553 it stores 0 in u. Debugged with a Lauterbach Debugger over JTAG.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26398