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]

c++/9314: very slow unsigned int to double conversion on sparc 64 bit


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


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