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>

git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@331435 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/generic/lib/math/clc_remquo.cl b/generic/lib/math/clc_remquo.cl
index ff741f6..3b9159a 100644
--- a/generic/lib/math/clc_remquo.cl
+++ b/generic/lib/math/clc_remquo.cl
@@ -29,6 +29,8 @@
 
 _CLC_DEF _CLC_OVERLOAD float __clc_remquo(float x, float y, __private int *quo)
 {
+    x = __clc_flush_denormal_if_not_supported(x);
+    y = __clc_flush_denormal_if_not_supported(y);
     int ux = as_int(x);
     int ax = ux & EXSIGNBIT_SP32;
     float xa = as_float(ax);