[AMDGPU] Mark AGPR tuple implicit in the first instr of AGPR spills. (#115285)
[llvm-project.git] / libcxx / test / std / experimental / simd / simd.mask.class / simd_mask_width.pass.cpp
blobc3df207e19c952189f462abacf5bf11b5a8c34d3
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 //===----------------------------------------------------------------------===//
9 // UNSUPPORTED: c++03, c++11, c++14
11 // <experimental/simd>
13 // [simd.mask.class]
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>
23 void operator()() {
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>();
30 return 0;