From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4997 invoked by alias); 22 May 2007 18:32:49 -0000 Received: (qmail 4980 invoked by uid 22791); 22 May 2007 18:32:46 -0000 X-Spam-Check-By: sourceware.org Received: from e2.ny.us.ibm.com (HELO e2.ny.us.ibm.com) (32.97.182.142) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 22 May 2007 18:32:40 +0000 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e2.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id l4MIWaeP021088 for ; Tue, 22 May 2007 14:32:36 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v8.3) with ESMTP id l4MIWZL2484640 for ; Tue, 22 May 2007 14:32:35 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l4MIWZMq029455 for ; Tue, 22 May 2007 14:32:35 -0400 Received: from [9.10.86.122] (spokane1.rchland.ibm.com [9.10.86.122]) by d01av02.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l4MIWZR9029431; Tue, 22 May 2007 14:32:35 -0400 Message-ID: <46533BA6.9010304@us.ibm.com> Date: Tue, 22 May 2007 18:32:00 -0000 From: Steven Munroe User-Agent: Mozilla/5.0 (X11; U; Linux ppc64; en-US; rv:1.8.0.9) Gecko/20060906 SUSE/1.8_seamonkey_1.0.7-1.1 SeaMonkey/1.0.7 MIME-Version: 1.0 To: Jakub Jelinek , GNU libc hacker Subject: test-misc is failing for powerpc32/64 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact libc-hacker-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sourceware.org X-SW-Source: 2007-05/txt/msg00019.txt.bz2 Jakub your change: 2007-05-03 Jakub Jelinek * soft-fp/op-common.h (FP_TRUNC): Replace raising of FP_EX_INEXACT with setting the sticky bit. * math/test-misc.c (main): Add more truncation tests. Is causing failures on powerpc. The denomal rounding test you added assume that __LDBL_DENORM_MIN__ is less than __DBL_DENORM_MIN__ by at least 4 bits which is not true for IBM128 long double. #define __DBL_DENORM_MIN__ 4.9406564584124654e-324 #define __LDBL_DENORM_MIN__ 4.94065645841246544176568792868221e-324L This is implicit in the statement: volatile long double ld5 = nextafter (0.0, 1.0) / 16.0L; This will always return 0.0L for IBM128. So we could just disable this part of the test for IBM128 with for example #if LDBL_MANT_DIG != 106 or replace each usage of "nextafter (0.0, 1.0)" with LDBL_MIN #define __LDBL_MIN__ 2.00416836000897277799610805135016e-292L In IBM128 LDBL_MIN is the where the low order double can be subnormal but as the high and low double can not overlap, the high order double must be >= 0x1.0p-969