Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/unop/math-nearbyint-0.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv_zvfh -mabi=lp64d -O3 -ftree-vectorize -fno-vect-cost-model -ffast-math -fno-schedule-insns -fno-schedule-insns2" } */
3 /* { dg-final { check-function-bodies "**" "" } } */
4
5 #include "test-math.h"
6
7 /*
8 ** test__Float16___builtin_nearbyintf16:
9 ** ...
10 ** vfabs\.v\s+v[0-9]+,\s*v[0-9]+
11 ** vmflt\.vf\s+v0,\s*v[0-9]+,\s*[fa]+[0-9]+
12 ** frflags\s+[axt][0-9]+
13 ** vfcvt\.x\.f\.v\s+v[0-9]+,\s*v[0-9]+,\s*v0\.t
14 ** vfcvt\.f\.x\.v\s+v[0-9]+,\s*v[0-9]+,\s*v0\.t
15 ** fsflags\s+[axt][0-9]+
16 ** vfsgnj\.vv\s+v[0-9]+,v[0-9]+,v[0-9]+
17 ** ...
18 */
19 TEST_UNARY_CALL (_Float16, __builtin_nearbyintf16)