From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) by sourceware.org (Postfix) with ESMTPS id 38A853858D39 for ; Mon, 19 Jun 2023 04:21:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 38A853858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-7624e8ceef7so184047585a.2 for ; Sun, 18 Jun 2023 21:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687148504; x=1689740504; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=HFkLZFuPW1Qjqq34tJj71J40hnT9nYHPmJQ9YDzzqYg=; b=e5K9Fx0/JRE232kIv8koZTWuP27AHKtUxDMPQm9MfXgSMm1Mgvkpvb+V+/EDyc48Ld Gy5hZvSThOT2C4nc3XXYZQ6W7FGCvjqr0EGVyVXF4wPzxS62mpqeVOPTEeEDVTABYSpd OZGBxu287RWf4ge7HyRmcb1uPpeESR9NYPOhRFl4S/zRNUBbH0p4q0K0M/hm90K7Wq7O 7QeEbsMWsiLLcixhcNUAEqGvp5q/fNdZCwTNQk70jn7I312Hum3LV+GaH6Y3p92sqlpq HQJZwj/VZNuYj4qnWyF+2B5WlNIPLJ4kDXX+ks1pCmANjkO21bcOziaIe+KWbwr1FPiw GinA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687148504; x=1689740504; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=HFkLZFuPW1Qjqq34tJj71J40hnT9nYHPmJQ9YDzzqYg=; b=gqikSljfJ/2Bu/ZrZJhfEbq+LnhZDCaSeRo4h+APF36HFOXHIS27v7wGFqZn1gxq2P YQNt8OGfjdGJkp/JgbkVTkvEmvwdLSokaNLNCvGlInTTNK7Haxw2morUSpn8xcQ/4wDf YCImpruHA6L4sMLMgF9pHu2zaQKB9wEzRCcu1GvK3zBPIGZDPPrsU/GnZvau6hxnuwf1 5IYKKa22jeF3zHrWyYrEfWBQmPiSgM28CiZO61dOVERYC/xls0hTAdTDLiY74qhVE/vM +kxvSRfhXUX64RJuStqZU9Mmko4nCDemAGXldkbzdy8w2sMUMZNFsaM1PKgMHIGdb4Qr 8vFw== X-Gm-Message-State: AC+VfDxcUGvlRxZ9JxoR+oi5DXGXObmWVNFzv0CNptqLo0fwYS207a50 j5GhK86zn9kp4TEvNN7acGEx/KC1hYh6RXPkut8= X-Google-Smtp-Source: ACHHUZ60uGqr5wwtiXG0koOVkjMs9gmtGYyftET6rvEOZJq4v9PADn1O1CXmXNa5lahJz8H7AE8CzeS4RPVsYPgJjdo= X-Received: by 2002:a05:620a:3a49:b0:75b:23a1:35f4 with SMTP id sk9-20020a05620a3a4900b0075b23a135f4mr10284qkn.5.1687148504460; Sun, 18 Jun 2023 21:21:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Max Filippov Date: Sun, 18 Jun 2023 21:21:33 -0700 Message-ID: Subject: Re: [PATCH 2/2] xtensa: constantsynth: Add new 2-insns synthesis pattern To: "Takayuki 'January June' Suwa" Cc: GCC Patches Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,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 List-Id: On Sun, Jun 18, 2023 at 12:10=E2=80=AFAM Takayuki 'January June' Suwa wrote: > > This patch adds a new 2-instructions constant synthesis pattern: > > - A non-negative square value that root can fit into a signed 12-bit: > =3D> "MOVI(.N) Ax, simm12" + "MULL Ax, Ax, Ax" > > Due to the execution cost of the integer multiply instruction (MULL), thi= s > synthesis works only when the 32-bit Integer Multiply Option is configure= d > and optimize for size is specified. > > gcc/ChangeLog: > > * config/xtensa/xtensa.cc (xtensa_constantsynth_2insn): > Add new pattern for the abovementioned case. > --- > gcc/config/xtensa/xtensa.cc | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) Regtested for target=3Dxtensa-linux-uclibc, no new regressions. Committed to master. --=20 Thanks. -- Max