#include "src/tint/lang/core/constant/eval_test.h"
#include "src/tint/utils/result/result.h"
usingnamespacetint::core::number_suffixes;
HasSubstr;
namespace tint::core::constant::test {
namespace {
struct Case { … };
static std::ostream& operator<<(std::ostream& o, const Case& c) { … }
ScalarTypes;
static Case C(std::initializer_list<Value> args, Value result) { … }
static Case C(std::initializer_list<Value> args, std::initializer_list<Value> results) { … }
static Case C(std::initializer_list<ScalarTypes> sargs, ScalarTypes sresult) { … }
static Case C(std::initializer_list<ScalarTypes> sargs,
std::initializer_list<ScalarTypes> sresults) { … }
static Case E(std::initializer_list<Value> args, std::string err) { … }
static Case E(std::initializer_list<ScalarTypes> sargs, std::string err) { … }
ConstEvalBuiltinTest;
TEST_P(ConstEvalBuiltinTest, Test) { … }
INSTANTIATE_TEST_SUITE_P(…);
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> AbsCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
static std::vector<Case> AllCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
static std::vector<Case> AnyCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> Atan2Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> AtanCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> AtanhCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> AcosCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> AcoshCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> AsinCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> AsinhCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> CeilCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> ClampCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> CosCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> CoshCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> CountLeadingZerosCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> CountTrailingZerosCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> CountOneBitsCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> CrossCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> DistanceCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> DotCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> DeterminantCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> FaceForwardCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> FirstLeadingBitCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> FirstTrailingBitCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> FloorCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> FmaCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> FractCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> FrexpCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> InsertBitsCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> InverseSqrtCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> DegreesAFloatCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> DegreesF32Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> DegreesF16Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> ExpCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> Exp2Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> ExtractBitsCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> LdexpCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> LengthCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> LogCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> LogF16Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> LogF32Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> LogAbstractCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> Log2Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> Log2F16Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> Log2F32Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> Log2AbstractCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> MaxCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> MinCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> MixCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> ModfCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> NormalizeCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Pack4x8snormCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Pack4x8unormCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Pack2x16floatCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Pack2x16snormCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Pack2x16unormCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> PowCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> ReverseBitsCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> ReflectCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> RefractCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> RadiansCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> RadiansF16Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> RoundCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> SaturateCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> SelectCases() { … }
static std::vector<Case> SelectBoolCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> SignCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> SinCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> SinhCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> SmoothstepCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> StepCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> SqrtCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> TanCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> TanhCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> TransposeCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
template <typename T>
std::vector<Case> TruncCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Unpack4x8snormCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Unpack4x8unormCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Unpack2x16floatCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Unpack2x16snormCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Unpack2x16unormCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> QuantizeToF16Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Dot4I8PackedCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Dot4U8PackedCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Pack4xI8Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Pack4xU8Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Pack4xI8ClampCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Pack4xU8ClampCases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Unpack4xI8Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
std::vector<Case> Unpack4xU8Cases() { … }
INSTANTIATE_TEST_SUITE_P(…);
}
}