#include "src/objects/objects-inl.h"
#include "test/cctest/cctest.h"
#include "test/cctest/compiler/turboshaft-codegen-tester.h"
#include "test/common/value-helper.h"
namespace v8::internal::compiler::turboshaft {
namespace {
enum GraphConfig { … };
constexpr GraphConfig graph_configs[] = …;
#define SELECT_OP_LIST(V) …
enum class SelectOperator { … };
bool SelectIsSupported(SelectOperator op) { … }
template <typename CondType, typename ResultType>
class ConditionalSelectGen { … };
template <typename ResultType>
class UInt32ConditionalSelectGen
: public ConditionalSelectGen<uint32_t, ResultType> { … };
template <typename ResultType>
class UInt64ConditionalSelectGen
: public ConditionalSelectGen<uint64_t, ResultType> { … };
constexpr TurboshaftComparison int32_cmp_opcodes[] = …;
constexpr TurboshaftBinop int32_bin_opcodes[] = …;
TEST(Word32SelectCombineInt32CompareZero) { … }
TEST(Word64SelectCombineInt32CompareZero) { … }
TEST(Float32SelectCombineInt32CompareZero) { … }
TEST(Float64SelectCombineInt32CompareZero) { … }
constexpr TurboshaftBinop int64_bin_opcodes[] = …;
constexpr TurboshaftComparison int64_cmp_opcodes[] = …;
TEST(Word32SelectCombineInt64CompareZero) { … }
TEST(Word64SelectCombineInt64CompareZero) { … }
TEST(Float32SelectCombineInt64CompareZero) { … }
TEST(Float64SelectCombineInt64CompareZero) { … }
}
}