Files
OpenCL-CTS/test_conformance/spirv_new/CMakeLists.txt
Ben Ashbaugh a61feea656 adds SPIR-V tests for scalar printf operands (#2211)
Adds targeted SPIR-V tests for printf with scalar operands.  See:

* https://github.com/KhronosGroup/OpenCL-Docs/issues/1211
* https://github.com/KhronosGroup/OpenCL-Docs/pull/1236

The fp32 test is likely to be the most interesting, especially on
devices that support fp64, because printf with scalar fp32 operands is
not generated by default in this case with Clang and the SPIR-V LLVM
Translator.
2025-02-11 08:55:39 -08:00

50 lines
1.2 KiB
CMake

set(MODULE_NAME SPIRV_NEW)
set(${MODULE_NAME}_SOURCES
main.cpp
test_basic_versions.cpp
test_cl_khr_expect_assume.cpp
test_decorate.cpp
test_extinst_printf.cpp
test_get_program_il.cpp
test_linkage.cpp
test_no_integer_wrap_decoration.cpp
test_op_atomic.cpp
test_op_branch_conditional.cpp
test_op_branch.cpp
test_op_composite_construct.cpp
test_op_constant.cpp
test_op_copy_object.cpp
test_op_fmath.cpp
test_op_function.cpp
test_op_lifetime.cpp
test_op_loop_merge.cpp
test_op_negate.cpp
test_op_opaque.cpp
test_op_phi.cpp
test_op_selection_merge.cpp
test_op_spec_constant.cpp
test_op_undef.cpp
test_op_vector_extract.cpp
test_op_vector_insert.cpp
test_op_vector_times_scalar.cpp
test_spirv_14.cpp
test_spirv_15.cpp
)
set(TEST_HARNESS_SOURCES
../../test_conformance/math_brute_force/reference_math.cpp
../../test_conformance/math_brute_force/utility.cpp
)
if(CMAKE_COMPILER_IS_GNUCC OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "(Apple)?Clang")
add_cxx_flag_if_supported(-Wno-narrowing)
endif()
set(${MODULE_NAME}_SOURCES ${${MODULE_NAME}_SOURCES} ${TEST_HARNESS_SOURCES})
include(../CMakeCommon.txt)
add_subdirectory(spirv_asm)
add_dependencies(${${MODULE_NAME}_OUT} spirv_new_binaries)