From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by sourceware.org (Postfix) with ESMTPS id 09B793858D28 for ; Mon, 4 Oct 2021 18:12:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 09B793858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux-m68k.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nefkom.net Received: from frontend02.mail.m-online.net (unknown [192.168.8.183]) by mail-out.m-online.net (Postfix) with ESMTP id 4HNTN04B48z1qwyc; Mon, 4 Oct 2021 20:12:48 +0200 (CEST) Received: from localhost (dynscan2.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 4HNTN01hJNz1qqkD; Mon, 4 Oct 2021 20:12:48 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan2.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id zstT8EQ5p7vB; Mon, 4 Oct 2021 20:12:47 +0200 (CEST) X-Auth-Info: 5TdSfHXEcHIZ+Iak3pMU910CwYucTg/yMcc3TfI7Gtg8W4iEt6aXUQGnuxcRTZJn Received: from igel.home (ppp-46-244-163-69.dynamic.mnet-online.de [46.244.163.69]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 4 Oct 2021 20:12:47 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id CCAF92C0EC9; Mon, 4 Oct 2021 20:12:46 +0200 (CEST) From: Andreas Schwab To: Palmer Dabbelt via Libc-alpha Cc: joseph@codesourcery.com, Andrew Waterman , Palmer Dabbelt Subject: Re: Add fmaximum, fminimum functions [committed] References: X-Yow: INSIDE, I have the same personality disorder as LUCY RICARDO!! Date: Mon, 04 Oct 2021 20:12:46 +0200 In-Reply-To: (Palmer Dabbelt via Libc-alpha's message of "Mon, 04 Oct 2021 09:43:34 -0700 (PDT)") Message-ID: <87zgror74x.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Oct 2021 18:12:51 -0000 On Okt 04 2021, Palmer Dabbelt via Libc-alpha wrote: > I don't actually remember if we had any pre-2.2 hardware that could run > glibc: pretty sure the HiFive Unleashed is post-2.2, and that's the only > thing I can think of that would be that old. I'm never quite sure about > the dates on specs, but I'm seeing May 2017 for 2.2 and Feb 2018 for the > HiFive Unleashed so I think it's likely fine. Andrew would know for sure, > though. Running the following test program on the Unleashed prints 0 FE_INVALID. #define _GNU_SOURCE 1 #include #include #include int main () { double x; feclearexcept (FE_INVALID); asm ("fmax.d %0,%1,%2" : "=f" (x) : "f" (SNAN), "f" (0.0)); if (fetestexcept (FE_INVALID)) printf ("%g FE_INVALID\n", x); } Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."