1 //===----------------------------------------------------------------------===//
2 //
3 // 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
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // UNSUPPORTED: c++03, c++11, c++14
10 
11 // <experimental/simd>
12 //
13 // [simd.traits]
14 // template <class T, size_t N> struct abi_for_size { using type = see below ;
15 // }; template <class T, size_t N> using ex::abi_for_size_t = typename
16 // ex::abi_for_size<T, N>::type;
17 
18 #include <cstdint>
19 #include <experimental/simd>
20 
21 #include "test_macros.h"
22 
23 namespace ex = std::experimental::parallelism_v2;
24 
25 static_assert(std::is_same<typename ex::abi_for_size<int, 4>::type,
26                            ex::simd_abi::fixed_size<4>>::value,
27               "");
28 
29 static_assert(std::is_same<ex::abi_for_size_t<int, 4>,
30                            ex::simd_abi::fixed_size<4>>::value,
31               "");
32 
main(int,char **)33 int main(int, char**) {
34   return 0;
35 }
36