Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-additional-options "-march=rv64gcv -mabi=lp64d" } */
3
4 #include <stdint-gcc.h>
5
6 typedef double vnx16df __attribute__ ((vector_size (128)));
7
8 __attribute__ ((noipa)) void
9 f_vnx16df (double a, double b, double *out)
10 {
11 vnx16df v = {a, a, a, a, a, b, b, b, b, b, b, b, b, b, b, b};
12 *(vnx16df *) out = v;
13 }
14
15 /* { dg-final { scan-assembler-times {vfmv\.v\.f} 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 {vfmerge\.vfm} 1 } } */