From owner-freebsd-arm@FreeBSD.ORG Sat Jan 14 19:07:21 2012 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9EA8A1065678 for ; Sat, 14 Jan 2012 19:07:21 +0000 (UTC) (envelope-from freebsd@damnhippie.dyndns.org) Received: from qmta05.emeryville.ca.mail.comcast.net (qmta05.emeryville.ca.mail.comcast.net [76.96.30.48]) by mx1.freebsd.org (Postfix) with ESMTP id 674F78FC1E for ; Sat, 14 Jan 2012 19:07:21 +0000 (UTC) Received: from omta13.emeryville.ca.mail.comcast.net ([76.96.30.52]) by qmta05.emeryville.ca.mail.comcast.net with comcast id MWoz1i00417UAYkA5X7MDp; Sat, 14 Jan 2012 19:07:21 +0000 Received: from damnhippie.dyndns.org ([24.8.232.202]) by omta13.emeryville.ca.mail.comcast.net with comcast id MX7L1i0044NgCEG8ZX7LHL; Sat, 14 Jan 2012 19:07:21 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id q0EJ7Ist002194; Sat, 14 Jan 2012 12:07:18 -0700 (MST) (envelope-from freebsd@damnhippie.dyndns.org) From: Ian Lepore To: David Schultz In-Reply-To: <20120114182933.GA17739@zim.MIT.EDU> References: <20120108183605.GA36775@zim.MIT.EDU> <1326144525.2199.32.camel@revolution.hippie.lan> <20120111052634.GA96534@zim.MIT.EDU> <20120111101833.GA88428@ci0.org> <1326291254.2419.55.camel@revolution.hippie.lan> <20120111175516.GA99475@zim.MIT.EDU> <1326509894.48691.100.camel@revolution.hippie.lan> <20120114081214.GA14925@zim.MIT.EDU> <1326563626.1678.34.camel@revolution.hippie.lan> <20120114182933.GA17739@zim.MIT.EDU> Content-Type: text/plain Date: Sat, 14 Jan 2012 12:07:18 -0700 Message-Id: <1326568038.1678.43.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.26.0 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-arm Subject: Re: fenv.h fixes for softfloat X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Jan 2012 19:07:21 -0000 On Sat, 2012-01-14 at 13:29 -0500, David Schultz wrote: > It would be interesting to see the results of the test-printfloat > test in regression/lib/libc/stdio. Well that narrowed it down quickly. I commented out the abort() calls so all the tests would run, and commented out the alternate locale testing because we don't install locales on our boxes. I'm also adding -fno-builtin to the test compiles now. Everything relating to printing a long double fails. I don't know yet whether it's just printing, or whether all the failures at this point are being caused by wrong or incomplete long double support in my environment. tflex# ./test-printfloat 1..11 66: printf("%13LE", 1.0L) ==> [ 0.000000E+00], expected [ 1.000000E+00] 66: wprintf("%13LE", 1.0L) ==> [ 0.000000E+00], expected [ 1.000000E+00] 67: printf("%13Lf", 1.0L) ==> [ 0.000000], expected [ 1.000000] 67: wprintf("%13Lf", 1.0L) ==> [ 0.000000], expected [ 1.000000] 68: printf("%13LG", 1.0L) ==> [ 0], expected [ 1] 68: wprintf("%13LG", 1.0L) ==> [ 0], expected [ 1] 75: printf("%Le", 1234567.8L) ==> [1.859918e+05], expected [1.234568e+06] 75: wprintf("%Le", 1234567.8L) ==> [1.859918e+05], expected [1.234568e+06] 76: printf("%Lf", 1234567.8L) ==> [185991.800000], expected [1234567.800000] 76: wprintf("%Lf", 1234567.8L) ==> [185991.800000], expected [1234567.800000] 77: printf("%LG", 1234567.8L) ==> [185992], expected [1.23457E+06] 77: wprintf("%LG", 1234567.8L) ==> [185992], expected [1.23457E+06] ok 1 - printfloat ok 2 - printfloat ok 3 - printfloat ok 4 - printfloat xx 5 - no locale testing ok 6 - printfloat ok 7 - printfloat ok 8 - printfloat 221: printf("%.3Lf", 4.4375L) ==> [0.437], expected [4.437] 221: wprintf("%.3Lf", 4.4375L) ==> [0.437], expected [4.437] 222: printf("%.3Lf", -4.4375L) ==> [-0.438], expected [-4.438] 222: wprintf("%.3Lf", -4.4375L) ==> [-0.438], expected [-4.438] 227: printf("%.3Lf", 4.4375L) ==> [0.438], expected [4.438] 227: wprintf("%.3Lf", 4.4375L) ==> [0.438], expected [4.438] 228: printf("%.3Lf", -4.4375L) ==> [-0.437], expected [-4.437] 228: wprintf("%.3Lf", -4.4375L) ==> [-0.437], expected [-4.437] 233: printf("%.3Lf", 4.4375L) ==> [0.437], expected [4.437] 233: wprintf("%.3Lf", 4.4375L) ==> [0.437], expected [4.437] 234: printf("%.3Lf", -4.4375L) ==> [-0.437], expected [-4.437] 234: wprintf("%.3Lf", -4.4375L) ==> [-0.437], expected [-4.437] 239: printf("%.3Lf", 4.4375L) ==> [0.438], expected [4.438] 239: wprintf("%.3Lf", 4.4375L) ==> [0.438], expected [4.438] 240: printf("%.3Lf", -4.4375L) ==> [-0.438], expected [-4.438] 240: wprintf("%.3Lf", -4.4375L) ==> [-0.438], expected [-4.438] ok 9 - printfloat 273: printf("%La", 0x3.243f6a8885a31p0L) ==> [0x1.921fb54442d18p+1], expected [0xc.90fdaa22168cp-2] 273: wprintf("%La", 0x3.243f6a8885a31p0L) ==> [0x1.921fb54442d18p+1], expected [0xc.90fdaa22168cp-2] 274: printf("%La", 0x1p-1074L) ==> [0x1p-1074], expected [0x8p-1077] 274: wprintf("%La", 0x1p-1074L) ==> [0x1p-1074], expected [0x8p-1077] 275: printf("%La", 0x9.8765p-1024L) ==> [0x1.30ecap-1021], expected [0x9.8765p-1024] 275: wprintf("%La", 0x9.8765p-1024L) ==> [0x1.30ecap-1021], expected [0x9.8765p-1024] ok 10 - printfloat ok 11 - printfloat - Ian