From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by sourceware.org (Postfix) with ESMTPS id 217F0382D3AB for ; Mon, 14 Nov 2022 19:05:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 217F0382D3AB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vrull.eu Received: by mail-lj1-x236.google.com with SMTP id s24so14501952ljs.11 for ; Mon, 14 Nov 2022 11:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=SX4yTz0K9MyZzYKFlWBH++YLmYjw0oyzC3W39lIUokg=; b=Ct39/M3i1OZ802oUjF7r+T/BDdo8jK7mqHwutr5DeMNp+3laUvJk3oHidHHValXa4m rDUHnuVarGH/K1pgpsvua6IXAD1SJHl7gCA0xg53VAezfMwLzpGIPyD9DsZlUxSFAEsY CPf5hbstiPYzN05RtT0ykxmYuj7VSR19baFOxwVbMfjCXT0BSihHAVlNKyYxAACy9wkM kJy/9FFJ9nB9wyQfZyQA32v8fxIVIqOO0ulRZC0fCZEeAQ5sCqhLzEFtGHon2PBj8qqZ KQCmUTxfTrPbT3xeP7CGbTSDyPspoJ9vtFFI/GPS9gz44qsgL1t9JfL6rcGbir4kWCas WJqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=SX4yTz0K9MyZzYKFlWBH++YLmYjw0oyzC3W39lIUokg=; b=qu4HDNgJUahDw4y920L/g+CojHT+DJgeGFZOrngiM2Dn1puwNNPy3sdvS8l3ZDC7eA KSQZp2KZWNX5JZqPwU9MyuGq1kqMj2W/tRFZytCZKlaNBJSHiv4k1AU/B/HHjRWcTzym IemBgYiGAoYC6AnLEfkb09t75xvsV2FOwspEU8XSDYVw57ZEpgyxImJSDkk2iX/24D/M M8pA1L/gHsv3FObUsBbLJTbXl++A4SP8mYY95atMtPcMpnIYSqq71nO5U7c+Ta0NC4D4 F++uM2xV2V6zh3wK9VYXNLtzTdoyayQRElKpsZI11v59Gh6UcKINIe320VBaKBuLbxV4 x9NA== X-Gm-Message-State: ANoB5plkx+nLqjSmo/wBMLvxZOK8t1LoVuqf1DCG2LebXvhjgAipQEL0 LG1sjsv4EhaNUooEDeso3qTOvHrbNsstXM7/3qc37g== X-Google-Smtp-Source: AA0mqf6oSqRtKO0VMyeNU3TZ3RiFHrfAmQjPoNDB44Ph8WQYgQfbg7CrtCoarloe7XzS8R3ciD3Ve7a4WUybJCUu3U8= X-Received: by 2002:a2e:9e55:0:b0:277:e8e:8d90 with SMTP id g21-20020a2e9e55000000b002770e8e8d90mr4856190ljk.243.1668452713567; Mon, 14 Nov 2022 11:05:13 -0800 (PST) MIME-Version: 1.0 References: <20221113230521.712693-1-christoph.muellner@vrull.eu> <20221113230521.712693-2-christoph.muellner@vrull.eu> <15ccec02-5467-81aa-89b7-d75a7aa778c2@gmail.com> In-Reply-To: <15ccec02-5467-81aa-89b7-d75a7aa778c2@gmail.com> From: Philipp Tomsich Date: Mon, 14 Nov 2022 20:05:02 +0100 Message-ID: Subject: Re: [PATCH 1/7] riscv: bitmanip: add orc.b as an unspec To: Jeff Law Cc: Christoph Muellner , gcc-patches@gcc.gnu.org, Kito Cheng , Jim Wilson , Palmer Dabbelt , Andrew Waterman , Vineet Gupta Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,JMQ_SPF_NEUTRAL,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no 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 Mon, 14 Nov 2022 at 17:51, Jeff Law wrote: > > > On 11/13/22 16:05, Christoph Muellner wrote: > > From: Philipp Tomsich > > > > As a basis for optimized string functions (e.g., the by-pieces > > implementations), we need orc.b available. This adds orc.b as an > > unspec, so we can expand to it. > > > > gcc/ChangeLog: > > > > * config/riscv/bitmanip.md (orcb2): Add orc.b as an > > unspec. > > * config/riscv/riscv.md: Add UNSPEC_ORC_B. > In general, we should prefer to express things as "real" RTL rather than > UNSPECS. In this particular case expressing the orc could be done with > a handful of IOR expressions, though they'd probably need to reference > byte SUBREGs of the input and I dislike explicit SUBREGs in the md file > even more than UNSPECs. So.... > > OK. Applied to master. Thanks! (After using emacs' whitespace-cleanup to fix the damage that Christoph's vim did to the ChangeLog...) Philipp. > > > Jeff > > > ps. We could consider this a reduc_ior_scal insn, but that may be > actively harmful. Having vector ops on the general and vector registers > is a wart I hope we can avoid. > >