efriedma added inline comments.

================
Comment at: test/CodeGen/ms-intrinsics.c:379
+// CHECK:   [[RESULT:%[0-9]+]] = atomicrmw add i32* %value, i32 %mask seq_cst
+// CHECK:   ret i32 [[RESULT:%[0-9]+]]
+// CHECK: }
----------------
Missing "add" instruction.  _InterlockedAdd is supposed to return the sum, not 
the original value in memory.


Repository:
  rC Clang

https://reviews.llvm.org/D52811



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to