1 //===----------------------------------------------------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 // UNSUPPORTED: c++98, c++03, c++11, c++14
11
12 // <experimental/simd>
13 //
14 // [simd.class]
15 // simd() = default;
16
17 #include <cstdint>
18 #include <experimental/simd>
19
20 namespace ex = std::experimental::parallelism_v2;
21
main()22 int main() {
23 static_assert(ex::native_simd<int32_t>().size() > 0, "");
24 static_assert(ex::fixed_size_simd<int32_t, 4>().size() == 4, "");
25 static_assert(ex::fixed_size_simd<int32_t, 5>().size() == 5, "");
26 static_assert(ex::fixed_size_simd<int32_t, 1>().size() == 1, "");
27 static_assert(ex::fixed_size_simd<char, 32>().size() == 32, "");
28 }
29