public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH v1 0/3] RISC-V: Improve sequences with shifted zero-extended operands
@ 2022-05-24 21:47 Philipp Tomsich
  2022-05-24 21:47 ` [PATCH v1 1/3] RISC-V: add consecutive_bits_operand predicate Philipp Tomsich
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Philipp Tomsich @ 2022-05-24 21:47 UTC (permalink / raw)
  To: gcc-patches
  Cc: Manolis Tsamis, Jim Wilson, Vineet Gupta, Kito Cheng,
	Palmer Dabbelt, Andrew Waterman, Philipp Tomsich


Code-generation currently misses some opportunities for optimized
sequences when zero-extension is combined with shifts.


Philipp Tomsich (3):
  RISC-V: add consecutive_bits_operand predicate
  RISC-V: Split slli+sh[123]add.uw opportunities to avoid zext.w
  RISC-V: Replace zero_extendsidi2_shifted with generalized split

 gcc/config/riscv/bitmanip.md               | 44 ++++++++++++++++++++++
 gcc/config/riscv/predicates.md             | 11 ++++++
 gcc/config/riscv/riscv.md                  | 37 +++++++++---------
 gcc/testsuite/gcc.target/riscv/zba-shadd.c | 13 +++++++
 4 files changed, 88 insertions(+), 17 deletions(-)
 create mode 100644 gcc/testsuite/gcc.target/riscv/zba-shadd.c

-- 
2.34.1


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2022-06-17 14:20 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-24 21:47 [PATCH v1 0/3] RISC-V: Improve sequences with shifted zero-extended operands Philipp Tomsich
2022-05-24 21:47 ` [PATCH v1 1/3] RISC-V: add consecutive_bits_operand predicate Philipp Tomsich
2022-06-07 10:25   ` Kito Cheng
2022-06-14 11:38     ` Philipp Tomsich
2022-05-24 21:47 ` [PATCH v1 2/3] RISC-V: Split slli+sh[123]add.uw opportunities to avoid zext.w Philipp Tomsich
2022-06-07 10:25   ` Kito Cheng
2022-06-14 11:39     ` Philipp Tomsich
2022-06-17  8:34   ` Andreas Schwab
2022-06-17 14:00     ` Kito Cheng
2022-06-17 14:19       ` Philipp Tomsich
2022-05-24 21:47 ` [PATCH v1 3/3] RISC-V: Replace zero_extendsidi2_shifted with generalized split Philipp Tomsich
2022-06-07 10:24   ` Kito Cheng
2022-06-07 10:50     ` Philipp Tomsich
2022-06-07 13:18       ` Kito Cheng

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).