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.129.124]) by sourceware.org (Postfix) with ESMTPS id 3A3033858D3C for ; Mon, 24 Apr 2023 16:09:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3A3033858D3C 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=1682352587; 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=9IgwLd0U6GmGI9v77BwSy/fuWgb2vi/GkHUsiCwJgfU=; b=FYoKtHPplOX54iTxpKxlCU6wHjV0nZ693v/lGgnXK+pzaB4anZoZpnhHl08zTVrTcahanI rkGbrRqQpjHlSMEaJSfHjE88LcgPis2rnovVe+iW6ggtwLGVShjICsFIH8MVtP7CxFVa1W ibrcD1fOyKLMSZEFv85RvCMKcZvKhrE= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-85-M7kvTchcM6m-FlO3WVQT8g-1; Mon, 24 Apr 2023 12:09:42 -0400 X-MC-Unique: M7kvTchcM6m-FlO3WVQT8g-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D42518032E7; Mon, 24 Apr 2023 16:09:41 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.194.156]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 751BA2027043; Mon, 24 Apr 2023 16:09:41 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 33OG9c6k2356342 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 24 Apr 2023 18:09:38 +0200 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 33OG9bu42356341; Mon, 24 Apr 2023 18:09:37 +0200 Date: Mon, 24 Apr 2023 18:09:37 +0200 From: Jakub Jelinek To: Siddhesh Poyarekar Cc: Aldy Hernandez , "Joseph S. Myers" , GCC patches , Andrew MacLeod Subject: Re: [PATCH] Implement range-op entry for sin/cos. Message-ID: Reply-To: Jakub Jelinek References: <20230418131250.310916-1-aldyh@redhat.com> <64abfdef-8eae-9ce9-af62-c57c14c9ffbb@gotplt.org> <477bddf7-63e8-cfa8-a1db-330ca7bfb896@gotplt.org> MIME-Version: 1.0 In-Reply-To: <477bddf7-63e8-cfa8-a1db-330ca7bfb896@gotplt.org> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.4 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,T_SCC_BODY_TEXT_LINE 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 Mon, Apr 24, 2023 at 12:05:43PM -0400, Siddhesh Poyarekar wrote: > On 2023-04-24 12:03, Jakub Jelinek wrote: > > On Thu, Apr 20, 2023 at 01:57:55PM -0400, Siddhesh Poyarekar wrote: > > > > Similarly for other functions which have other ranges, perhaps not with so > > > > nice round numbers. Say asin has [-pi/2, pi/2] range, those numbers aren't > > > > exactly representable, but is it any worse to round those values to -inf or > > > > +inf or worse give something 1-5 ulps further from that interval comparing > > > > to other 1-5ulps errors? > > > > I've extended my hack^^^test to include sqrt and this time it seems > > that the boundary in that case holds even for non-standard rounding modes > > for glibc: > > IIRC the standard _requires_ sqrt to be correctly rounded. Well, we still need to make some effort to verify it is the case. BTW, what my hacks didn't check yet and I should eventually is libmvec, because if ranger makes some assumptions on libm calls and then we vectorize it, it will be libmvec rather than libm. Jakub