public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <jeffreyalaw@gmail.com>
To: Philipp Tomsich <philipp.tomsich@vrull.eu>, gcc-patches@gcc.gnu.org
Cc: Palmer Dabbelt <palmer@rivosinc.com>,
	Christoph Muellner <christoph.muellner@vrull.eu>,
	Vineet Gupta <vineetg@rivosinc.com>,
	Jeff Law <jlaw@ventanamicro.com>,
	Kito Cheng <kito.cheng@gmail.com>
Subject: Re: [PATCH] RISC-V: Optimize branches testing a bit-range or a shifted immediate
Date: Fri, 18 Nov 2022 12:30:34 -0700	[thread overview]
Message-ID: <5799b07e-c4ae-4511-0b23-a24330802455@gmail.com> (raw)
In-Reply-To: <20221108204625.2794920-1-philipp.tomsich@vrull.eu>


On 11/8/22 13:46, Philipp Tomsich wrote:
> gcc/ChangeLog:
>
> 	* config/riscv/predicates.md (shifted_const_arith_operand):
> 	(uimm_extra_bit_operand):
> 	* config/riscv/riscv.md (*branch<ANYI:mode>_shiftedarith_equals_zero):
> 	(*branch<ANYI:mode>_shiftedmask_equals_zero):
>
> gcc/testsuite/ChangeLog:
>
> 	* gcc.target/riscv/branch-1.c: New test.

Nice...    It seems so obvious, but I'm not offhand aware of other ports 
doing this, though many could likely benefit.

OK


jeff



  reply	other threads:[~2022-11-18 19:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-08 20:46 Philipp Tomsich
2022-11-18 19:30 ` Jeff Law [this message]
2022-11-18 19:55   ` Philipp Tomsich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5799b07e-c4ae-4511-0b23-a24330802455@gmail.com \
    --to=jeffreyalaw@gmail.com \
    --cc=christoph.muellner@vrull.eu \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jlaw@ventanamicro.com \
    --cc=kito.cheng@gmail.com \
    --cc=palmer@rivosinc.com \
    --cc=philipp.tomsich@vrull.eu \
    --cc=vineetg@rivosinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).