blob: 6eebe0ec0cf83fb74ebffb8d3fc8aef25e2fa7eb [file] [log] [blame]
Tim Shen38cd7de2018-07-30 22:27:38 +00001//===----------------------------------------------------------------------===//
2//
Chandler Carruth57b08b02019-01-19 10:56:40 +00003// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Tim Shen38cd7de2018-07-30 22:27:38 +00006//
7//===----------------------------------------------------------------------===//
8
9// UNSUPPORTED: c++98, c++03, c++11, c++14
10
11// <experimental/simd>
12//
13// [simd.class]
14// simd() = default;
15
16#include <cstdint>
17#include <experimental/simd>
18
19namespace ex = std::experimental::parallelism_v2;
20
JF Bastien2df59c52019-02-04 20:31:13 +000021int main(int, char**) {
Tim Shen38cd7de2018-07-30 22:27:38 +000022 static_assert(ex::native_simd<int32_t>().size() > 0, "");
23 static_assert(ex::fixed_size_simd<int32_t, 4>().size() == 4, "");
24 static_assert(ex::fixed_size_simd<int32_t, 5>().size() == 5, "");
25 static_assert(ex::fixed_size_simd<int32_t, 1>().size() == 1, "");
26 static_assert(ex::fixed_size_simd<char, 32>().size() == 32, "");
JF Bastien2df59c52019-02-04 20:31:13 +000027
28 return 0;
Tim Shen38cd7de2018-07-30 22:27:38 +000029}