Debian Codegraph @

gcc/testsuite/g++.target/riscv/rvv/base/pr114639-1.C

raw
1 /* Test that we do not have ice when compile */
2 /* { dg-do compile } */
3 /* { dg-options "-march=rv64gcv -mabi=lp64d -O3" } */
4
5 typedef long c;
6
7 #pragma riscv intrinsic "vector"
8
9 template <unsigned long> struct d {};
10
11 struct e {
12 using f = d<0>;
13 };
14
15 struct g {
16 using f = e::f;
17 };
18
19 template <typename, int> using h = g::f;
20 template <unsigned long i> long get_vl (d<i>);
21
22 vbool16_t test (vuint64m4_t a) {
23 c b;
24 return __riscv_vmsne_vx_u64m4_b16(a, b, get_vl (h<c, 2>()));
25 }