Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/sat/vec_sat_s_trunc-1-i64-to-i16.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv -mabi=lp64d -fdump-tree-optimized" } */
3
4 #include "vec_sat_arith.h"
5
6 DEF_VEC_SAT_S_TRUNC_FMT_1(int16_t, int64_t, INT16_MIN, INT16_MAX)
7
8 /* { dg-final { scan-tree-dump-times ".SAT_TRUNC " 1 "optimized" } } */
9 /* { dg-final { scan-assembler-times {vnclip\.wi} 2 } } */