[{"id":3673402,"web_url":"http://patchwork.ozlabs.org/comment/3673402/","msgid":"<CAMo8BfK++OEobfcb03ft-6Pv_SJAxAjZ-4totXZMRJfmvN=5mw@mail.gmail.com>","list_archive_url":null,"date":"2026-04-04T08:15:02","subject":"Re: [PATCH 1/2] xtensa: Small change to the alternative negsf2\n pattern","submitter":{"id":2793,"url":"http://patchwork.ozlabs.org/api/people/2793/","name":"Max Filippov","email":"jcmvbkbc@gmail.com"},"content":"On Thu, Apr 2, 2026 at 7:02 PM Takayuki 'January June' Suwa\n<jjsuwa_sys3175@yahoo.co.jp> wrote:\n>\n> The previously added alternative negsf2 pattern (for cases where both\n> source and destination are GP registers) directly specified multiple\n> machine instructions in the output template, but this patch replaces\n> that with an RTL representation using the split pattern, to increase\n> opportunities for instruction reordering.\n>\n> gcc/ChangeLog:\n>\n>         * config/xtensa/xtensa.md (negsf2):\n>         Change define_insn to define_insn_and_split, and replace the\n>         corresponding output template with the split pattern.\n> ---\n>   gcc/config/xtensa/xtensa.md | 14 ++++++++++++--\n>   1 file changed, 12 insertions(+), 2 deletions(-)\n\nRegtested for target=xtensa-linux-uclibc, no new regressions.\nCommitted the whole series to master.","headers":{"Return-Path":"<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":["incoming@patchwork.ozlabs.org","gcc-patches@gcc.gnu.org"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","gcc-patches@gcc.gnu.org"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=FHaJ7cmv;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)","sourceware.org;\n\tdkim=pass (2048-bit key,\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=FHaJ7cmv","sourceware.org;\n dmarc=pass (p=none dis=none) header.from=gmail.com","sourceware.org; spf=pass smtp.mailfrom=gmail.com","server2.sourceware.org;\n arc=pass smtp.remote-ip=209.85.222.173"],"Received":["from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fnpM63WMYz1yCs\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 04 Apr 2026 19:16:02 +1100 (AEDT)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 715734BA23EE\n\tfor <incoming@patchwork.ozlabs.org>; Sat,  4 Apr 2026 08:16:00 +0000 (GMT)","from mail-qk1-f173.google.com (mail-qk1-f173.google.com\n [209.85.222.173])\n by sourceware.org (Postfix) with ESMTPS id 431F84BA9009\n for <gcc-patches@gcc.gnu.org>; Sat,  4 Apr 2026 08:15:15 +0000 (GMT)","by mail-qk1-f173.google.com with SMTP id\n af79cd13be357-8d1b746f522so290254985a.0\n for <gcc-patches@gcc.gnu.org>; Sat, 04 Apr 2026 01:15:15 -0700 (PDT)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 715734BA23EE","OpenDKIM Filter v2.11.0 sourceware.org 431F84BA9009"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 431F84BA9009","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 431F84BA9009","ARC-Seal":["i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1775290515; cv=pass;\n b=g2lNSP33SCZBV5DN2dZLMM6IcjSJys9J6+djPJGr5j664aWeHLheXwJAHuc73tDDzwXDs6Dmx988Z4Cz05RBjbWSLcO8V4WQUoar2z0k78E/n6VgSOmL3WZwR5urDKayiQ9+DdTJupkFzGiA+ag21oYuGm6ODLZFmWFdAcKtbxw=","i=1; a=rsa-sha256; t=1775290515; cv=none;\n d=google.com; s=arc-20240605;\n b=YoRLNIt2MXf0vX71k2xckueahth9rtuLRc4Nql8JYZieH7PNSu1z8r9MSgiv7P64vF\n uGi5xia4KlO2D1pQ06IOKoCwCGVXOLVyZqTQXu2Z2KlzdZumezx2lHCfGnR6DjfyVcFm\n q3j6Vp9oJrpLv9T6PoMLN7vM3p4aa0OlsvY9QxKZkOZZHydeMK5uy04ItA16w38j5LPo\n x0b5Eb4WM5GVL2W5eH9/uuaseheXTn3MDgpK6Q/vOlCx6O1K5GScpNfJ0K6uFMX6PSS0\n 7tPGCnBhQ11w3s+YUHdh7/pyUWEJutNs0MLITeI4SyklAJ8CZCqma3nYrMEIZx8FiUEj\n wWFg=="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775290515; c=relaxed/simple;\n bh=v4Myhcx4urmXFFyV6OMHzBXyFjvVVq8n54IfXBWgffI=;\n h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;\n b=sLVamtZvCG33zIoR2GNepVFE4E1s/3Ly8SsgpdXUOBklDAW+WBxkzpvybShcx8LE7ZyyQUfwW5yCibQt5VVmcC+Pp3b47K+SqymiSZ7A1mTJicFXR65ip1JMwGvXujPeHDfk0PcAWt+FzpX7Lr7AOe9x2LR6+Y0EgqZXWpwahkw=","i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:dkim-signature;\n bh=n5V/WKtfgvI/J/ZOF3cBdY9ueh7YSiVC15w9Xo9E2rU=;\n fh=8m2HeCm0G1W3PFnSLlQafnUEAwXk3jsAddIRb77DSI8=;\n b=QTKYmY9Q1m+qaSH5kHf4z3EdEPydge6NxkeKpvKc4gOAeHHzolnYHtr/HYTumqXvcA\n KPj48d+AR5mE7hDSGbXvJiFUpyXFwVMBgmjcfoO/3FgpTFSlmIH7CbnTTsWzFyWOwtA6\n FM9UJcHANmlI2TnPfC1seo31kQedxX2mP8h/KGbOgzVXrwGP40o2X1sl7wH1sq2NsZmR\n 6HvDHHa8ulg7X70CbAVzZTpfwxO8FTRhv+2IsdXEFJBxzlDq0z6SJSMc4vt0v4LXE70O\n TzvyKsNh5RhzyBuoNyxtKtyI0e6vvaxjGRVAwpBSYRQ1htDLRlvmWAP2iH9rVMh4x/os\n mBBQ==; darn=gcc.gnu.org"],"ARC-Authentication-Results":["i=2; server2.sourceware.org","i=1; mx.google.com; arc=none"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1775290515; x=1775895315; darn=gcc.gnu.org;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:from:to:cc:subject:date\n :message-id:reply-to;\n bh=n5V/WKtfgvI/J/ZOF3cBdY9ueh7YSiVC15w9Xo9E2rU=;\n b=FHaJ7cmvkort/QoGDAVgxd+FBZ7bkOHx6vKJmSqUAvRGxeRmACpjY/JptlAY4HHIef\n 8i3rne0PvZk9ETTlsrz2L1dv6IdIbb2ZM3s0gjLAizj5qn2LnPjsecIQEAp0ZhmDJdZ/\n mCxwzzVxackxssWSz84/v2FyOWNwiCt7TJMJzevz8SRo0dnDDacO7SXXYb4NF5h8PTMp\n Mcx+bK8en5r9Z79Rp5fH4jqF9VzfhdPU/Kyy63ndTaX5nEvojJjwzLhAjS+2dakUm7Ic\n k6VPQH5LN0sos/+Rx7UOy8TNWmwOA4x4/4ZobrdDeFmjabXtg8rlwj1SKi7i+dYdx7jr\n gsnQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775290515; x=1775895315;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=n5V/WKtfgvI/J/ZOF3cBdY9ueh7YSiVC15w9Xo9E2rU=;\n b=qYbhMvtupED8bHNEeUEQNfiE/TRx9LtnTv0SFK3uJRdVp8mEXVT4CF0Rc1iMvx9u+x\n QBhwP9C938hnTpAlSER21r/RbCiBSnGQxOFT/ZQPz8ior94CBoG7NX2jIVMBq0aMjPtt\n 6hajlScpW+Ld+xnenYXu1rKnHUkPLyZHEWVFDBh61au+pxsk9SMWdLC3qIQwoap+jH6f\n g9PHXL2RI+8CtU0FeOY4W16Sz9cPuKcfLUH4cM00n2hQmJmb5JiqYNqEUdnzCDds+bD8\n 5ZkwS4bX9dRiulokeHS8nlBV3xnyzQz58vLOLJd4fUy8+wDYdQTpIr+FuYola4nq3hUx\n yJfQ==","X-Gm-Message-State":"AOJu0YwISvYdE9NnNDPOQR+eAunaPCwHOpgrzYAszYWHsmxa4d3r72yZ\n p2MrUi4+TSzK0Tu8NT3bqXPXWiuBORtsJtDs9AGBUZcxS37cam91dYz8H4cumQS0G1iHvKuN/85\n UkmeEjWsx4Qwbd0y6TUfq4TJ4x628sweb/6iX","X-Gm-Gg":"AeBDiethGzneJtkB72t0j41LuygXdOetVAZgHBNh0vkmq1V7Q/+OS835oGXeXFYuPQp\n IDXQNTeSlawOpuMDIcZ7yGnkjNvDO0LGVif1yURqQqcW1zBQhtGWGft43HBpt4VbftKTJAER9eB\n Jykl2BMwcZZsJt1yv8toW3nnNXP/yBbAo5pBAwVHp7x2KNfvYu9bN9uhWifSAYbwN7+VtKhUiQQ\n /bW6DLWeo0NQoYtErmBiNA98DIsDBsxu2Z5seR1vBqZVq3Tmp2V/P7Q291kgIxNnVdZloZ8cQs1\n V394YGeSIhWZpj1zvw+HJSZpM4j8iP0zFwLUa7nNpVh8ZPU54KD3MbaY/9JspGQ97Qahe7EuIv5\n e/3JNvikYaTDHLbZop89mCvl12A==","X-Received":"by 2002:a05:620a:2805:b0:8cf:cfdf:733e with SMTP id\n af79cd13be357-8d41dd41100mr779123485a.32.1775290514443; Sat, 04 Apr 2026\n 01:15:14 -0700 (PDT)","MIME-Version":"1.0","References":"<d99ecf9b-519f-4ba1-9a94-d20e2cff9c3e.ref@yahoo.co.jp>\n <d99ecf9b-519f-4ba1-9a94-d20e2cff9c3e@yahoo.co.jp>","In-Reply-To":"<d99ecf9b-519f-4ba1-9a94-d20e2cff9c3e@yahoo.co.jp>","From":"Max Filippov <jcmvbkbc@gmail.com>","Date":"Sat, 4 Apr 2026 01:15:02 -0700","X-Gm-Features":"AQROBzBoxUdaVa13rmBiGBn1xkTeFTLy3TR-GapMY5pGNt6zJNWrqnXHjXiykhM","Message-ID":"\n <CAMo8BfK++OEobfcb03ft-6Pv_SJAxAjZ-4totXZMRJfmvN=5mw@mail.gmail.com>","Subject":"Re: [PATCH 1/2] xtensa: Small change to the alternative negsf2\n pattern","To":"\"Takayuki 'January June' Suwa\" <jjsuwa_sys3175@yahoo.co.jp>","Cc":"gcc-patches@gcc.gnu.org","Content-Type":"text/plain; charset=\"UTF-8\"","Content-Transfer-Encoding":"quoted-printable","X-BeenThere":"gcc-patches@gcc.gnu.org","X-Mailman-Version":"2.1.30","Precedence":"list","List-Id":"Gcc-patches mailing list <gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <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>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"}}]