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/38692] ep9312/maverick code generation is broken



------- Comment #1 from laurent at guerby dot net  2009-01-02 14:17 -------
gcc 4.3.2-1 on debian gnueabi and current trunk do not seem to generate wrong
code but may be I'm wrong in my setup to reproduce this problem?

guerby@gcc50:~$ cat pr38692.c 
#include <stdio.h>
int main(void)
{
        int i; double d;
        for (i=3, d=3; i<=5; i++, d++) {
                printf("%g", d);
                if (d < 4.0) printf(" lt");
                if (d > 4.0) printf(" gt");
                if (d <= 4.0) printf(" le");
                if (d >= 4.0) printf(" ge");
                putchar('\n');
        }
        return 0;
}
guerby@gcc50:~$ ./install-trunk-142808/bin/gcc -mfpu=maverick -mcpu=ep9312
pr38692.c 
guerby@gcc50:~$ ./a.out
3 lt le
4 le ge
5 gt ge
guerby@gcc50:~$ gcc -mfpu=maverick -mcpu=ep9312 pr38692.c 
guerby@gcc50:~$ ./a.out 
3 lt le
4 le ge
5 gt ge
guerby@gcc50:~$ cat /proc/cpuinfo 
Processor       : XScale-80219 rev 0 (v5l)
BogoMIPS        : 593.10
Features        : swp half thumb fastmult edsp 
CPU implementer : 0x69
CPU architecture: 5TE
CPU variant     : 0x0
CPU part        : 0x2e3
CPU revision    : 0
Cache type      : undefined 5
Cache clean     : undefined 5
Cache lockdown  : undefined 5
Cache format    : Harvard
I size          : 32768
I assoc         : 32
I line length   : 32
I sets          : 32
D size          : 32768
D assoc         : 32
D line length   : 32
D sets          : 32

Hardware        : Thecus N2100
Revision        : 0000
Serial          : 0000000000000000


-- 

laurent at guerby dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |laurent at guerby dot net
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38692


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