Debian Codegraph @

gcc/testsuite/g++.dg/ext/builtin-shufflevector-2.C

raw
1 // { dg-do compile }
2 // { dg-additional-options "-Wno-psabi" }
3
4 typedef double v2df __attribute__((vector_size(2 * sizeof (double))));
5
6 template<typename T, typename U, int N, int M>
7 struct Shuffle {
8 void f(T t, U u, v2df a, v2df b) {
9 (void)__builtin_shufflevector(t, u, N, M); // { dg-error "invalid" }
10 }
11 };
12
13 template struct Shuffle<v2df, v2df, 4, 3>;