llvm-project/libclc/generic/lib
Jan Vesely 4c59714a52 Make min follow the OCL 1.0 specs
OpenCL 1.0: "Returns y if y < x, otherwise it returns x. If x *and* y
are infinite or NaN, the return values are undefined."

OpenCL 1.1+: "Returns y if y < x, otherwise it returns x. If x *or* y
are infinite or NaN, the return values are undefined."

The 1.0 version is stricter so use that one.

Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
llvm-svn: 276704
2016-07-25 22:36:22 +00:00
..
async Implement async_work_group_copy builtin v3 2014-10-03 19:49:39 +00:00
atomic atomic: Add generic atom[ic]_cmpxchg 2014-09-16 22:34:49 +00:00
cl_khr_global_int32_base_atomics atomic: Add generic atom[ic]_cmpxchg 2014-09-16 22:34:49 +00:00
cl_khr_global_int32_extended_atomics atomic: Add generic atomic_min implementation 2014-09-16 22:34:41 +00:00
cl_khr_local_int32_base_atomics atomic: Add generic atom[ic]_cmpxchg 2014-09-16 22:34:49 +00:00
cl_khr_local_int32_extended_atomics atomic: Add generic atomic_min implementation 2014-09-16 22:34:41 +00:00
common Move mix from math to common 2015-03-03 21:25:08 +00:00
geometric geometric: Limit fast_{distance,length} functions to single precision 2015-05-09 22:31:01 +00:00
image Add image attribute getter builtins 2015-09-21 14:47:53 +00:00
integer Implement generic mad_sat 2014-09-02 17:55:02 +00:00
math Implement cbrt builtin 2016-07-22 23:45:15 +00:00
relational Fix bitselect for float/double types v2 2015-03-05 15:31:05 +00:00
shared Make min follow the OCL 1.0 specs 2016-07-25 22:36:22 +00:00
workitem AMDGPU: Implement get_global_offset builtin 2016-07-22 17:24:24 +00:00
SOURCES Implement cbrt builtin 2016-07-22 23:45:15 +00:00
clcmacro.h Add _CLC_V_V_VP_VECTORIZE macro 2016-01-27 14:52:07 +00:00
gen_convert.py 64 bit integers are legal in full profile without an extension 2016-06-17 20:30:41 +00:00
subnormal_config.cl configure: Add --enable-runtime-subnormal option 2015-04-20 18:49:50 +00:00
subnormal_disable.ll configure: Add --enable-runtime-subnormal option 2015-04-20 18:49:50 +00:00
subnormal_helper_func.ll configure: Add --enable-runtime-subnormal option 2015-04-20 18:49:50 +00:00
subnormal_use_default.ll configure: Add --enable-runtime-subnormal option 2015-04-20 18:49:50 +00:00