rootn: Use denormal path only
authorJan Vesely <jan.vesely@rutgers.edu>
Tue, 15 May 2018 04:22:43 +0000 (04:22 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Tue, 15 May 2018 04:22:43 +0000 (04:22 +0000)
commit58fdb3b09aae005c594ea66bfb85b395d7193636
tree58aa929ff1310988e16010500c503c87c169fe71
parent93bce5108b92f22644957a54f5994ac029da70e8
rootn: Use denormal path only

It's OK to either flush to 0 or return denormal result if the device
does not support denormals. See sec 7.2 and 7.5.3 of OCL specs
Use 0.0f explicitly intead of relying on GPU to flush it.
Fixes CTS on carrizo and turks

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
Acked-by: Aaron Watry <awatry@gmail.com>
Tested-by: Aaron Watry <awatry@gmail.com>
llvm-svn: 332324
libclc/generic/lib/math/clc_rootn.cl