From patchwork Thu Jan 25 10:29:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Kuvyrkov X-Patchwork-Id: 765945 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:10c4:b0:337:62d3:c6d5 with SMTP id b4csp2541450wrx; Thu, 25 Jan 2024 02:31:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHZf7naeqcbXGu4JUCCnZ0qkqlpbSBLB+jWph+i0ll/rEHM7qOh4bFAHSPwGq5XhVfXpDQP X-Received: by 2002:a05:6808:1309:b0:3bd:d7d8:2b26 with SMTP id y9-20020a056808130900b003bdd7d82b26mr603448oiv.27.1706178662314; Thu, 25 Jan 2024 02:31:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706178662; cv=pass; d=google.com; s=arc-20160816; b=PAsv9dKM5sIfST2p5EFxWyd8fAqBAZkih1tq5wT8Qkf5o+3IiVnYaFHc9CRtkMGTe8 98lcO4+rbSprPePnKmmSiYgiDUGmTdGA+mU7tFGQYBaryZGzDf5YO+RhhoYCGM1fwKTP D3yEGfjSDeBe0NP1yKDFI1ovwLHfMDsTzKfgYqBii0znbunQ5y/fAmZZs4YBN9/3QwEm NGtP2OOtp3YNsyL6SC0eC8y39C15ebnh9n3i3gElljpspxVQHemM0f/Qxt/KFTSyunfd /HZIO8bwxWhKIV4QfXEzBoHwzr/d4laBiZxRrSSMGsh8lWojGBhh5fVKtmgIIyMhtpOD f2Yg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=bgm8/VwEy7I+/A9YTFpZpxucn/NFh6ueWqXuh/cqYww=; fh=AGESgE65Mm6+OpxPhxgNhZC4r91fQM+zGr3GOM2bF8s=; b=r1GVyTEPKUP95dG3x0oM144ecmTsXWBJ+vxJl9ska2EX8mdBPrpqwoIeB51qL3gVDi Gl67QZKPDgJvDg4V3H+XQNdusYH3sF4TXC1EybrmqLA7CeG/ZkzBThsc16Rgb0b0NzlW Cw0z3BxyZqgjb2MOpRkgH9C4k715Vacrpzgdtojsl9tDk5Hjyy/4KWeaZ+9isltF10Hu hKnhb1f1jbFElC4ecfcoOI4rfvUqF3miI3U4Sy3q8lPiCvuyPSW53XmW5NutBYuHNMhl mHn2gxSMD8FyDmZXDhXbE/9GcHXY77KtT1/QP4YFN3lYw2bH3TemMgZLUIbczrjLxiLL JscQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SmXhGOq2; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+patch=linaro.org@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id u13-20020a05620a084d00b0077a0d2652absi12152885qku.759.2024.01.25.02.31.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 02:31:02 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+patch=linaro.org@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=@linaro.org header.s=google header.b=SmXhGOq2; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+patch=linaro.org@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+patch=linaro.org@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D1D77385843E for ; Thu, 25 Jan 2024 10:31:01 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by sourceware.org (Postfix) with ESMTPS id 679363858D28 for ; Thu, 25 Jan 2024 10:29:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 679363858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 679363858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::229 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706178595; cv=none; b=w+a2dQBfsWNEo59ruG0iJ5plurMOlUU6peaHLnRLBZDXPN5ykl5xO2e7Ad5M3FWOKQSPNCZfU0WnHjYqzm1jcifLtzGiLd+GIMxyf6vhJPv58SIJ524F/dE8uIrfyPd49ozVu5eFKR2lx56KNpqoYYra43qD4YV+PAzzmI1Oy5s= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706178595; c=relaxed/simple; bh=4GLJp9l1k187hUbHdf+uYFez3xbEouB9aKwx+qQZgso=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=B/Fj0/XeFG2b9vqRNr2nTxzEbkfokk8owu/J6F9I59a72JsXfWq6MDN9oL1ksxyWVPLC+cGhGt8ZK6jgeNY7p5H816cZ4/JQ+T1UpB1w5QqndxUR72RVsVNg5UzKufHovHrVvUA5DcrWyOJoI9Z/R5ydSGtqq29KQQ9VEdT5n1w= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2cf3191a28cso2442511fa.0 for ; Thu, 25 Jan 2024 02:29:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706178591; x=1706783391; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=bgm8/VwEy7I+/A9YTFpZpxucn/NFh6ueWqXuh/cqYww=; b=SmXhGOq27j7naYPFX1MiKFks4Qc9Dc4FznWtxtU0d/F9tg84wNUI3z/7Uzv8tfmwou mF+gFQ2nvuuEJvKYI5FmuipnGRQvCsp13bmJSPZgv2FJd4mPlmxsR2yGGvXzdLzHzk2J ezA1gdVaaDAjfkihsuAK7K9brpHVSxbXOngcTfaHN/ujF/9LUFRYkxvQSf90Y440JUH6 BmILHdInpwVJNWamm7L1PtNI/IlIT9I0mP30e9seyCMfQPyoK67GGej3JFkNysdmfTiD oxTq5fWWsPTMWgwMZtxW0lJjclbmQTXfWhzT9ceb2muzYVk9wcrIyHv+cakMDqOm5BsY nGdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706178591; x=1706783391; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bgm8/VwEy7I+/A9YTFpZpxucn/NFh6ueWqXuh/cqYww=; b=bOzVbLF3kNbOP/PkDr03gDTSaf9RpBD4khef9BnH1XRiIXPCdJnSBLNIHegJZdEjvk 7uXNzDgw6JzeV4leQI6oTr/KhFkvTlGG7uXcsHS5Vf5hWm2wGngij+qY/dll81c87wgA gcgLOmXb88u9szF86zcYbuA+bsizNFYfxctuhflosjGf8uh0+PLgwChnDDTJm3URlAIm xADtnsiSO1UHR+WeqBk0rMKVFJ44hJsGIjR6D7Oo08S0/yUOiK2zstaVdEgNLUwn94AO 2AEizPvJCkdlK8fhlzJ+UxPPYLxzernNBKBLEwcqu9OmKHMmb51PMcEPQLKaemzIeWpF 41Mg== X-Gm-Message-State: AOJu0YxjZ1YKvkRaCH7nYhAT69VsMwkVCzV1kDYDU7qj3fPNud/ClAg2 xp3m39POexsIBT7urYZMTx1g/3vTiXbG79J9LF07BbN4XueplTBL1ey2knhCUralgzL4RBiPIGJ c1w== X-Received: by 2002:a19:e05c:0:b0:510:d51:2596 with SMTP id g28-20020a19e05c000000b005100d512596mr838879lfj.1.1706178591017; Thu, 25 Jan 2024 02:29:51 -0800 (PST) Received: from localhost.localdomain (static.225.72.216.95.clients.your-server.de. [95.216.72.225]) by smtp.gmail.com with ESMTPSA id c26-20020a056512239a00b00510203022a0sm53554lfv.199.2024.01.25.02.29.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 02:29:49 -0800 (PST) From: Maxim Kuvyrkov To: gcc-patches@gcc.gnu.org, Richard Earnshaw Cc: Maxim Kuvyrkov , Roger Sayle Subject: [PATCH] Make gcc.target/arm/bics_3.c testcase a bit more generic [PR113542] Date: Thu, 25 Jan 2024 10:29:11 +0000 Message-Id: <20240125102911.1582519-1-maxim.kuvyrkov@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-11.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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: , Errors-To: gcc-patches-bounces+patch=linaro.org@gcc.gnu.org After fwprop improvement in r14-8319-g86de9b66480, codegen in bics_3.c test changed from "bics" to "bic" instruction, with the overall instruction stream remaining at the same quality. This patch makes the scan-assembler directive accept both "bics" and "bic". BEFORE r14-8319-g86de9b66480: bics r0, r0, r1 @ 9 [c=4 l=4] *andsi_notsi_si_compare0_scratch mov r0, #1 @ 23 [c=4 l=4] *thumb2_movsi_vfp/1 it eq moveq r0, #0 @ 26 [c=8 l=4] *p *thumb2_movsi_vfp/2 bx lr @ 29 [c=8 l=4] *thumb2_return AFTER r14-8319-g86de9b66480: bic r0, r0, r1 @ 8 [c=4 l=4] andsi_notsi_si subs r0, r0, #0 @ 22 [c=4 l=4] cmpsi2_addneg/0 it ne movne r0, #1 @ 23 [c=8 l=4] *p *thumb2_movsi_vfp/2 bx lr @ 26 [c=8 l=4] *thumb2_return gcc/testsuite/ChangeLog: PR target/113542 * gcc.target/arm/bics_3.c: Update scan-assembler directive. --- gcc/testsuite/gcc.target/arm/bics_3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/bics_3.c b/gcc/testsuite/gcc.target/arm/bics_3.c index e056b264e15..c5bed3c92d2 100644 --- a/gcc/testsuite/gcc.target/arm/bics_3.c +++ b/gcc/testsuite/gcc.target/arm/bics_3.c @@ -35,6 +35,6 @@ main (void) return 0; } -/* { dg-final { scan-assembler-times "bics\tr\[0-9\]+, r\[0-9\]+, r\[0-9\]+" 2 } } */ -/* { dg-final { scan-assembler-times "bics\tr\[0-9\]+, r\[0-9\]+, r\[0-9\]+, .sl #2" 1 } } */ +/* { dg-final { scan-assembler-times "bics?\tr\[0-9\]+, r\[0-9\]+, r\[0-9\]+" 2 } } */ +/* { dg-final { scan-assembler-times "bics?\tr\[0-9\]+, r\[0-9\]+, r\[0-9\]+, .sl #2" 1 } } */