RISC-V: Support FP round to i/l/ll diff size autovec
[official-gcc.git] / gcc / testsuite / gcc.target / riscv / rvv / autovec / unop / math-iround-1.c
blobdea438bf5c2fe5646d70edebfcced40e93d169e5
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv -mabi=lp64d -O3 -ftree-vectorize -fno-vect-cost-model -ffast-math -fno-schedule-insns -fno-schedule-insns2" } */
3 /* { dg-final { check-function-bodies "**" "" } } */
5 #include "test-math.h"
7 /*
8 ** test_double_int___builtin_iround:
9 ** frrm\s+[atx][0-9]+
10 ** ...
11 ** fsrmi\s+4
12 ** ...
13 ** vfncvt\.x\.f\.w\s+v[0-9]+,\s*v[0-9]+
14 ** ...
15 ** fsrm\s+[atx][0-9]+
16 ** ret
18 TEST_UNARY_CALL_CVT (double, int, __builtin_iround)