[NVPTX] Add entire list of supported builtins
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182468 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGen/builtins-nvptx.c b/test/CodeGen/builtins-nvptx.c
index 2c7e0c1..7deee8e 100644
--- a/test/CodeGen/builtins-nvptx.c
+++ b/test/CodeGen/builtins-nvptx.c
@@ -165,4 +165,13 @@
double td3 = __nvvm_sqrt_rn_d(d1);
// CHECK: call double @llvm.nvvm.rcp.rn.d
double td4 = __nvvm_rcp_rn_d(d2);
+
+// CHECK: call void @llvm.nvvm.membar.cta()
+ __nvvm_membar_cta();
+// CHECK: call void @llvm.nvvm.membar.gl()
+ __nvvm_membar_gl();
+// CHECK: call void @llvm.nvvm.membar.sys()
+ __nvvm_membar_sys();
+// CHECK: call void @llvm.nvvm.barrier0()
+ __nvvm_bar0();
}