https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117604
Bug ID: 117604 Summary: RISCV Generalized Reverse (grev, grevi, rev) are not supported in gcc-14.1.0 Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: akhilesh.k at samsung dot com Target Milestone: --- During bit manipulation verification I observed grevw, greviw instructions are not unimplemented. https://raw.githubusercontent.com/riscv/riscv-bitmanip/master/bitmanip-draft.pdf Seems Generalized Reverse (grev, grevi, rev) are not supported in gcc-14.1.0 in bit manipulation manual riscv-bitmanip-1.0.0.pdf Generalized Reverse is not described but in previous versions like 0.92 described in details Is Generalized Reverse feature under development or dropped ? I am using gcc-14.1 release and used https://github.com/riscv/riscv-crypto performance tool for bit manipulation. /home/akhilesh.k/Toolchains/vd/gcc-14//bin/riscv64-none-linux-gnu-gcc -Wall -I/home/akhilesh.k/git/riscv-crypto/build/benchmarks/rv64-zscrypto/include -I/home/akhilesh.k/git/riscv-crypto/build/benchmarks/rv64-zscrypto/include/riscvcrypto/share -O3 -march=rv64gcvzba_zbb_zbc_zbs_zknd_zkne_zksed_zknh_zbkb -mabi=lp64d -D__ZSCRYPTO=1 -c -o /home/akhilesh.k/git/riscv-crypto/build/benchmarks/rv64-zscrypto/obj/sm3/reference/sm3.o sm3/reference/sm3.c /home/akhilesh.k/git/riscv-crypto/build/benchmarks/rv64-zscrypto/include/riscvcrypto/share/rvintrin.h: Assembler messages: /home/akhilesh.k/git/riscv-crypto/build/benchmarks/rv64-zscrypto/include/riscvcrypto/share/rvintrin.h:151: Error: unrecognized opcode `greviw t3,t3,24' /home/akhilesh.k/git/riscv-crypto/build/benchmarks/rv64-zscrypto/include/riscvcrypto/share/rvintrin.h:151: Error: unrecognized opcode `greviw t4,t4,24' /home/akhilesh.k/git/riscv-crypto/build/benchmarks/rv64-zscrypto/include/riscvcrypto/share/rvintrin.h:151: Error: unrecognized opcode `greviw t3,t3,24'