From patchwork Thu Feb 15 15:05:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 1899379 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=iPW0eg3i; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TbJKQ5PMVz23gM for ; Fri, 16 Feb 2024 02:05:46 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 93ABB38618BE for ; Thu, 15 Feb 2024 15:05:44 +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 8CDB038618BE for ; Thu, 15 Feb 2024 15:05:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8CDB038618BE 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 8CDB038618BE 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=1708009526; cv=none; b=Htr7MxFGSHI6kCNvB0HQmMPCxYrgruOTIgTXYNEZ1P1+3tRNFVXZb/U3J8kpot6r89YYrOZ5SdRPFkKgCTak3KGJjoM4zIM1xUx1M3lr6fRWjCu82ortk3T+jWrzUFx9krAkR35OsHuV1EbwSUUhJCj3MMIwQzg1xTeh7w+zT10= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708009526; c=relaxed/simple; bh=w1nkj6kgVOkrPUb+4JHQRW3j/XbhpZpM6Oq141Tvlac=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=vMEDKoVWnbzjpUAf3zR+k5uEt4xfIRIk/ud26u4myGLenR1SW6apNXVF9FCjbaLtYCFQCRalyzbSzIKEQKAp67obvbW+2fFVYnhqbz1zqrATndqyq2oTHa5eaJtEbivWq7PMCZM4qx9OFtaCUqS7DFpapJO8W1iN0ccgdDXsZT8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708009515; 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=yV5aro3zE9HhFoph5pvql0UqWWgG+bxti7VospQRtzw=; b=iPW0eg3icXNXdt6qU26lNGYtjXOGEzalyFfytBLPoSVEL/aicMUNCfbombIfBTl5RI6tju 6bunuqT5LNJxTuP+fC1HrPM2r6GerVnWmtAgBDNP+Fy1UxJowHWroP3du9VuETm1qAkkHY qK3pxhwbVY/Z05HW5mr5TiTn2C1myjs= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-231-Ht0VALpXOqKd13ibqjg5dg-1; Thu, 15 Feb 2024 10:05:13 -0500 X-MC-Unique: Ht0VALpXOqKd13ibqjg5dg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (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 5AA083C000B5 for ; Thu, 15 Feb 2024 15:05:13 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.8]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1C61E2166B32 for ; Thu, 15 Feb 2024 15:05:12 +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 41FF5Ao01220865 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Thu, 15 Feb 2024 16:05:11 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 41FF5At61220864 for gcc-patches@gcc.gnu.org; Thu, 15 Feb 2024 16:05:10 +0100 Date: Thu, 15 Feb 2024 16:05:09 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Add testcase for already fixed PR [PR107385] Message-ID: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Disposition: inline X-Spam-Status: No, score=-4.0 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_H2, 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+incoming=patchwork.ozlabs.org@gcc.gnu.org Hi! This testcase has been fixed by the PR113921 fix, but unlike testcase in there this one is not target specific. Tested on x86_64-linux -m32/-m64, committed to trunk as obvious. 2024-02-15 Jakub Jelinek PR middle-end/107385 * gcc.dg/pr107385.c: New test. Jakub --- gcc/testsuite/gcc.dg/pr107385.c.jj 2024-01-13 00:05:00.077372302 +0100 +++ gcc/testsuite/gcc.dg/pr107385.c 2024-02-15 09:18:47.711260427 +0100 @@ -0,0 +1,20 @@ +/* PR middle-end/107385 */ +/* { dg-do run } */ +/* { dg-options "-O2" } */ + +__attribute__((noipa)) int +foo (void) +{ + int x; + asm goto ("": "=r" (x) : "0" (15) :: lab); + x = 6; +lab: + return x; +} + +int +main () +{ + if (foo () != 6) + __builtin_abort (); +}