From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by sourceware.org (Postfix) with ESMTPS id B180D393AD15 for ; Thu, 8 Dec 2022 20:08:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B180D393AD15 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dabbelt.com Received: by mail-pf1-x433.google.com with SMTP id t18so2128105pfq.13 for ; Thu, 08 Dec 2022 12:08:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=aAV01GlqsVqKjt93FHFJMdOXdiJEHVS31z7DkDXr8Zw=; b=lYVj04GoPSvCBYt+8EPZFQuoLxPRC8cl3MdDIT1s9hDLm4AbvNOqbe4IjLmJ/9fHFi V/wflRcIGhN1zsOoPufKo1DjVWRDjLkmPHu4jBmOXTIhQbaJq+o/mwNXiuwwEwd5wsrG b1uI+vshD6WtjuGHmxiUHs1LQlD+guVIHJRD/5j46YSOshKs6xt0jxxqMo2niEo131nW qMC0xBXBwR86Iq+O6EzP7R7vpnjbQ/IE68PAT6goqFnOaPg2KtP7Ur0ZaW/+I8BW6Vu2 FtFs2PQzN6TMXSqBCV7J0XyUBG+RDXHBvqbht23z9q8j+gTrUQYGSkIbZtEF/nevj0Uo pZOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=aAV01GlqsVqKjt93FHFJMdOXdiJEHVS31z7DkDXr8Zw=; b=nFwwJttVWBnWryyuWNgsyoUTkOxN3TugHj4l5On7SxzccGk+eOknoQkCJeGAikZYzx y3fIzq3XSfZgEFp0x5PfBScQmhywdrOHZFRKA1pPT2B3fx50pm87BV+F+pb3jy+rDRCb tb9zjyukJvB7Lc8CksxLkH7E7QOg4LvbqQMGF0iDF9xVYY8c2tyO7CEljLavOQ+3VRLB Os71ES84olCqpcu0DEkiIbuJhT0oqDoDn9mJPWQmPUcRkqFnJvy7lO+XnTcmwjHX8BPX vweEh0czp1jHZVFf/w3F+xopJZe23L9Xz8Gkp8ExLRRoeX7Tu1yJ9P5HdmnW8rZjV+Ez czbQ== X-Gm-Message-State: ANoB5pkUWs9Y/HLUg3ORIs5Sv0XP2eGxLWMhSoBVuLwXqtFgLjYbt3eC /OxHL5YMdSbweitzMQ+oE1nQuQ== X-Google-Smtp-Source: AA0mqf4C+mCVYE04CnOMybSELYm1NSHKXvuAHX5dWrbYoD+3z/FfhOCc0a9Z8QHUcBNQ3hN32deo1w== X-Received: by 2002:a63:f354:0:b0:476:db6f:e79d with SMTP id t20-20020a63f354000000b00476db6fe79dmr68571148pgj.399.1670530079541; Thu, 08 Dec 2022 12:07:59 -0800 (PST) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id 194-20020a6300cb000000b00476b165ff8bsm9402234pga.57.2022.12.08.12.07.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Dec 2022 12:07:58 -0800 (PST) Date: Thu, 08 Dec 2022 12:07:58 -0800 (PST) X-Google-Original-Date: Thu, 08 Dec 2022 12:07:47 PST (-0800) Subject: Re: Behaviour differences on x86 and RISC-V on cos/sin functions In-Reply-To: <9add23f-a02c-f5a3-298e-d0b95d52c219@codesourcery.com> CC: ludovic@rivosinc.com, libc-alpha@sourceware.org From: Palmer Dabbelt To: joseph@codesourcery.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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 Thu, 08 Dec 2022 12:06:59 PST (-0800), joseph@codesourcery.com wrote: > On Thu, 8 Dec 2022, Palmer Dabbelt wrote: > >> So it's OK to follow the RISC-V rules for library functions? We don't have > > Yes (only a few functions such as fabs and copysign need to do anything in > particular regarding NaN payloads or signs). > >> In other words: it's safe to call this behavior not a bug? > > Correct. Thanks.