This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/26398] Wrong code generated with SPE-Extensions on PowerPC



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]