Message ID | 6bdb70e9-8c02-2c91-9ec3-33004a67c3ed@arm.com |
---|---|
State | New, archived |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6a10:20da:b0:2d3:3019:e567 with SMTP id n26csp174127pxc; Fri, 5 Aug 2022 05:53:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR5V/UD8W8FQDAV3FiZTtX3qCy/Bq2RxZCf6jXYLZYW9oX4KkUg6ViN35SazuuZOOtn9jFSI X-Received: by 2002:a05:6402:90e:b0:43b:914e:f084 with SMTP id g14-20020a056402090e00b0043b914ef084mr6670035edz.144.1659704039174; Fri, 05 Aug 2022 05:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659704039; cv=none; d=google.com; s=arc-20160816; b=mdHREZAV+JyQnQ53b8mTR/WVZOVvveOpyoRAoID4QMp/N3MwfjnV6tO/grYWyActTs us/THHzD/nGH5gpxBPWzfmNJyT2uiegQfhuo2wqr/nVbYIufwl1yeMy9zVxoT+6M8oUv r84GgMA8nVluYlcw3JjyjhuS9nGrjcrMeLS3Q40gQVyR2pytLecw+LfXIvA2d00S9Fys bfmylQvYbfdef9Drm1fUen4qUAM3TNMBBVBRFcOuUe/KiIyEFWcQPA7UpgA6AheC3tSM PjOKbbkwv4jCp+ixXhah1m9gaiErJ3q/FUCztxZ06ruwQoeoFSB0Ffwx1Ncm/bZWeP3i cjeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:reply-to:from:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence :in-reply-to:references:to:content-language:subject:user-agent :mime-version:date:message-id:dmarc-filter:delivered-to :dkim-signature:dkim-filter; bh=pQOjoOiP09kxV643OhLiGH4qegREcqiUiK8X8XmQfBQ=; b=hA4c8NjM0F/9+VVMfym1/P9/jcAYkN8Xi9RWKGKpdQAOpYb+oVfvl/6oYUC40gHE8H XZwy2/tmAPzG8Pvu0pbgVSZV1B2VwZqvwuwb469oCkwEIo1ITtnVjJVZkCUssuljy8yV pR3d4fULNHxfZjB/+dDlZGz+SAr8bLjbpJCfcIAUZXPzBpOA96CDhY/J44RCcvzU5+NC 3iHCYyDZsNuXZ8wE33R+OBxvOrzTKBngUaJIYFIcuOIudzpyvmWW5qRL4PPeLmlZCXn1 zioKA8D3MrH4YD1wrKYh0RyobidiKGlDI8UuqlwhO/5E+vJOcvscTxoAsnKeRdOQjv3/ RNvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=GFXBotKN; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id hw19-20020a170907a0d300b00726b4f91300si1837090ejc.269.2022.08.05.05.53.58 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 05:53:59 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@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=@gcc.gnu.org header.s=default header.b=GFXBotKN; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 005E33857BB2 for <ouuuleilei@gmail.com>; Fri, 5 Aug 2022 12:53:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 005E33857BB2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1659704038; bh=pQOjoOiP09kxV643OhLiGH4qegREcqiUiK8X8XmQfBQ=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=GFXBotKNfGFkuVVg7qeH5Yr1qkXs1OQuejsqBSv7speiFVKz4ltiiquRgys8eqDPg aDoc/OeT389it92hAe0Hmx+kGwUsFFffXcoFet83QtURQ9jZcN6he5dwFdSXjOqxZd Q5EBLNlgWW0DdizL8QmnnxHRNBjpHQMFGO+DTJN0= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id 3207E3858C53 for <gcc-patches@gcc.gnu.org>; Fri, 5 Aug 2022 12:53:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3207E3858C53 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 596C7106F; Fri, 5 Aug 2022 05:53:15 -0700 (PDT) Received: from [10.57.14.36] (unknown [10.57.14.36]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E25473F73B; Fri, 5 Aug 2022 05:53:13 -0700 (PDT) Content-Type: multipart/mixed; boundary="------------uVkZF0DApNyGAdav67WhpNna" Message-ID: <6bdb70e9-8c02-2c91-9ec3-33004a67c3ed@arm.com> Date: Fri, 5 Aug 2022 13:53:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: [PATCH 1/4] aarch64: encourage use of GPR input for SIMD inserts Content-Language: en-US To: gcc-patches@gcc.gnu.org References: <95d2de77-5b68-6d0b-ac99-ac1ca28835e2@arm.com> In-Reply-To: <95d2de77-5b68-6d0b-ac99-ac1ca28835e2@arm.com> X-Spam-Status: No, score=-22.5 required=5.0 tests=BAYES_00, BODY_8BITS, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, 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.29 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> From: "Andre Vieira \(lists\) via Gcc-patches" <gcc-patches@gcc.gnu.org> Reply-To: "Andre Vieira \(lists\)" <andre.simoesdiasvieira@arm.com> Cc: Richard Sandiford <richard.sandiford@arm.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1740325822545293844?= X-GMAIL-MSGID: =?utf-8?q?1740325822545293844?= |
Series |
aarch64: Improve codegen for dups and constructors
|
|
Commit Message
Andre Vieira (lists)
Aug. 5, 2022, 12:53 p.m. UTC
Hi, This enables and makes it more likely the compiler is able to use GPR input for SIMD inserts. I believe this is some outdated hack we used to prevent costly GPR<->SIMD register file swaps. This patch is required for better codegen in situations like the test case 'int8_3' in the next patch in this series. Bootstrapped and regression tested together with the next patch on aarch64-none-linux-gnu. gcc/ChangeLog: 2022-08-05 Andre Vieira <andre.simoesdiasvieira@arm.com> * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Remove '?' modifier.
diff --git a/gcc/config/aarch64/aarch64-simd.md b/gcc/config/aarch64/aarch64-simd.md index 587a45d77721e1b39accbad7dbeca4d741eccb10..51eab5a872ade7b70268676346e8be7c9c6c8e3a 100644 --- a/gcc/config/aarch64/aarch64-simd.md +++ b/gcc/config/aarch64/aarch64-simd.md @@ -1038,7 +1038,7 @@ [(set (match_operand:VALL_F16 0 "register_operand" "=w,w,w") (vec_merge:VALL_F16 (vec_duplicate:VALL_F16 - (match_operand:<VEL> 1 "aarch64_simd_nonimmediate_operand" "w,?r,Utv")) + (match_operand:<VEL> 1 "aarch64_simd_nonimmediate_operand" "w,r,Utv")) (match_operand:VALL_F16 3 "register_operand" "0,0,0") (match_operand:SI 2 "immediate_operand" "i,i,i")))] "TARGET_SIMD"