mirror of https://github.com/microsoft/clang.git
AMDGPU: Add another missing builtin
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339395 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9a2dafaebb
commit
f2b72fdc01
|
@ -104,6 +104,7 @@ BUILTIN(__builtin_amdgcn_ds_fmaxf, "ff*3fIiIiIb", "n")
|
|||
// CI+ only builtins.
|
||||
//===----------------------------------------------------------------------===//
|
||||
TARGET_BUILTIN(__builtin_amdgcn_s_dcache_inv_vol, "v", "n", "ci-insts")
|
||||
TARGET_BUILTIN(__builtin_amdgcn_buffer_wbinvl1_vol, "v", "n", "ci-insts")
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// VI+ only builtins.
|
||||
|
|
|
@ -10,3 +10,10 @@ void test_s_dcache_inv_vol()
|
|||
__builtin_amdgcn_s_dcache_inv_vol();
|
||||
}
|
||||
|
||||
// CHECK-LABEL: @test_buffer_wbinvl1_vol
|
||||
// CHECK: call void @llvm.amdgcn.buffer.wbinvl1.vol()
|
||||
void test_buffer_wbinvl1_vol()
|
||||
{
|
||||
__builtin_amdgcn_buffer_wbinvl1_vol();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
// REQUIRES: amdgpu-registered-target
|
||||
// RUN: %clang_cc1 -triple amdgcn-- -target-cpu tahiti -verify -S -o - %s
|
||||
|
||||
void test_ci_s_dcache_inv_vol()
|
||||
void test_ci_biltins()
|
||||
{
|
||||
__builtin_amdgcn_s_dcache_inv_vol(); // expected-error {{'__builtin_amdgcn_s_dcache_inv_vol' needs target feature ci-insts}}
|
||||
__builtin_amdgcn_buffer_wbinvl1_vol(); // expected-error {{'__builtin_amdgcn_buffer_wbinvl1_vol' needs target feature ci-insts}}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue