From patchwork Fri Feb 2 09:58:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 195765 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:9bc1:b0:106:209c:c626 with SMTP id op1csp319525dyc; Fri, 2 Feb 2024 01:59:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IHAai08SFh2N3SGv0Sz5+avlYb7JwyTgOAa6VzbkeQqfBu12uOvGdCPR+7bEawwNNIHyJY8 X-Received: by 2002:ac8:530c:0:b0:42c:840:7daa with SMTP id t12-20020ac8530c000000b0042c08407daamr132397qtn.27.1706867979190; Fri, 02 Feb 2024 01:59:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706867979; cv=pass; d=google.com; s=arc-20160816; b=i+Zv4UnqKCBfjieqitkAOJHIMQhZPQHLl861QfCua1OSFAgM6cNcgy2DE7cCRiSzaw Ue3KKDlONbR1jY+UWXa/tWovcMWOXiR9cWIHwFJnx/ziksw6+ge9QAFdkGffHxOoE4rF +ZuIsqwC3I9hIqyKSd8+WUQBYoZH6Y8e9MMbJgddQxHhbiQ7bQ/APkyYNFDb1YVn87Gb TBRiqJDTxIYPtmXoQiTFg8t6/asDhBDczKQmf4n8rdAkRUrEMqMCWW48EWIBtgagYLrr nYOFsKxSH9du9m7pLqZRlJlyKwcLMxnJ2u55r4R669MJd1rXP4cl8GUADdnKylRhVm/L +PZw== 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=R9+K2Zy3RaqMadrkPNKCMgYa0fG2s+eDG9uJFsoRSWs=; fh=yDPyiOAY93cJklo/tbxzOdxczc5towhxS3BgF+QFcn4=; b=nCx4Hea/s8ax2WgI8j/szCUimO/9Sm04Wi8Nwa8Y92ItjPjXsvG2u6aSg2dg7JpALQ cwiEaVYsJoR1PhatjTqhIxFoV7ZtFo73R/8XJi/6Bvm2nNKVGRonmd5HS9qlgaL6bF8I nS6vn6+6lXnbO/GeeUSlXd6NVl6Sdx1k/4FWlcx3hbb1wgj4JlBE9bVv0gtBjkHzR8H8 csThlEmRTCYw4WW0fM1g9FhOOlVNUn7ZYG8PHWjM+B6HxudT+TT0rCpCsTH7bj3nfYjY lXs561K+EW4wiF26tlp8QZScrSBRt/4Wgorgx2qgviXpMAs5W09NVHsFnGNXIWEyK/j/ KN+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Ztenw/x+"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 X-Forwarded-Encrypted: i=1; AJvYcCWadgSseEmWI2VmocNscJ/7OKszFz86W01njHyT7J7GZayIuOMY58dP9CnBy25DLDPjMSqAyfuQNYUjAArKwjrVgSuPGA== Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id u21-20020a05622a199500b0042bec1a9298si1551107qtc.692.2024.02.02.01.59.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 01:59:39 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Ztenw/x+"; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 A90EF385801E for ; Fri, 2 Feb 2024 09:59:38 +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.133.124]) by sourceware.org (Postfix) with ESMTPS id 319C93858034 for ; Fri, 2 Feb 2024 09:58:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 319C93858034 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 319C93858034 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706867931; cv=none; b=qVTifnyyFuP4h2fu46NKRaTYrDPMplgMqBYvAgiaL9lHwFq2acqIQQU5z+L5utdE0E7PrlYQFNUiL4ceJ+pJwEmnn354WR282ZsTL+1nsXJBZcuycNOzt4YGukBZceHJjqxQ/tuno8BUgAhwEetITj/jtfcV5SwhnVmkuZ9vaW0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706867931; c=relaxed/simple; bh=/TBun5MqwIjsUMPAYlpSL5FG/3z1s1wwk0OEAqGVaIQ=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=WyULARmrEENAbtYLCvG0GWTyCYH584OwfqmJSHYu9Ty7/6Xv5bvyt5lcatrjzqzfxAy9IVmoNyPgJQTlscM9heID/NJgngsAULNcd60jlgQjoZxa8M5KzsHuTh+FRViyQqO7S3ZJjrKFXCjHko4bj0Rc6AwNLYrszoVDvsRSkZM= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706867929; 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=R9+K2Zy3RaqMadrkPNKCMgYa0fG2s+eDG9uJFsoRSWs=; b=Ztenw/x+z4sQY8wWADv3tTCraxSa30SvAgoExpS8iZlNv4FHbjZ6FIKSZupeSrd1oFLzff bkw4/erpSrO+rt3x8un+9WyATr+m9d3x+XoF9sv/P8/6uAGZvGmYGyAauoXsUahq02MQ7H jYRf/X1P3sepUnOtYVVuSZI4cYmj+OU= 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-376-Z4Kxtpo1OZKQeZXGj3-L4g-1; Fri, 02 Feb 2024 04:58:47 -0500 X-MC-Unique: Z4Kxtpo1OZKQeZXGj3-L4g-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (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 1AE4888CC40 for ; Fri, 2 Feb 2024 09:58:47 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.70]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D352F1121306 for ; Fri, 2 Feb 2024 09:58:46 +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 4129wehn2705598 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Fri, 2 Feb 2024 10:58:40 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 4129weVr2705597 for gcc-patches@gcc.gnu.org; Fri, 2 Feb 2024 10:58:40 +0100 Date: Fri, 2 Feb 2024 10:58:39 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [PATCH] testsuite: Add another bitint testcase [PR113691] Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline 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, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, 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: 1789780798099674732 X-GMAIL-MSGID: 1789780798099674732 Hi! This is fixed by the PR113692 patch. Will commit as obvious if that patch makes it in. 2024-02-02 Jakub Jelinek PR tree-optimization/113691 * gcc.dg/bitint-83.c: New test. Jakub --- gcc/testsuite/gcc.dg/bitint-83.c.jj 2024-02-01 12:32:39.555709390 +0100 +++ gcc/testsuite/gcc.dg/bitint-83.c 2024-02-01 12:32:31.178826835 +0100 @@ -0,0 +1,23 @@ +/* PR tree-optimization/113691 */ +/* { dg-do compile { target bitint } } */ +/* { dg-options "-O2 -std=gnu11 -w" } */ + +#if __BITINT_MAXWIDTH__ >= 944 +_BitInt (944) i; +#else +_BitInt (63) i; +#endif + +void foo (); + +void +bar () +{ + foo (i); +} + +void +foo (int *p) +{ + *p = 0; +}