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 AE72C3858D33 for ; Tue, 7 Feb 2023 21:48:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AE72C3858D33 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=1675806507; h=from:from: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=ws0OhtTPGncCL/1KJtB0r6nrudBpXmLtoNm7Nn5Cdb8=; b=IJo3Tur8+00Lpoh19M4sj3KpnmDCZWix7vbDC9z1iOFjvZ4K9STokNis2e1nQumovPfnkB J4blHsXonVH8aJCESVmhOVw/yjBOK0b8Pb9bAm0WWulQD7ePVLr39yFtgplUgWq9vJ1LQN mVuaPn+IEn04JOSoNQus+OHlaKN3OhM= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-145-VmxiOcuGORGO_EnduutaOA-1; Tue, 07 Feb 2023 16:48:25 -0500 X-MC-Unique: VmxiOcuGORGO_EnduutaOA-1 Received: by mail-qt1-f199.google.com with SMTP id hf20-20020a05622a609400b003abcad051d2so9332770qtb.12 for ; Tue, 07 Feb 2023 13:48:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ws0OhtTPGncCL/1KJtB0r6nrudBpXmLtoNm7Nn5Cdb8=; b=q5G2aCntOLCz3sWoRyIyZEQa/NvhPW1Oxd8W5Dzlaqtbubx9oBlmZbBhG9w931a6+i J9UcX4SVOt3r9rAYd5BexF364H5jhyiuHUW8GBLCPlVU2Dvs6KZJMuu2156s2zFlB44E 7wXpIBbicsqasHuhDHWTfDJE9zCspL2S4V7MHd/tFAUiZqc76guCOTcd7YIk31mjdm9F sCFrOWs+NnhaNHWzbKuVzjBLB0yiP1Exuxft4uldOOdIYSMwGhs9yHWpU6SB1dv2e1U8 mLP6s0+aVfb5pcjxXZZ/KHHY1FAKNZz1Tjd0WWJUwhmBZX+YBhkH1DX/7DnKX1f63rn+ 7pPw== X-Gm-Message-State: AO0yUKWz4RjTDO0WDXjilV9sFXjrd7Tj9uwg8nB5kGSDZyEy67PYzbGa j8DHn6QHY/tvmyL/g1wGHWByFJDPr21gR5OSFT44z2pCmT0IDmLcXycRHGErELCx/EXu235+AqM RyJMKbltiamHVlPFfhwIIpWbYECaWjAc= X-Received: by 2002:a0c:e3d4:0:b0:56b:f48d:fa41 with SMTP id e20-20020a0ce3d4000000b0056bf48dfa41mr363502qvl.16.1675806505218; Tue, 07 Feb 2023 13:48:25 -0800 (PST) X-Google-Smtp-Source: AK7set90R7W8L2vvbDFk/73IqyJwR6bsvSVpIux4Qv8VIl0Cj+7o3qp/kNAi+y3SpilC6ZCriSDwv1ZxKHnjILW3PWY= X-Received: by 2002:a0c:e3d4:0:b0:56b:f48d:fa41 with SMTP id e20-20020a0ce3d4000000b0056bf48dfa41mr363499qvl.16.1675806505073; Tue, 07 Feb 2023 13:48:25 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jeff Johnston Date: Tue, 7 Feb 2023 16:48:14 -0500 Message-ID: Subject: Re: huge error for pow To: Paul Zimmermann Cc: newlib@sourceware.org, vincenzo.innocente@cern.ch X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/alternative; boundary="00000000000072915e05f4231b63" X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,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: --00000000000072915e05f4231b63 Content-Type: text/plain; charset="UTF-8" Thanks Paul, Do you think you can put together a patch? -- Jeff J. On Tue, Feb 7, 2023 at 9:27 AM Paul Zimmermann wrote: > Hi, > > while testing Newlib 4.3.0, I noticed the following huge error: > > zimmerma@salade:~/svn/tbd/20/src/binary64$ VERBOSE=-v ./doitb.newlib pow > 1000 > Checking pow with newlib-4.3.0.20230120 > Using seed 1619945 > pow 0 -1 -0x1.647ff80007ff8p-576,-0x1.3d018267f12fp+48 [inf] inf inf > libm gives inf > mpfr gives -inf > > The exponent y in x^y is a large odd integer, thus since x is negative we > should get a negative number as result. > > This issue was apparently already present in 3.3.0, but we only discovered > it now. > > Best regards, > Paul > > > --00000000000072915e05f4231b63--