Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/vls/floating-point-mul-2.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" } */
3
4 #include "def.h"
5
6 DEF_OP_VX (mul, 1, _Float16, *)
7 DEF_OP_VX (mul, 2, _Float16, *)
8 DEF_OP_VX (mul, 4, _Float16, *)
9 DEF_OP_VX (mul, 8, _Float16, *)
10 DEF_OP_VX (mul, 16, _Float16, *)
11 DEF_OP_VX (mul, 32, _Float16, *)
12 DEF_OP_VX (mul, 64, _Float16, *)
13 DEF_OP_VX (mul, 128, _Float16, *)
14 DEF_OP_VX (mul, 256, _Float16, *)
15 DEF_OP_VX (mul, 512, _Float16, *)
16 DEF_OP_VX (mul, 1024, _Float16, *)
17 DEF_OP_VX (mul, 2048, _Float16, *)
18
19 DEF_OP_VX (mul, 1, float, *)
20 DEF_OP_VX (mul, 2, float, *)
21 DEF_OP_VX (mul, 4, float, *)
22 DEF_OP_VX (mul, 8, float, *)
23 DEF_OP_VX (mul, 16, float, *)
24 DEF_OP_VX (mul, 32, float, *)
25 DEF_OP_VX (mul, 64, float, *)
26 DEF_OP_VX (mul, 128, float, *)
27 DEF_OP_VX (mul, 256, float, *)
28 DEF_OP_VX (mul, 512, float, *)
29 DEF_OP_VX (mul, 1024, float, *)
30
31 DEF_OP_VX (mul, 1, double, *)
32 DEF_OP_VX (mul, 2, double, *)
33 DEF_OP_VX (mul, 4, double, *)
34 DEF_OP_VX (mul, 8, double, *)
35 DEF_OP_VX (mul, 16, double, *)
36 DEF_OP_VX (mul, 32, double, *)
37 DEF_OP_VX (mul, 64, double, *)
38 DEF_OP_VX (mul, 128, double, *)
39 DEF_OP_VX (mul, 256, double, *)
40 DEF_OP_VX (mul, 512, double, *)
41
42 /* { dg-final { scan-assembler-times {vfmul\.vv\s+v[0-9]+,\s*v[0-9]+,\s*v[0-9]+} 30 } } */
43 /* { dg-final { scan-assembler-not {csrr} } } */