[OpenCL] Fix inconsistency between opencl and c11 atomic fetch max/min
authorYaxun (Sam) Liu <yaxun.liu@amd.com>
Thu, 19 Dec 2019 20:27:02 +0000 (15:27 -0500)
committerYaxun (Sam) Liu <yaxun.liu@amd.com>
Fri, 27 Dec 2019 16:29:04 +0000 (11:29 -0500)
commit134ef0fb4b92718477a1dc9da0118f9b2dd77237
tree15a2e92f4fbe9432c39ee9b9f2fed1cb2e6b8577
parentdc2c9b0fcf28d1d3d6f19ec15cb29dbbf1f43f9d
[OpenCL] Fix inconsistency between opencl and c11 atomic fetch max/min

There is some inconsistency between opencl and c11 atomic fetch max/min after

https://reviews.llvm.org/D46386

https://reviews.llvm.org/D55562

It is not reasonable to have such inconsistencies. This patch fixes that.

Differential Revision: https://reviews.llvm.org/D71725
clang/lib/Sema/SemaChecking.cpp
clang/test/SemaOpenCL/atomic-ops.cl