NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-alpha/48782: # top [1] Floating point exception (core dumped) top
The following reply was made to PR port-alpha/48782; it has been noted by GNATS.
From: "Naruaki.Etomi" <nullnilaki%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: martin%duskware.de@localhost
Subject: Re: port-alpha/48782: # top [1] Floating point exception (core
dumped) top
Date: Tue, 6 May 2014 13:29:47 +0900
> I think that this case is -mieee-with-inexact option bug.
Sorry, I guess I was mistaken.
I was installed gcc-4.2.3 for Tru64 UNIX.
Please see.(thanks Tobias!)
http://mail-index.netbsd.org/pkgsrc-users/2008/02/19/msg000417.html
---------------
ds15> more test.c
#include <stdio.h>
int main (int argc, char *argv[])
{
double a, b, c;
a = 1.;
b = 3.;
c = a/b;
fprintf (stderr, "%g / %g = %g\n", a, b, c);
}
ds15> /usr/local/gcc4/bin/gcc -v
Using built-in specs.
Target: alpha-dec-osf5.1b
Configured with: ../gcc-4.2.3/configure --prefix=/usr/local/gcc4
--enable-languages=c,c++ --enable-threads=posix --disable-nls
--host=alpha-dec-osf5.1b --without-gnu-ld --with-ld=/usr/ccs/bin/ld
--without-gnu-as --with-as=/usr/bin/as --disable-libssp
Thread model: posix
gcc version 4.2.3
ds15> uname -a
OSF1 ds15 V5.1 2650 alpha
ds15> /usr/local/gcc4/bin/gcc -mieee-with-inexact test.c
ds15> ./a.out
1 / 3 = 0.333333
ds15> more test.s
.file 1 "test.c"
.verstamp 3 11
.set noreorder
.set volatile
.set noat
.arch ev4
.rdata
$LC2:
.ascii "%g / %g = %g\12\0"
.align 3
$LC0:
.long 0
.long 1072693248
.align 3
$LC1:
.long 0
.long 1074266112
.text
.align 2
.globl main
.ent main
main:
.eflag 48
.frame $15,64,$26,0
.mask 0x4008000,-64
ldgp $29,0($27)
$main..ng:
lda $30,-64($30)
stq $26,0($30)
stq $15,8($30)
bis $31,$30,$15
.prologue 1
bis $31,$16,$1
stq $17,56($15)
stl $1,48($15)
lda $1,$LC0
ldt $f10,0($1)
stt $f10,32($15)
lda $1,$LC1
ldt $f10,0($1)
stt $f10,24($15)
ldt $f11,32($15)
ldt $f10,24($15)
divtsui $f11,$f10,$f12
trapb
cpys $f12,$f12,$f10
stt $f10,16($15)
lda $1,_iob
lda $1,112($1)
bis $31,$1,$16
lda $17,$LC2
ldt $f18,32($15)
ldt $f19,24($15)
ldt $f20,16($15)
jsr $26,fprintf
ldgp $29,0($26)
bis $31,$15,$30
ldq $26,0($30)
ldq $15,8($30)
lda $30,64($30)
ret $31,($26),1
.end main
---------------
It seems to me that gcc is correct.
Maybe alpha/fp_complete.c is worng.
---
That's very nice of you!
Naruaki Etomi / nullnilaki%gmail.com@localhost
Home |
Main Index |
Thread Index |
Old Index