From patchwork Wed Jan 10 16:20:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 186948 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2411:b0:101:2151:f287 with SMTP id m17csp899284dyi; Wed, 10 Jan 2024 08:21:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrHTM+1+C8xV3Wu1C8LOYkFsPe9kAbnBcU7k6mLFmtzaz13gjivfxVftQh5vR+f3HFleRl X-Received: by 2002:a05:6871:493:b0:206:454d:c73a with SMTP id f19-20020a056871049300b00206454dc73amr912644oaj.55.1704903704180; Wed, 10 Jan 2024 08:21:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1704903704; cv=pass; d=google.com; s=arc-20160816; b=rXleJFi6MPVGsHLHyG0K2xG3KO7IfpNFY1z2qZkRzDSAuy09LA/7FBbcexMVrXSjgU J4Pc8ZEt+CaEsyqylmCf+WgHdTx4tOJ2ZNBYCR8CFnNWm5ytX79ZDaX3Efu35//cd0w0 it27C/Dh9N/a7+NggRaVqIJAQ5tMvIDZET3WC2m72eBBjOQyJ4opPLWCYuwPSxXqxXHt ib+nxJPouvtv/0E+g1yRWRinP9DdBS3dadtsu/8nysh3qkXFudFY/w2BCxgvNtETilLL +9arV2fJRntNd5aRy5lpOXXoBxABnblGNl9LAqUvIDN0cEpP5/5Un9EyfQS2G9e5LkHF ZnLw== 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=D1fct8fOJEkQxq+bCTrAf976t6o81rSpBzi+swj0zdA=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=z+f+hCMMQicsFlboYAs0Y6A9FKaqA/WSJ1uzYppUBD1cH+myB22TBhovSp0QZWPUw/ B/aIdrFFrODVv70WqtSGB0bP/4yVrLbPCdNA+kqQBaQcd6bjurLALAJuQPdQupP/g2Bm VsqZwPe5fIfNUnUOEnAim6s5FKgpgrwdNOWpjgabS1hmOfzT/aFhr8lh9px5QVVtPOVj AoRmrA8CmWE3zWZOPK5ewQG3588MjBXSvTJ6ePURuOVB9fOY8FOZcdy6D1L7HWdcG4D4 2URz87rQLXNUQ+Mo9pT0V51IZAJeLSl7DpCvsjE11+IFHjHHre952n47CNMI1z0hbcqf bfpw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=i0JouMF0; 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 b14-20020a05620a088e00b007811ac158fasi4294736qka.214.2024.01.10.08.21.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jan 2024 08:21:44 -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=i0JouMF0; 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 9C0883861801 for ; Wed, 10 Jan 2024 16:21:32 +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 D123538582B0 for ; Wed, 10 Jan 2024 16:20:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D123538582B0 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 D123538582B0 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=1704903649; cv=none; b=mh79XxKD4o9vnEB/+qq0omdpK7DjZsDQPh8NuoW6DVpyGmq7eMLmIPiF+eoYwLVPLVASJJ8/+ZwWaYKq0ATW35j4nGCaD5axtPTwd4QY9TGR8AsGpJ5EjFjDkocQQTySwHbA1yn0x8h9MmD0h2iDmtSaF+Lg2v3scwyLsUxDZxY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704903649; c=relaxed/simple; bh=CJqIpWLWBpT/Ivt59YRRsRNlG9KizPypmjomZ7VMXJE=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=YDjBvWjwajtP3MJ24ztPfWWJsOqRfYsSxCP8gvk9QbQ5h5SCMOUaQXYGRCarQsP8FfQFoETOeBXUWX7bvaL0UVQmZIAkjsc93oWIkgY/Xe76w2BCGWr9F2SeuvnoogWywk27Q+59OFkRUmdj+MC+6RGMPRhSPnWKDsK5qQx6eaE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704903646; 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=D1fct8fOJEkQxq+bCTrAf976t6o81rSpBzi+swj0zdA=; b=i0JouMF0iEQEX7ajrcidBtwgdIQuKC9US1gWJxh/lbzUVz2vXZAbstFKy+Q0zeZePxtD+B WDLRgdKxYkGFt9yMmUG3pI9MCwG0ljr7/SsFZ7oBmPI1xFSBaUFALT2JZP2SYj/BvdbB13 5uRT/8FGEKiA9OLULUSqTAYuaF/Totk= 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-64-GLnx6fdtOGSQn_7_l1LeqQ-1; Wed, 10 Jan 2024 11:20:45 -0500 X-MC-Unique: GLnx6fdtOGSQn_7_l1LeqQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (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 2386785A58A for ; Wed, 10 Jan 2024 16:20:44 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.92]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DC05C1C060AF for ; Wed, 10 Jan 2024 16:20:43 +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 40AGKfGq401877 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Wed, 10 Jan 2024 17:20:41 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 40AGKfhx401876 for gcc-patches@gcc.gnu.org; Wed, 10 Jan 2024 17:20:41 +0100 Date: Wed, 10 Jan 2024 17:20:40 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Add testcase for already fixed PR [PR112734] Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 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, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, 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: 1787721106731316303 X-GMAIL-MSGID: 1787721106731316303 Hi! This test was already fixed by r14-6051 aka PR112770 fix. Tested on x86_64-linux, committed to trunk as obvious. 2024-01-10 Jakub Jelinek PR tree-optimization/112734 * gcc.dg/bitint-64.c: New test. Jakub --- gcc/testsuite/gcc.dg/bitint-64.c.jj 2024-01-10 17:17:08.438466886 +0100 +++ gcc/testsuite/gcc.dg/bitint-64.c 2024-01-10 17:15:20.431019135 +0100 @@ -0,0 +1,16 @@ +/* PR tree-optimization/112734 */ +/* { dg-do compile { target bitint } } */ +/* { dg-options "-std=c23 -fnon-call-exceptions -ftrapv" } */ + +#if __BITINT_MAXWIDTH__ >= 128 +_BitInt(128) out; +#else +int out; +#endif + +int +main () +{ + _BitInt(8) q[1]; + out -= 1; +}