Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/sat/vec_sat_u_add-3-u16.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv -mabi=lp64d -ftree-vectorize -fdump-tree-optimized" } */
3
4 #include "vec_sat_arith.h"
5
6 /*
7 ** vec_sat_u_add_uint16_t_fmt_3:
8 ** ...
9 ** vsetvli\s+[atx][0-9]+,\s*[atx][0-9]+,\s*e16,\s*m1,\s*ta,\s*ma
10 ** ...
11 ** vsaddu\.vv\s+v[0-9]+,\s*v[0-9]+,\s*v[0-9]+
12 ** ...
13 */
14 DEF_VEC_SAT_U_ADD_FMT_3(uint16_t)
15
16 /* { dg-final { scan-tree-dump-times ".SAT_ADD " 2 "optimized" } } */
17 /* { dg-final { scan-assembler-times {vsaddu\.vv} 1 } } */