// Copyright (C) 2020-2025 Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free // software; you can redistribute it and/or modify it under the // terms of the GNU General Public License as published by the // Free Software Foundation; either version 3, or (at your option) // any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License along // with this library; see the file COPYING3. If not see // . // expensive: * [1-9] * * #include "bits/main.h" using schar = signed char; using uchar = unsigned char; using ushort = unsigned short; using uint = unsigned int; using ulong = unsigned long; using llong = long long; using ullong = unsigned long long; using ldouble = long double; using wchar = wchar_t; using char16 = char16_t; using char32 = char32_t; template constexpr bool bit_and_is_illformed() { return is_substitution_failure>; } template void test_binary_op_cvt() { COMPARE((bit_and_is_illformed()), !(std::is_same_v) ); } template void test() { using M = typename V::mask_type; // binary ops without conversions work COMPARE(typeid(M() & M()), typeid(M)); // nothing else works: no implicit conv. or ambiguous using std::experimental::fixed_size_simd_mask; using std::experimental::native_simd_mask; using std::experimental::simd_mask; test_binary_op_cvt(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); test_binary_op_cvt>(); }