chromium/third_party/dawn/src/tint/lang/core/constant/eval_runtime_semantics_test.cc

// Copyright 2023 The Dawn & Tint Authors
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
//    list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice,
//    this list of conditions and the following disclaimer in the documentation
//    and/or other materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its
//    contributors may be used to endorse or promote products derived from
//    this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#include "src/tint/lang/core/constant/eval_test.h"

#include "src/tint/lang/core/constant/scalar.h"

usingnamespacetint::core::number_suffixes;  // NOLINT

namespace tint::core::constant::test {
namespace {

class ConstEvalRuntimeSemanticsTest : public ConstEvalTest {};

TEST_F(ConstEvalRuntimeSemanticsTest, Add_AInt_Overflow) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Add_AFloat_Overflow) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Add_F32_Overflow) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Sub_AInt_Overflow) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Sub_AFloat_Overflow) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Sub_F32_Overflow) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Mul_AInt_Overflow) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Mul_AFloat_Overflow) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Mul_F32_Overflow) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Div_AInt_ZeroDenominator) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Div_I32_ZeroDenominator) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Div_U32_ZeroDenominator) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Div_AFloat_ZeroDenominator) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Div_F32_ZeroDenominator) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Div_I32_MostNegativeByMinInt) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Mod_AInt_ZeroDenominator) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Mod_I32_ZeroDenominator) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Mod_U32_ZeroDenominator) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Mod_AFloat_ZeroDenominator) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Mod_F32_ZeroDenominator) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Mod_I32_MostNegativeByMinInt) {}

TEST_F(ConstEvalRuntimeSemanticsTest, ShiftLeft_AInt_SignChange) {}

TEST_F(ConstEvalRuntimeSemanticsTest, ShiftLeft_I32_SignChange) {}

TEST_F(ConstEvalRuntimeSemanticsTest, ShiftLeft_I32_MoreThanBitWidth) {}

TEST_F(ConstEvalRuntimeSemanticsTest, ShiftLeft_U32_MoreThanBitWidth) {}

TEST_F(ConstEvalRuntimeSemanticsTest, ShiftRight_I32_MoreThanBitWidth) {}

TEST_F(ConstEvalRuntimeSemanticsTest, ShiftRight_U32_MoreThanBitWidth) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Acos_F32_OutOfRange) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Acosh_F32_OutOfRange) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Asin_F32_OutOfRange) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Atanh_F32_OutOfRange) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Exp_F32_Overflow) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Exp2_F32_Overflow) {}

TEST_F(ConstEvalRuntimeSemanticsTest, ExtractBits_I32_TooManyBits) {}

TEST_F(ConstEvalRuntimeSemanticsTest, ExtractBits_U32_TooManyBits) {}

TEST_F(ConstEvalRuntimeSemanticsTest, InsertBits_I32_TooManyBits) {}

TEST_F(ConstEvalRuntimeSemanticsTest, InsertBits_U32_TooManyBits) {}

TEST_F(ConstEvalRuntimeSemanticsTest, InverseSqrt_F32_OutOfRange) {}

TEST_F(ConstEvalRuntimeSemanticsTest, LDExpr_F32_OutOfRange) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Log_F32_OutOfRange) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Log2_F32_OutOfRange) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Normalize_ZeroLength) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Pack2x16Float_OutOfRange) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Pow_F32_Overflow) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Unpack2x16Float_OutOfRange) {}

TEST_F(ConstEvalRuntimeSemanticsTest, QuantizeToF16_OutOfRange) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Sqrt_F32_OutOfRange) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Clamp_F32_LowGreaterThanHigh) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Bitcast_Infinity) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Bitcast_NaN) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Convert_F32_TooHigh) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Convert_F32_TooLow) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Convert_F16_TooHigh) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Convert_F16_TooLow) {}

TEST_F(ConstEvalRuntimeSemanticsTest, Vec_Overflow_SingleComponent) {}

}  // namespace
}  // namespace tint::core::constant::test