Debian Codegraph @

gcc/testsuite/gcc.target/riscv/rvv/autovec/vls-vlmax/combine-merge-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-march=rv64gcv -mabi=lp64d" } */
3
4 #include <stdint-gcc.h>
5
6 typedef int64_t vnx16di __attribute__ ((vector_size (128)));
7
8 __attribute__ ((noipa)) void
9 f_vnx16di (int64_t a, int64_t b, int64_t *out)
10 {
11 vnx16di v = {a, a, a, a, a, b, b, b, b, b, b, b, b, b, b, b};
12 *(vnx16di *) out = v;
13 }
14
15 /* { dg-final { scan-assembler-times {vmv\.v\.x} 1 } } */
16 /* { dg-final { scan-assembler-times {vid\.v} 1 } } */
17 /* { dg-final { scan-assembler-times {vmsgtu\.vi} 1 } } */
18 /* { dg-final { scan-assembler-times {vmerge\.vxm} 1 } } */