2 // { dg-do compile { target { { i?86-*-* x86_64-*-* } && c++11 } } }
3 // { dg-options "-O2 -msse2" }
8 template <R> struct C { static constexpr int value = 10; };
9 template <typename R, template <R> class T, R... r>
11 template <int, R...> struct B;
12 template <int N, R M, R... O>
13 struct B<N, M, O...> {
14 static constexpr int d = T<M>::value;
15 static __m128i generate()
17 __attribute__((__vector_size__(16))) long long
19 b = _mm_bslli_si128 (a, 1),
20 c = _mm_bsrli_si128 (_mm_set1_epi32(d), 12);
21 return _mm_or_si128 (b, c);
24 A () { B<0, r...>::generate(); }
29 using RI = A<R, C, S>;