From patchwork Sun Feb 11 21:44:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 199518 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp2115931dyd; Sun, 11 Feb 2024 13:45:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXHF3hs2irffWY5Zp0Rbhh3xY1BvqKGHd5yINVc+YofobIUObkyI9JH6yrw9mXq6Cn/eLBGhJOqzmayG6R91MKwzgYXcw== X-Google-Smtp-Source: AGHT+IFhRt/rPu+qKzFJ6pzyDyb2cZGBlidbQ3LSqZOSCdIEE695f6i02fjDA9P56CwaSJUd7EwW X-Received: by 2002:a05:620a:46a8:b0:785:9323:e60a with SMTP id bq40-20020a05620a46a800b007859323e60amr9871380qkb.8.1707687904770; Sun, 11 Feb 2024 13:45:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707687904; cv=pass; d=google.com; s=arc-20160816; b=gO27iaPN2DL7ypQPcGs3OifjvRLfRp+78BtaYYIlL3UFkctKGqvwq0geOeJC2XKSRH 5jUxObmMpxk84ZTSVtHMxC/wrDO7zGJqWHVNt1Fd0ZD3DPXzRQdfZi3KZRzh8P0Au6eq 1zkG6SvBlG6mW+P0tfYpZU9uwk44EloU0d4l/2dKeD8t9bznlundnLWuGq57E71AmGQM vTmIX5qY2U1uNmkBP3TBswAK3RI5HR8qOYaxHWo60aE75kh5Tgm5eLrcULN6xa3ilptH ItlfSgMptt5W85wTg6zRR3n2IkR/+eW48QrnM5lGq+Yynpx8kmaksx9y8RW6K6pcMqt6 EECw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition :mime-version:message-id:subject:to:from:date:arc-filter :dmarc-filter:delivered-to; bh=FQBbGpfYEnwsdZlJ5q/9S9kiECzVSXeYSAfrHaJXmPI=; fh=47qZabbOnQhxPiWszFGP9JiRTCBYbgFUVvE5Eo53/x0=; b=qlA4CJx7fhpxna4jpzMJreOt2Hr5ayl/x1tFnBNswAXaH6l5GSAOo2aBAPJ2d+Lkwp Yo/+UBObgS3krp8lUhzRA8682EmaW21Fcb9VdqYPSo2IERxtWWubx8O+LHGNScWSbDja BELtWKsnofAeQFWqBqvR+Ir+Vb/LABlPGwmGUTKqoNlG4qAWGZsYsD3JJXo14tLTUMIZ llNrLQAfHdNmaZ604ZnbMYME1hTRDSnewL+DsXMtaQaXoJYYHwJ8xbhtVPNWe0pLGYfT Gp6S9BgRzZ7ZDpERldlZwpkyLoUxaWpvyH1I7y5nQRM/lmSyP6ORJKFbw6Nw28q0ckRE rPsQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" X-Forwarded-Encrypted: i=2; AJvYcCU8shv+Wp3UCBYrIwfdQUY9HrItoh28uSBDUBf/BOfSgCGpWAF2t/pxvrnpnLc8grGjzGvm0pvbz8RfpliAJfv0jf9vZA== Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id qr8-20020a05620a390800b00783ff745819si4968291qkn.531.2024.02.11.13.45.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 13:45:04 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 72F703858C29 for ; Sun, 11 Feb 2024 21:45:04 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from dellerweb.de (dellerweb.de [173.249.48.176]) by sourceware.org (Postfix) with ESMTPS id 136463858D20 for ; Sun, 11 Feb 2024 21:44:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 136463858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=parisc-linux.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=parisc-linux.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 136463858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=173.249.48.176 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707687864; cv=none; b=nEA1RYUOgEkSsfan3TaQzx25bxj/KR0L6X+IpZcbyNt+a/QVgu/th7fcn6dcqMgDJCdVQOKxC/7IkX42vVCKJCwGprOYXT6TIug5XPCPVYHWvPUQgLUmP5/W1Imk9wUvdK9IE0ZXDonfon7e4cCyPkJ8QlMxK1xMrc8ddUmIqOE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707687864; c=relaxed/simple; bh=1rpw07M2y/9ChHgt6N/p55SSZE4mqfTDkVMbrgfiVsI=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=wOEcwUXpO5Lh6DlwQ6SA1/6YSPt/PDG0n4NCtfufvc1rBV63VUdSiIcKEzI5/56ev36TEgHB3Pfrk994zokFrmcx40kyx5Li3ZQBkXF6VLdRj96SKiPrdEx39BBpSa3xW4hz1QAFgHeP+8jDwjATzCxK5+eOBtF3rI5ACziqUcs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from mx3210.localdomain (unknown [142.126.112.233]) by dellerweb.de (Postfix) with ESMTPSA id C7A13160014E; Sun, 11 Feb 2024 22:44:21 +0100 (CET) Received: by mx3210.localdomain (Postfix, from userid 1000) id C22F322012D; Sun, 11 Feb 2024 21:44:19 +0000 (UTC) Date: Sun, 11 Feb 2024 21:44:19 +0000 From: John David Anglin To: GCC Patches Subject: [committed] Fix gcc.c-torture/execute/ieee/cdivchkf.c on hpux Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790640552387653760 X-GMAIL-MSGID: 1790640552387653760 Tested on hppa64-hp-hpux11.11 and hppa-unknown-linux-gnu. Committed to trunk. Dave --- Fix gcc.c-torture/execute/ieee/cdivchkf.c on hpux 2024-02-11 John David Anglin gcc/testsuite/ChangeLog: * gcc.c-torture/execute/ieee/cdivchkf.c: Use ilogb and __builtin_fmax instead of ilogbf and __builtin_fmaxf. diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/cdivchkf.c b/gcc/testsuite/gcc.c-torture/execute/ieee/cdivchkf.c index adf1ed91dc7..86ef69f8771 100644 --- a/gcc/testsuite/gcc.c-torture/execute/ieee/cdivchkf.c +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/cdivchkf.c @@ -8,7 +8,7 @@ extern void abort (void); extern void exit (int); -extern int ilogbf (float); +extern int ilogb (double); int match (float _Complex, float _Complex); #define SMALL FLT_MIN @@ -22,7 +22,8 @@ int match (float _Complex, float _Complex); int match (float _Complex c, float _Complex z) { float rz, iz, rc, ic; - float rerr, ierr, rmax; + float rerr, ierr; + double rmax; int biterr; rz = __real__ z; iz = __imag__ z; @@ -54,11 +55,11 @@ int match (float _Complex c, float _Complex z) { ierr = __builtin_fabsf (iz - ic) / SMALL; } - rmax = __builtin_fmaxf(rerr, ierr); + rmax = __builtin_fmax (rerr, ierr); biterr = 0; if ( rmax != 0.0) { - biterr = ilogbf (rmax) + MAXBIT + 1; + biterr = ilogb (rmax) + MAXBIT + 1; } if (biterr >= ERRLIM)