mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
spirv: disable frem and fmod tests for now (#1614)
The OpenCL SPIR-V Environment Specification does not require the SPIR-V opcodes `OpFMod` and `OpFRem` to match any OpenCL C semantics, so implementations implementing those two instructions according to Vulkan and/or OpenGL semantics will fail those tests without actually violating any OpenCL specification. We should keep those tests disabled until we figure out what the actual precision requierement should be and update the test accordingly. Signed-off-by: Karol Herbst <kherbst@redhat.com>
This commit is contained in:
@@ -173,13 +173,14 @@ int test_fmath(cl_device_id deviceID,
|
||||
lhs, rhs); \
|
||||
}
|
||||
|
||||
#define TEST_FMATH_MODE(TYPE, MODE) \
|
||||
TEST_FMATH_FUNC(TYPE, fadd, MODE) \
|
||||
TEST_FMATH_FUNC(TYPE, fsub, MODE) \
|
||||
TEST_FMATH_FUNC(TYPE, fmul, MODE) \
|
||||
TEST_FMATH_FUNC(TYPE, fdiv, MODE) \
|
||||
TEST_FMATH_FUNC(TYPE, frem, MODE) \
|
||||
TEST_FMATH_FUNC(TYPE, fmod, MODE) \
|
||||
#define TEST_FMATH_MODE(TYPE, MODE) \
|
||||
TEST_FMATH_FUNC(TYPE, fadd, MODE) \
|
||||
TEST_FMATH_FUNC(TYPE, fsub, MODE) \
|
||||
TEST_FMATH_FUNC(TYPE, fmul, MODE) \
|
||||
TEST_FMATH_FUNC(TYPE, fdiv, MODE) \
|
||||
// disable those tests until we figure out what the precision requierements are
|
||||
// TEST_FMATH_FUNC(TYPE, frem, MODE) \
|
||||
// TEST_FMATH_FUNC(TYPE, fmod, MODE) \
|
||||
|
||||
#define TEST_FMATH_TYPE(TYPE) \
|
||||
TEST_FMATH_MODE(TYPE, regular) \
|
||||
|
||||
Reference in New Issue
Block a user