NetBSD Problem Report #18769

Received: (qmail 25033 invoked by uid 605); 22 Oct 2002 19:17:39 -0000
Message-Id: <>
Date: Tue, 22 Oct 2002 12:17:38 -0700 (PDT)
Subject: IEEE FP rounding bug NetBSD/alpha
X-Send-Pr-Version: 3.95

>Number:         18769
>Category:       port-alpha
>Synopsis:       IEEE FP rounding bug NetBSD/alpha
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-alpha-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 22 19:18:00 +0000 2002
>Last-Modified:  Fri Dec 16 17:35:01 +0000 2016
>Originator:     Jason R Thorpe
>Release:        NetBSD 1.6I
Wasabi Systems, Inc.

System: NetBSD 1.6I NetBSD 1.6I (FRAU-FARBISSINA) #149: Sat Oct 12 12:39:17 PDT 2002 alpha
Architecture: alpha
Machine: alpha
	NetBSD/alpha appears to have an IEEE FP rounding bug in the
	kernel FP completion code.  This bug causes failures in the
	GCC 3.3 testsuite.

	Compile the following program with "cc -mieee".  The optimization
	level is irrelevant.

d (unsigned long long k)
  double x;

  x = (double) k;
  return x;

main (int argc, char *argv[])
  unsigned long long k;
  double x;

  k = 0x8693ba6d7d220401ULL;
  x = d (k);
  k = (unsigned long long) x;
  if (k != 0x8693ba6d7d220800ULL)
    abort ();

	This code is taken from the relevant GCC testcase.  The
	testcase passes when compiled *without* "cc -mieee".

	Not known at this time.  (More analysis of the problem needs
	to be done.)
From: Adam Hoka <>
Subject: Re: port-alpha/18769
Date: Sat, 19 Jan 2008 19:02:15 +0100

 The test code still fails on NetBSD 4.0 RC1.

From: Felix Deichmann <>
Subject: Re: port-alpha/18769
Date: Fri, 16 Dec 2016 18:34:51 +0100

 FWIW, the test still fails on NetBSD-current 7.99.50:
 gcc (nb1 20160606) 5.4.0


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.