From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id CC0D03858C74 for ; Fri, 27 Jan 2023 13:26:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CC0D03858C74 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674825993; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references; bh=/C2b2CTUwHKRbpEeIzGDZuap054MIGt3hv+TFOERkNQ=; b=CvXhVk8TKosTv+fXOV/mvhSRafQ4trt4Ki2imoCGUk8k0lWOLgO6YefNNrxmr9pWBkQrG1 Ob2VDi7FM5v5Bhli5z+Dw1sx5XWKIABgQAVjAsqEdmCrip3r/mBehPfU/vmBbB06kVgxVv 0QVT8ImqYTZcpnNp8UfXFcuV4sE0p8M= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-352-PM5fNTZeNDCzqUsWah1I5Q-1; Fri, 27 Jan 2023 08:26:29 -0500 X-MC-Unique: PM5fNTZeNDCzqUsWah1I5Q-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 7BB5D2817239; Fri, 27 Jan 2023 13:26:29 +0000 (UTC) Received: from calimero.vinschen.de (unknown [10.39.192.5]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 57B9D492C14; Fri, 27 Jan 2023 13:26:29 +0000 (UTC) Received: by calimero.vinschen.de (Postfix, from userid 500) id 13BA8A80C13; Fri, 27 Jan 2023 14:26:28 +0100 (CET) Date: Fri, 27 Jan 2023 14:26:28 +0100 From: Corinna Vinschen To: "Maciej W. Rozycki" Cc: newlib@sourceware.org, Kito Cheng Subject: Re: [PATCH] RISC-V: Fix floating-point environment support for soft float Message-ID: Reply-To: newlib@sourceware.org Mail-Followup-To: "Maciej W. Rozycki" , newlib@sourceware.org, Kito Cheng References: MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Jan 27 08:53, Maciej W. Rozycki wrote: > We don't have floating-point exception or non-default rounding mode > support for the RISC-V soft-float environment, `feraiseexcept' and > `fesetround' do nothing unless the `__riscv_flen' macro has been set. > Therefore following ISO C language requirements[1] only define macros > for soft float that correspond to actually supported floating-point > environment features, removing failures from GCC testing such as: > > FAIL: gcc.dg/torture/fp-int-convert-timode-3.c -O0 execution test > FAIL: gcc.dg/torture/fp-int-convert-timode-4.c -O0 execution test > > References: > > [1] "Programming languages -- C", ISO/IEC 9899:2023, working draft -- > September 3, 2022, Section 7.6 "Floating-point environment " > > Fixes: 7040b2de0883 ("Add RISC-V port for libm") > Signed-off-by: Maciej W. Rozycki > --- > newlib/libc/machine/riscv/sys/fenv.h | 9 +++++++++ > 1 file changed, 9 insertions(+) Pushed. Thanks, Corinna