public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9314: very slow unsigned int to double conversion on sparc 64 bit
@ 2003-01-15  0:26 sschunck
  0 siblings, 0 replies; only message in thread
From: sschunck @ 2003-01-15  0:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9314
>Category:       c++
>Synopsis:       very slow unsigned int to double conversion on sparc 64 bit
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          pessimizes-code
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 14 16:26:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     sschunck@pdf.de
>Release:        gcc-3.2.1
>Organization:
>Environment:
gcc-3.2.1 -v
Reading specs from /usr/local/gnu/gcc-3.2.1-5.8/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/specs
Configured with: /common/GNU/gcc/gcc-3.2.1/configure --with-gnu-ld --with-ld=/usr/local/gnu/gcc-3.2.1-5.8/ld --disable-shared --enable-languages=c++ --srcdir=/common/GNU/gcc/gcc-3.2.1 --prefix=/usr/local/gnu/gcc-3.2.1-5.8
Thread model: posix
gcc version 3.2.1

uname -a
SunOS pabst.aiss.de 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-880

showrev 
...
Release: 5.8
Kernel architecture: sun4u
Application architecture: sparc
Hardware provider: Sun_Microsystems
Domain: aiss.de
Kernel version: SunOS 5.8 Generic 108528-15 April 2002
>Description:
the generated code of the function below is very slow in 64 bit mode, and much slower compared to 32 bit mode or compared to Sun CC

foo.cc:
double foo( unsigned int inVal ) { return inVal; }

compile options 32 bit:
gcc-3.2.1 -c -o foo32.o -O2 foo.cc 

compile options 64 bit:
gcc-3.2.1 -c -o foo64.o -O2 -m64 foo.cc

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-01-15  0:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-15  0:26 c++/9314: very slow unsigned int to double conversion on sparc 64 bit sschunck

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