Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/conversions/vec-widen-float16-int64.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-std=c99 -fno-vect-cost-model -march=rv64gcv_zvfh -mabi=lp64d -mrvv-vector-bits=scalable -fno-trapping-math -fdump-tree-vect-details" } */
3
4 /* This test ensures that we vectorize the conversion by having the vectorizer
5 create an intermediate type. */
6
7 #include <stdint-gcc.h>
8
9 void convert (int64_t *restrict dst, _Float16 *restrict a, int n)
10 {
11 for (int i = 0; i < n; i++)
12 dst[i] = (int64_t) a[i];
13 }
14
15 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */