This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
target/1698: compiling optimized code using mips4 on R12000 MIPS
- To: gcc-gnats at gcc dot gnu dot org
- Subject: target/1698: compiling optimized code using mips4 on R12000 MIPS
- From: mburnham at link dot com
- Date: 18 Jan 2001 23:26:28 -0000
- Reply-To: mburnham at link dot com
>Number: 1698
>Category: target
>Synopsis: compiling optimized code using mips4 on R12000 MIPS
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jan 18 15:36:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: mburnham@link.com
>Release: unknown-1.0
>Organization:
>Environment:
SGI Onyx, IRIX64 6.5, with IP27 Processors
CPU: MIPS R12000 Processor Chip Revision: 3.5
FPU: MIPS R12010 Floating Point Chip Revision: 0.0
>Description:
Sample program is compiled with the -mips4 and -O2 flags.
When it is run, the condition of a while loop that tests
an int against a double fails, but shouldn't.
The problem is only on machines with R12000 processors.
It works ok on a machine with R10000 processors.
>How-To-Repeat:
1 - compile using:
g++ -mips4 -O2 test_loops.cxx -o test_loops
2 - execute test_loops application
>Fix:
compile using the -mips3 flag
>Release-Note:
>Audit-Trail:
>Unformatted:
>gcc -v
Reading specs from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.2/2.95.2/specs
gcc version 2.95.2 19991024 (release)
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test_loops.cxx"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test_loops.cxx"
LyoKQ29tcGlsZSB3aXRoOgoKZysrIC1taXBzNCAtTzIgdGVzdF9sb29wcy5jeHggLW8gdGVzdF9s
b29wcwoKKi8KCiNpbmNsdWRlIDxpb3N0cmVhbS5oPgojaW5jbHVkZSA8c3RkbGliLmg+CgoKaW50
IG1haW4oIGludCBhcmdjLCBjaGFyKiBhcmd2W10gKSAKCXsKCWludCAgICAgbnVtID0gMDsKCWlu
dCAgICAgc3RhcnQgPSA1OwoJZG91YmxlICBtYXggPSAxOwoKCXdoaWxlKCBudW0gPCAyICkKCQl7
CgkJY2VyciA8PCAibnVtOiAiIDw8IG51bSA8PCBlbmRsOwoJCW51bSsrOwoJCX0KCgljZXJyIDw8
ICJTdGFydDogIiA8PCBzdGFydCA8PCAiIE1heDogIiA8PCBtYXggPDwgZW5kbDsKCglpZiggc3Rh
cnQgPiBtYXggKQoJCXsKCQljZXJyIDw8ICJzdGFydCA9ICIgPDwgc3RhcnQgPDwgIiwgbWF4ID0g
IiA8PCBtYXggPDwgZW5kbDsKCgkJLy8gdGhpcyBvbmx5IHdvcmtzIGlmIG1heCBpcyBhbiBpbnQg
b3IgaXMgY2FzdCB0byBhbiBpbnQKCQludW0gPSAwOwoJCXdoaWxlKCBzdGFydCA+IG1heCApCgkJ
CXsKCQkJbnVtKys7CgkJCXN0YXJ0LS07CgkJCWNlcnIgPDwgbnVtIDw8ICI6IHN0YXJ0ID0gIiA8
PCBzdGFydCA8PCAiLCBtYXggPSAiIDw8IG1heCA8PCBlbmRsOwoJCQl9CgoJCX0KCglyZXR1cm4g
MDsKCX0KCg==