public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/38692]  New: ep9312/maverick code generation is broken
@ 2009-01-02 12:40 martinwguy at yahoo dot it
  2009-01-02 14:19 ` [Bug target/38692] " laurent at guerby dot net
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: martinwguy at yahoo dot it @ 2009-01-02 12:40 UTC (permalink / raw)
  To: gcc-bugs

The Cirrus MaverickCrunch code generator has never worked. For example:

#include <stdio.h>
main()
{
        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');
        }
}

should output

3 lt le
4 le ge
5 gt ge

but outputs

3 lt le
4 le ge
5 lt gt le ge

There is a set of patches to cleanly fix code generation in EABI environment
under http://martinwguy.co.uk/martin/crunch as weel as description of the
Maverick's other problems and how they are addressed.


-- 
           Summary: ep9312/maverick code generation is broken
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: martinwguy at yahoo dot it
GCC target triplet: arm-linux-gnueabi


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/38692] ep9312/maverick code generation is broken
  2009-01-02 12:40 [Bug target/38692] New: ep9312/maverick code generation is broken martinwguy at yahoo dot it
@ 2009-01-02 14:19 ` laurent at guerby dot net
  2009-01-02 15:22 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: laurent at guerby dot net @ 2009-01-02 14:19 UTC (permalink / raw)
  To: gcc-bugs



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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/38692] ep9312/maverick code generation is broken
  2009-01-02 12:40 [Bug target/38692] New: ep9312/maverick code generation is broken martinwguy at yahoo dot it
  2009-01-02 14:19 ` [Bug target/38692] " laurent at guerby dot net
@ 2009-01-02 15:22 ` pinskia at gcc dot gnu dot org
  2009-01-03 14:44 ` martinwguy at yahoo dot it
  2009-01-03 15:41 ` laurent at guerby dot net
  3 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-01-02 15:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-01-02 15:19 -------
This is a bug specific to the maverick set of chips. 


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-01-02 15:19:42
               date|                            |


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/38692] ep9312/maverick code generation is broken
  2009-01-02 12:40 [Bug target/38692] New: ep9312/maverick code generation is broken martinwguy at yahoo dot it
  2009-01-02 14:19 ` [Bug target/38692] " laurent at guerby dot net
  2009-01-02 15:22 ` pinskia at gcc dot gnu dot org
@ 2009-01-03 14:44 ` martinwguy at yahoo dot it
  2009-01-03 15:41 ` laurent at guerby dot net
  3 siblings, 0 replies; 6+ messages in thread
From: martinwguy at yahoo dot it @ 2009-01-03 14:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from martinwguy at yahoo dot it  2009-01-03 14:42 -------
>  guerby@gcc50:~$ ./install-trunk-142808/bin/gcc -mfpu=maverick -mcpu=ep9312

-mfloat-abi=softfp is also needed to generate Maverick instructions, and the
resulting binary should give illegal instructions on an Xscale.

If it's useful, there's an n2100 here and an ep9307 board, both running EABI
systems and on 24/7, the first directly on the net and the other on the
localnet accessible from the n2100, accounts on request


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/38692] ep9312/maverick code generation is broken
  2009-01-02 12:40 [Bug target/38692] New: ep9312/maverick code generation is broken martinwguy at yahoo dot it
                   ` (2 preceding siblings ...)
  2009-01-03 14:44 ` martinwguy at yahoo dot it
@ 2009-01-03 15:41 ` laurent at guerby dot net
  3 siblings, 0 replies; 6+ messages in thread
From: laurent at guerby dot net @ 2009-01-03 15:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from laurent at guerby dot net  2009-01-03 15:39 -------
I do indeed get an illegal instruction when I add -mfloat-abi=softfp 
I don't have the skills to fix this but thanks for your offer :).

Note: gcc50 is an n2100, part of the GCC compile farm:
http://gcc.gnu.org/wiki/CompileFarm


-- 


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/38692] ep9312/maverick code generation is broken
       [not found] <bug-38692-4@http.gcc.gnu.org/bugzilla/>
@ 2012-07-10  9:03 ` rearnsha at gcc dot gnu.org
  0 siblings, 0 replies; 6+ messages in thread
From: rearnsha at gcc dot gnu.org @ 2012-07-10  9:03 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Earnshaw <rearnsha at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX
   Target Milestone|---                         |4.8.0

--- Comment #5 from Richard Earnshaw <rearnsha at gcc dot gnu.org> 2012-07-10 09:03:07 UTC ---
Maverick support has now been dropped from GCC.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-07-10  9:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-02 12:40 [Bug target/38692] New: ep9312/maverick code generation is broken martinwguy at yahoo dot it
2009-01-02 14:19 ` [Bug target/38692] " laurent at guerby dot net
2009-01-02 15:22 ` pinskia at gcc dot gnu dot org
2009-01-03 14:44 ` martinwguy at yahoo dot it
2009-01-03 15:41 ` laurent at guerby dot net
     [not found] <bug-38692-4@http.gcc.gnu.org/bugzilla/>
2012-07-10  9:03 ` rearnsha at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).