Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/floating-point-max-5.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv_zvfh_zvl4096b -mabi=lp64d -O3 -fno-schedule-insns -fno-schedule-insns2 -mrvv-max-lmul=m8 -ffast-math" } */
3
4 #include "def.h"
5
6 DEF_CALL_VV (max, 1, float, __builtin_fmaxf)
7 DEF_CALL_VV (max, 2, float, __builtin_fmaxf)
8 DEF_CALL_VV (max, 4, float, __builtin_fmaxf)
9 DEF_CALL_VV (max, 8, float, __builtin_fmaxf)
10 DEF_CALL_VV (max, 16, float, __builtin_fmaxf)
11 DEF_CALL_VV (max, 32, float, __builtin_fmaxf)
12 DEF_CALL_VV (max, 64, float, __builtin_fmaxf)
13 DEF_CALL_VV (max, 128, float, __builtin_fmaxf)
14 DEF_CALL_VV (max, 256, float, __builtin_fmaxf)
15 DEF_CALL_VV (max, 512, float, __builtin_fmaxf)
16 DEF_CALL_VV (max, 1024, float, __builtin_fmaxf)
17
18 DEF_CALL_VV (max, 1, double, __builtin_fmax)
19 DEF_CALL_VV (max, 2, double, __builtin_fmax)
20 DEF_CALL_VV (max, 4, double, __builtin_fmax)
21 DEF_CALL_VV (max, 8, double, __builtin_fmax)
22 DEF_CALL_VV (max, 16, double, __builtin_fmax)
23 DEF_CALL_VV (max, 32, double, __builtin_fmax)
24 DEF_CALL_VV (max, 64, double, __builtin_fmax)
25 DEF_CALL_VV (max, 128, double, __builtin_fmax)
26 DEF_CALL_VV (max, 256, double, __builtin_fmax)
27 DEF_CALL_VV (max, 512, double, __builtin_fmax)
28
29 /* { dg-final { scan-assembler-times {vfmax\.vv\s+v[0-9]+,\s*v[0-9]+,\s*v[0-9]+} 19 } } */
30 /* { dg-final { scan-assembler-not {csrr} } } */