summaryrefslogtreecommitdiffstats
path: root/clang/test
diff options
context:
space:
mode:
authorJan Vesely <jan.vesely@rutgers.edu>2017-02-25 04:20:22 +0000
committerJan Vesely <jan.vesely@rutgers.edu>2017-02-25 04:20:22 +0000
commitc255097517131c5c40e3ba408ddf44924ec4d521 (patch)
tree74c5619f347885b74287f5e0a4faa63b8b5785be /clang/test
parentd26dbb389f1e693a8a7d085eb026c68718f68455 (diff)
downloadbcm5719-llvm-c255097517131c5c40e3ba408ddf44924ec4d521.tar.gz
bcm5719-llvm-c255097517131c5c40e3ba408ddf44924ec4d521.zip
AMDGPU: export l1 cache invalidation intrinsics
Differential Revision: https://reviews.llvm.org/D30360 llvm-svn: 296240
Diffstat (limited to 'clang/test')
-rw-r--r--clang/test/CodeGenOpenCL/builtins-amdgcn.cl14
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/CodeGenOpenCL/builtins-amdgcn.cl b/clang/test/CodeGenOpenCL/builtins-amdgcn.cl
index e9e765b521b..7b4ef08ce30 100644
--- a/clang/test/CodeGenOpenCL/builtins-amdgcn.cl
+++ b/clang/test/CodeGenOpenCL/builtins-amdgcn.cl
@@ -263,6 +263,20 @@ void test_class_f64(global double* out, double a, int b)
*out = __builtin_amdgcn_class(a, b);
}
+// CHECK-LABEL: @test_buffer_wbinvl1
+// CHECK: call void @llvm.amdgcn.buffer.wbinvl1(
+void test_buffer_wbinvl1()
+{
+ __builtin_amdgcn_buffer_wbinvl1();
+}
+
+// CHECK-LABEL: @test_s_dcache_inv
+// CHECK: call void @llvm.amdgcn.s.dcache.inv(
+void test_s_dcache_inv()
+{
+ __builtin_amdgcn_s_dcache_inv();
+}
+
// CHECK-LABEL: @test_s_waitcnt
// CHECK: call void @llvm.amdgcn.s.waitcnt(
void test_s_waitcnt()
OpenPOWER on IntegriCloud