Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/base/scalar_move-11.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-march=rv32gcv -mabi=ilp32d -O0" } */
3 /* { dg-final { check-function-bodies "**" "" } } */
4
5 #include "riscv_vector.h"
6
7 /*
8 ** foo:
9 ** ...
10 ** vsetivli\tzero,0,e64,m4,t[au],m[au]
11 ** vmv.x.s\t[a-x0-9]+,v[0-9]+
12 ** vsetivli\tzero,0,e64,m4,t[au],m[au]
13 ** vmv.x.s\t[a-x0-9]+,v[0-9]+
14 ** ...
15 */
16 int16_t foo (void *base, size_t vl)
17 {
18 int16_t maxVal = __riscv_vmv_x_s_i64m4_i64 (__riscv_vle64_v_i64m4 (base, vl));
19 return maxVal;
20 }