Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/init-repeat-sequence-8.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-march=rv64gcv_zvl1024b -mabi=lp64d -fno-schedule-insns -fno-schedule-insns2" } */
3 /* { dg-final { check-function-bodies "**" "" } } */
4
5 #include <stdint-gcc.h>
6
7 typedef int64_t vnx16di __attribute__ ((vector_size (16 * 8)));
8
9 /*
10 ** f_vnx16di:
11 ** vsetivli\s+zero,\s*16,\s*e64,\s*m1,\s*ta,\s*ma
12 ** ...
13 ** vmv\.v\.x\s+v[0-9]+,\s*[axt][0-9]+
14 ** ...
15 ** vmv\.s\.x\s+v0,\s*[axt][0-9]+
16 ** vmerge\.vxm\s+v[0-9]+,\s*v[0-9]+,\s*[axt][0-9]+,\s*v0
17 ** vs1r\.v\s+v[0-9]+,\s*0\([axt][0-9]+\)
18 ** ret
19 */
20 __attribute__ ((noipa)) void
21 f_vnx16di (int64_t a, int64_t b, int64_t *out)
22 {
23 vnx16di v = {
24 a, b, a, b, a, b, a, b, a, b, a, b, a, b, a, b,
25 };
26 *(vnx16di *) out = v;
27 }