Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/rvv-vector-bits-6.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv64gcv_zvl128b -mabi=lp64 -mrvv-vector-bits=scalable -O3" } */
3
4 #include "riscv_vector.h"
5
6 void test_rvv_vector_bits_scalable ()
7 {
8 vint32m1_t x;
9 asm volatile ("def %0": "=vr"(x));
10 asm volatile (""::: "v0", "v1", "v2", "v3", "v4", "v5", "v6", "v7",
11 "v8", "v9", "v10", "v11", "v12", "v13", "v14", "v15",
12 "v16", "v17", "v18", "v19", "v20", "v21", "v22", "v23",
13 "v24", "v25", "v26", "v27", "v28", "v29", "v30", "v31");
14 asm volatile ("use %0": : "vr"(x));
15 }
16
17 /* { dg-final { scan-assembler-times {csrr\s+[atx][0-9]+,\s*vlenb} 2 } } */