(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
riscv/
zknh-sha256.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-O2 -march=rv64gc_zknh -mabi=lp64" } */
       3  /* { dg-skip-if "" { *-*-* } { "-g" "-flto"} } */
       4  
       5  long foo1(long rs1)
       6  {
       7      return __builtin_riscv_sha256sig0(rs1);
       8  }
       9  
      10  long foo2(long rs1)
      11  {
      12      return __builtin_riscv_sha256sig1(rs1);
      13  }
      14  
      15  long foo3(long rs1)
      16  {
      17      return __builtin_riscv_sha256sum0(rs1);
      18  }
      19  
      20  long foo4(long rs1)
      21  {
      22      return __builtin_riscv_sha256sum1(rs1);
      23  }
      24  
      25  /* { dg-final { scan-assembler-times "sha256sig0" 1 } } */
      26  /* { dg-final { scan-assembler-times "sha256sig1" 1 } } */
      27  /* { dg-final { scan-assembler-times "sha256sum0" 1 } } */
      28  /* { dg-final { scan-assembler-times "sha256sum1" 1 } } */