| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-march=rv64gcv_zvfh -mabi=lp64d -O3 -ftree-vectorize -ffast-math -fno-vect-cost-model -fno-schedule-insns -fno-schedule-insns2" } */ |
| 3 |
/* { dg-final { check-function-bodies "**" "" } } */ |
| 4 |
|
| 5 |
#include <stdint-gcc.h> |
| 6 |
|
| 7 |
/* |
| 8 |
** test_uint65_to_fp16: |
| 9 |
** ... |
| 10 |
** vfncvt\.f\.xu\.w\s+v[0-9]+,\s*v[0-9]+ |
| 11 |
** ... |
| 12 |
** vfncvt\.f\.f\.w\s+v[0-9]+,\s*v[0-9]+ |
| 13 |
** ... |
| 14 |
*/ |
| 15 |
void |
| 16 |
test_uint65_to_fp16 (uint64_t * __restrict a, _Float16 *b, unsigned n) |
| 17 |
{ |
| 18 |
for (unsigned i = 0; i < n; i++) |
| 19 |
b[i] = (_Float16) (a[i]); |
| 20 |
} |
| 21 |
|