remquo: Flush denormals if not supported
authorJan Vesely <jan.vesely@rutgers.edu>
Thu, 3 May 2018 05:44:28 +0000 (05:44 +0000)
committerJan Vesely <jan.vesely@rutgers.edu>
Thu, 3 May 2018 05:44:28 +0000 (05:44 +0000)
commit21e77037c0f00b943421884ee18b920b405a517c
tree6f80d2f472ea9f6ce7bb9e8350a0170f4cec5cd3
parent8db45e4cf170cc6044a0afe7a0ed8876dcd9a863
remquo: Flush denormals if not supported

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.
Fixes CTS on carrizo and turks.

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