1 //===----------------------------------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14
11 // <experimental/simd>
14 // static constexpr std::size_t size() noexcept;
16 #include "../test_utils.h"
18 namespace ex
= std::experimental::parallelism_v2
;
20 template <class T
, std::size_t>
21 struct CheckSimdMaskWidth
{
22 template <class SimdAbi
>
24 static_assert(ex::simd_mask
<T
, SimdAbi
>::size() == ex::simd_size_v
<T
, SimdAbi
>);
28 int main(int, char**) {
29 test_all_simd_abi
<CheckSimdMaskWidth
>();