From patchwork Fri Jan 12 09:51:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 187649 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp66351dyc; Fri, 12 Jan 2024 01:53:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IF0kG8wUGxS+zsTd2AYUimMYen9ZJqrW5q/ahKPZSrdyDRH/BEwNw0K9oeZuuYjZvus/bt7 X-Received: by 2002:a05:6214:2aa8:b0:681:24d4:150e with SMTP id js8-20020a0562142aa800b0068124d4150emr696068qvb.17.1705053201878; Fri, 12 Jan 2024 01:53:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705053201; cv=pass; d=google.com; s=arc-20160816; b=A+P0JeACpziG3/4FaTOyNhS85jGBM+rIYAVsca/gpCniQ/7IJ6fb88SvexxOoMlIu3 NQ4vRWCTPc9xK+yw/PvAqg9K7yZ5u55yXw+pAaCW2N5wR88acYqqNKExtG5RfeTmxnVn CR5GDjGU04gFIWii4lIymqoVQ+Wi0JsaHHG2aSEmdRT/50iiv7+1JMmJTt6K2rj6/9J0 mEjXL+43ZNbHoOUjf2o+EPrsxsAgwqWlCD99c8J4/x2joeYYSWIZMaVEyCaBHTmpxsg2 gWiwXlxmXJiLxnCz5BQMzVq/IX+twk0O0ui8Ztidg3wiJQPCM0XS/fhWoVSg1OcLv3rk RCIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:reply-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=Pw0nO/b9Dvogqib0u8Otz7CXjF7yx8ih3ES3rNBScHY=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=V4BQRroL2q4LO9vncvShrIAcgOVasDLtWoIPH1lPHp9LQ+a7Q0R7mk6qlF+DfdVdbk umZugCB4hS6pNltA71X21TO9GzbaonYit5SCxrT6lBmxOIvAcGQNhVEN3KR0tEaslcS8 XrdJJPTqO1UVwZa4duIE8Uqxu9Z5za9+wuthkvGT+q1Bi7YQV242RAo5OS+MBXJVuypc DUBwS5/58yW3Y7Mu2Nb4dmv2a/Um/mrJfGwvYNJHSUT2gC2Tl8ZpxV6JjYKOKNk8QFyL h1XnxIE1ViSao7LpsLBImmrE+MA8iEEGMoARnmMqPs5Hs6YuZ7wWEpLgKx/iV3BkGwa8 jKzg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="BKFPv6/S"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id r3-20020a0cc403000000b0067f70fc7fcdsi2540898qvi.405.2024.01.12.01.53.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:53:21 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="BKFPv6/S"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3070C386182D for ; Fri, 12 Jan 2024 09:53:20 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org 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 9DF98386181E for ; Fri, 12 Jan 2024 09:51:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9DF98386181E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9DF98386181E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705053082; cv=none; b=gq3RNs0n8/5OtVAwidKiTvGx68Wxc8MW5VIA45uygqbRMputR33vBuqU/rmRCvG6ZG71JrHv+dp2giFUu7F3/+tNYNnMN1idqWEqpXmGJ7jGU5eu1SfuiOP0Tk23+zJOi84ZNqi2z12oxCnGiDJj+/p2cic/v5CW0SUK3mC+nYU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705053082; c=relaxed/simple; bh=7zYzyUlmwFlrkwPQy2PoKo64fJW0LWEC30hsq1zBGwE=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=LSF2JS3hIKD5bqBKlp5w772WyQC5mHInCGSZFzXg0anYRhnQuCsO1XErFjP8Q10f0UmlshSpUK1Bwgv9OYVVi1PIwSUaEcNqcIoOvA3eGnRxHktKVGJ39xgT19qZRSqDDjnOhD6l/ZRhQtQ+/5ALkpWx+o3M9bP6i7E9GPpf33Y= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705053080; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type; bh=Pw0nO/b9Dvogqib0u8Otz7CXjF7yx8ih3ES3rNBScHY=; b=BKFPv6/S5SAXmeMmV3WTZ3R+nEsIsjdNqoxq4M5VhDfi9Hc15U0oqSuWEAJwi6K4HsZl8y OI9IN1NoMkCRV6K9fkNMV4yYrqeEuzisbfQkKrk6TzUKnNKsYoj14XLX4E/vj5zqILDmnc KuTFk6AfARW5sElvkV85x3N3ttP6k+Q= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-435-fIq8wOvIO9CzEOBZvi-Wqg-1; Fri, 12 Jan 2024 04:51:18 -0500 X-MC-Unique: fIq8wOvIO9CzEOBZvi-Wqg-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 40E1B8925C3 for ; Fri, 12 Jan 2024 09:51:18 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.92]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 05709492BC6 for ; Fri, 12 Jan 2024 09:51:17 +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 40C9pFg53307318 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Fri, 12 Jan 2024 10:51:15 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 40C9pFrR3307317 for gcc-patches@gcc.gnu.org; Fri, 12 Jan 2024 10:51:15 +0100 Date: Fri, 12 Jan 2024 10:51:14 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Fix up preprocessor conditions in bitint-31.c test Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_LOTSOFHASH, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, 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 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: , Reply-To: Jakub Jelinek Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787877865978276779 X-GMAIL-MSGID: 1787877865978276779 Hi! Andre reported on IRC that this test has weird preprocessor conditions, obviously the intent was to test whether corresponding __*_MANT_DIG__ is equal to the expected value like earlier in the function definitions, but somehow I've ended up with a comma expression instead, which was always true. Regtested on x86_64-linux and i686-linux, committed to trunk as obvious. 2024-01-12 Jakub Jelinek * gcc.dg/bitint-31.c: Fix up #if conditions checking whether __*_MANT_DIG__ is equal to a particular precision. Jakub --- gcc/testsuite/gcc.dg/bitint-31.c.jj 2023-11-09 09:04:19.208535017 +0100 +++ gcc/testsuite/gcc.dg/bitint-31.c 2024-01-11 16:15:26.552641335 +0100 @@ -280,7 +280,7 @@ main () check_round (testfltu_575 (123665200736552267030251260509823595017565674550605919957031528046448612553265933585158200530621522494798835713008069669675682517153375604983773077550946583958303386074349567uwb), __builtin_inff (), 0xffffffp+104f, __builtin_inff (), 0xffffffp+104f); #endif #endif -#if __DBL_MANT_DIG__, 53 +#if __DBL_MANT_DIG__ == 53 #if __BITINT_MAXWIDTH__ >= 135 check_round (testdbl_135 (-21267647932558650424686050812251602943wb), -0x1ffffffffffffep+71, -0x1fffffffffffffp+71, -0x1ffffffffffffep+71, -0x1ffffffffffffep+71); check_round (testdbl_135 (-21267647932558650424686050812251602944wb), -0x1ffffffffffffep+71, -0x1fffffffffffffp+71, -0x1ffffffffffffep+71, -0x1ffffffffffffep+71); @@ -360,7 +360,7 @@ main () check_round (testdblu_575 (123665200736552267030251260509823595017565674550605919957031528046448612553265933585158200530621522494798835713008069669675682517153375604983773077550946583958303386074349567uwb), 0x20000000000000p+522, 0x1fffffffffffffp+522, 0x20000000000000p+522, 0x1fffffffffffffp+522); #endif #endif -#if __LDBL_MANT_DIG__, 64 +#if __LDBL_MANT_DIG__ == 64 #if __BITINT_MAXWIDTH__ >= 135 check_round (testldbl_135 (-27577662721237071616947187835994111wb), -0xa9f5e144d113e1c4p+51L, -0xa9f5e144d113e1c5p+51L, -0xa9f5e144d113e1c4p+51L, -0xa9f5e144d113e1c4p+51L); check_round (testldbl_135 (-27577662721237071616947187835994112wb), -0xa9f5e144d113e1c4p+51L, -0xa9f5e144d113e1c5p+51L, -0xa9f5e144d113e1c4p+51L, -0xa9f5e144d113e1c4p+51L); @@ -426,7 +426,7 @@ main () check_round (testldblu_575 (123665200736552267030251260509823595017565674550605919957031528046448612553265933585158200530621522494798835713008069669675682517153375604983773077550946583958303386074349567uwb), 0x10000000000000000p+511L, 0xffffffffffffffffp+511L, 0x10000000000000000p+511L, 0xffffffffffffffffp+511L); #endif #endif -#if __FLT128_MANT_DIG__, 113 +#if __FLT128_MANT_DIG__ == 113 #if __BITINT_MAXWIDTH__ >= 135 check_round (testflt128_135 (-21646332438261169091754659013488783917055wb), -0x1fce71fdcfb1797b42dede66ac9ecp+21F128, -0x1fce71fdcfb1797b42dede66ac9edp+21F128, -0x1fce71fdcfb1797b42dede66ac9ecp+21F128, -0x1fce71fdcfb1797b42dede66ac9ecp+21F128); check_round (testflt128_135 (-21646332438261169091754659013488783917056wb), -0x1fce71fdcfb1797b42dede66ac9ecp+21F128, -0x1fce71fdcfb1797b42dede66ac9edp+21F128, -0x1fce71fdcfb1797b42dede66ac9ecp+21F128, -0x1fce71fdcfb1797b42dede66ac9ecp+21F128);