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:
Karol Herbst
2023-02-07 18:08:29 +01:00
committed by paulfradgley
parent e0d4c5c680
commit 3f87c48b53

View File

@@ -178,8 +178,9 @@ int test_fmath(cl_device_id deviceID,
TEST_FMATH_FUNC(TYPE, fsub, MODE) \ TEST_FMATH_FUNC(TYPE, fsub, MODE) \
TEST_FMATH_FUNC(TYPE, fmul, MODE) \ TEST_FMATH_FUNC(TYPE, fmul, MODE) \
TEST_FMATH_FUNC(TYPE, fdiv, MODE) \ TEST_FMATH_FUNC(TYPE, fdiv, MODE) \
TEST_FMATH_FUNC(TYPE, frem, MODE) \ // disable those tests until we figure out what the precision requierements are
TEST_FMATH_FUNC(TYPE, fmod, MODE) \ // TEST_FMATH_FUNC(TYPE, frem, MODE) \
// TEST_FMATH_FUNC(TYPE, fmod, MODE) \
#define TEST_FMATH_TYPE(TYPE) \ #define TEST_FMATH_TYPE(TYPE) \
TEST_FMATH_MODE(TYPE, regular) \ TEST_FMATH_MODE(TYPE, regular) \