Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/builtin/strlen.c

raw
1 /* { dg-do compile { target { riscv_v } } } */
2 /* { dg-additional-options "-O3 -minline-strlen" } */
3
4 int
5 __attribute__ ((noipa))
6 foo (const char *s)
7 {
8 return __builtin_strlen (s);
9 }
10
11 /* { dg-final { scan-assembler-times "vle8ff" 1 } } */
12 /* { dg-final { scan-assembler-times "vfirst.m" 1 } } */