[PATCH] D71726: Let clang atomic builtins fetch add/sub support floating point types

Louis Dionne via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 25 11:14:51 PDT 2020


ldionne added inline comments.


================
Comment at: clang/test/CodeGenCUDA/amdgpu-atomic-ops.cu:26
+  // CHECK: atomicrmw fsub double* {{.*}} monotonic
+  return __atomic_fetch_sub(p, 1.0, memory_order_relaxed);
+}
----------------
Nitpick, but this should be `1.0L` to be consistent.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71726/new/

https://reviews.llvm.org/D71726





More information about the cfe-commits mailing list