On 3/15/23 06:24, Christoph Muellner wrote:
From: Christoph Müllner <christoph.muell...@vrull.eu> The current support of the bitfield-extraction instructions th.ext and th.extu (XTheadBb extension) only covers sign_extract and zero_extract. This patch add support for sign_extend and zero_extend to avoid any shifts for sign or zero extensions. gcc/ChangeLog: * config/riscv/riscv.md: * config/riscv/thead.md (*extend<SHORT:mode><SUPERQI:mode>2_th_ext): (*zero_extendsidi2_th_extu): (*zero_extendhi<GPR:mode>2_th_extu): gcc/testsuite/ChangeLog: * gcc.target/riscv/xtheadbb-ext-1.c: New test. * gcc.target/riscv/xtheadbb-extu-1.c: New test.
OK. Though the main part of the ChangeLog needs some content ;-) jeff