Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/binop/vdiv-rv64gcv.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-std=c99 -fno-vect-cost-model -march=rv64gcv_zvfh -mabi=lp64d -mrvv-vector-bits=zvl -ffast-math -fdump-tree-optimized-details" } */
3
4 #include "vdiv-template.h"
5
6 /* { dg-final { scan-assembler-times {\tvdiv\.vv} 4 } } */
7 /* { dg-final { scan-assembler-times {\tvdiv\.vx} 4 } } */
8 /* { dg-final { scan-assembler-times {\tvdivu\.vv} 4 } } */
9 /* { dg-final { scan-assembler-times {\tvdivu\.vx} 4 } } */
10
11 /* Division by constant is done by calculating a reciprocal and
12 then multiplying. Hence we do not expect 6 vfdivs. */
13 /* { dg-final { scan-assembler-times {\tvfdiv\.vv} 3 } } */
14 /* { dg-final { scan-assembler-times {\tvfmul\.vv} 3 } } */
15
16 /* { dg-final { scan-tree-dump-times "\.COND_LEN_DIV" 16 "optimized" } } */
17 /* { dg-final { scan-assembler-not {\tvmv1r\.v} } } */
18 /* { dg-final { scan-assembler-not {\tvmv2r\.v} } } */
19 /* { dg-final { scan-assembler-not {\tvmv4r\.v} } } */
20 /* { dg-final { scan-assembler-not {\tvmv8r\.v} } } */
21 /* { dg-final { scan-assembler-not {\tvmv\.v\.v} } } */
22 /* { dg-final { scan-assembler-not {\tvmv\.v\.i} } } */