Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/vsetvl/pr113248.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-mtune=generic-ooo -mrvv-vector-bits=scalable -march=rv32gc_zve64f_zvfh -mabi=ilp32d -O3" } */
3
4 #include "riscv_vector.h"
5
6 void foo(_Float16 y, int64_t *i64p)
7 {
8 vint64m1_t vx =__riscv_vle64_v_i64m1 (i64p, 1);
9 vx = __riscv_vadd_vv_i64m1 (vx, vx, 1);
10 vfloat16m1_t vy =__riscv_vfmv_s_f_f16m1 (y, 1);
11 asm volatile ("# use %0 %1" : : "vr"(vx), "vr" (vy));
12 }
13
14 /* { dg-final { scan-assembler-times {vsetivli\s+zero,\s*1,\s*e16,\s*mf4,\s*t[au],\s*m[au]} 1 } } */
15 /* { dg-final { scan-assembler-times {vsetvli\s+zero,\s*zero,\s*e64,\s*m1,\s*t[au],\s*m[au]} 1 } } */