Fix denorm tests in float_controls
authorPiotr Byszewski <piotr.byszewski@mobica.com>
Mon, 17 Dec 2018 13:13:05 +0000 (14:13 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 20 Dec 2018 08:01:42 +0000 (03:01 -0500)
commit44b76c19e344b8300ab971ce8c38f97939ce77ac
tree60b981e6f56ef986b0b53f7c05b90d91694cfe11
parent15636887e45077cd7cc2ed99d3abf8086297b5fd
Fix denorm tests in float_controls

When binary operations on denorms are executed against Inf or Nan
SignedZeroInfNanPreserve mode should always be enabled as some
implementations may perform optimizations that assume that
arguments are not Nan or Inf. Before this change DenormPreserve
and DenormFlushToZero tests had only those modes enabled. Now
SignedZeroInfNanPreserve is added when second operand is Inf or Nan.

Components: Vulkan

VK-GL-CTS issue: 1517

Affects:
dEQP-VK.spirv_assembly.instruction.compute.float_controls.*
dEQP-VK.spirv_assembly.instruction.graphics.float_controls.*

Change-Id: I0b5e0ed010bde200154f58f9fe194fdf7c565803
external/vulkancts/modules/vulkan/spirv_assembly/vktSpvAsmFloatControlsTests.cpp