Debian Codegraph @

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

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