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: 83765 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5CB793861809 for ; Wed, 10 Jan 2024 16:21:17 +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+patchwork=sourceware.org@gcc.gnu.org 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; +}