> > diff --git a/gcc/testsuite/gcc.target/riscv/zbkb64.c > > b/gcc/testsuite/gcc.target/riscv/zbkb64.c > > new file mode 100644 > > index 00000000000..2cd76a29750 > > --- /dev/null > > +++ b/gcc/testsuite/gcc.target/riscv/zbkb64.c > > @@ -0,0 +1,21 @@ > > +/* { dg-do compile } */ > > +/* { dg-options "-O2 -march=rv64gc_zbkb -mabi=lp64" } */ > > +/* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */ > > +#include"riscv_crypto.h" > > +int64_t foo1(int64_t rs1, int64_t rs2) > > +{ > > + return _rv64_ror(rs1,rs2); > > +} > > + > > +int64_t foo2(int64_t rs1, int64_t rs2) > > +{ > > + return _rv64_rol(rs1,rs2); > > +} > > + > > +int64_t foo3(int64_t rs1, int64_t rs2) > > +{ > > + return _rv64_brev8(rs1); > > +} > > +/* { dg-final { scan-assembler-times "ror" 1 } } */ > > +/* { dg-final { scan-assembler-times "rol" 1 } } */ > > +/* { dg-final { scan-assembler-times "brev8" 1 } } */ > > \ No newline at end of file
Could you also add _rv32_variant test to zbkb64.c?