From patchwork Thu Feb 15 19:07:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 1899678 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=Px/FhFfC; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4TbPjK1Fm4z23j8 for ; Fri, 16 Feb 2024 06:08:19 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E688F386C5BA for ; Thu, 15 Feb 2024 19:08:16 +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 C1637386C5B6 for ; Thu, 15 Feb 2024 19:07:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C1637386C5B6 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 C1637386C5B6 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=1708024075; cv=none; b=IarqTy66Ed5augUPIBMHeY6kFsiGkMpYDiuv8P2RyMU1SN/IeRZ35/lMx7a08ltS9lDXLCHrTxaLP242gfbqIpQTJSAxvuEuAhlSb8F29hEZMrHxHDE4x5IdAZyjz7MFssnhYtMkQrIoR3vXrSWV7gfhqJ/und0o+ZdI805NfMU= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708024075; c=relaxed/simple; bh=ijsa6Y4nIA55C74HzKcLQijTJo/My6KSjlxJec26SA8=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=gdKELKAfLtU6dDDVw1BVp8PI9sFScwSqljKVR/6deXlncPImKjRwcMcpzpSWUrENykV9704zg1Oe6kaaQbPaZkUD8LOnXJ1LkwFJ0Sryjy179dayBDY7v2sKCTSWpIjY0mcx87rrUsM5W9dZTvztuoTuGnHw1RmnSo72Sn2INzY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1708024072; 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=43R1RckZpA31FPiUEYvCBzZGgS3aCt6K9F+y5J31pB4=; b=Px/FhFfCo1YOI+SuLPQxSUAWrnIO54WWcJ3mAGGbC8u825RhMlhiNtn/9xMX5rAxXrktM7 bPB2hInjpLGmZCDnCcXNaqn7JrjP74UrQ/Y5VYWV4RsgsXlHeSpj50Nyf1eMbrHO9Veh4z keoWludK+EtDcY6xR75BQPZlegHuA6g= 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-609-sTEEp7TFO1GDl73m0Smf6w-1; Thu, 15 Feb 2024 14:07:51 -0500 X-MC-Unique: sTEEp7TFO1GDl73m0Smf6w-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 B0A118B27AB for ; Thu, 15 Feb 2024 19:07:50 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.8]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 744351C060B1 for ; Thu, 15 Feb 2024 19:07:50 +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 41FJ7lMp1235525 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT) for ; Thu, 15 Feb 2024 20:07:48 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 41FJ7lW31235524 for gcc-patches@gcc.gnu.org; Thu, 15 Feb 2024 20:07:47 +0100 Date: Thu, 15 Feb 2024 20:07:47 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] testsuite: Require lra effective target for pr107385.c 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=-3.8 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! Old reload doesn't support asm goto with output operands. We have lra effective target (though, strangely it returns 0 just for 2 targets out of at least 16 targets with no LRA support), so this patch uses it, similarly how it is done in other asm goto tests with output operands. Tested on x86_64-linux, committed to trunk and other release branches. Thanks to Andrew Pinski for noticing this on IRC. 2024-02-15 Jakub Jelinek PR middle-end/107385 * gcc.dg/pr107385.c: Require lra effective target. Jakub --- gcc/testsuite/gcc.dg/pr107385.c.jj 2024-02-15 15:51:24.171246580 +0100 +++ gcc/testsuite/gcc.dg/pr107385.c 2024-02-15 20:02:15.023763659 +0100 @@ -1,5 +1,5 @@ /* PR middle-end/107385 */ -/* { dg-do run } */ +/* { dg-do run { target lra } } */ /* { dg-options "-O2" } */ __attribute__((noipa)) int