summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/builtins-nvptx.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/builtins-nvptx.c')
-rw-r--r--test/CodeGen/builtins-nvptx.c9
1 files changed, 9 insertions, 0 deletions
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 @@ void nvvm_math(float f1, float f2, double d1, double d2) {
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();
}
OpenPOWER on IntegriCloud