/* { dg-do compile } */ /* { 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" } */ /* This test ensures that we vectorize the conversion by having the vectorizer create an intermediate type. */ #include void convert (int64_t *restrict dst, _Float16 *restrict a, int n) { for (int i = 0; i < n; i++) dst[i] = (int64_t) a[i]; } /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */