diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2016-01-12 17:18:17 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2016-01-12 17:18:17 +0000 |
commit | f421837250edb3863ce6e7d9e2a08bfc3810639d (patch) | |
tree | a8b6736f14de5a5b2eb30be83f12c7264d0ff188 /llvm/test/CodeGen/AMDGPU/hsa-note-no-func.ll | |
parent | 029d0b73288183f0e210a4d01f333ff752efa06f (diff) | |
download | bcm5719-llvm-f421837250edb3863ce6e7d9e2a08bfc3810639d.tar.gz bcm5719-llvm-f421837250edb3863ce6e7d9e2a08bfc3810639d.zip |
AMDGPU: Emit note directive for HSA even if there are no functions
Reviewers: arsenm, echristo
Subscribers: arsenm, llvm-commits
Differential Revision: http://reviews.llvm.org/D16010
llvm-svn: 257488
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/hsa-note-no-func.ll')
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/hsa-note-no-func.ll | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/hsa-note-no-func.ll b/llvm/test/CodeGen/AMDGPU/hsa-note-no-func.ll new file mode 100644 index 00000000000..0e4662231b4 --- /dev/null +++ b/llvm/test/CodeGen/AMDGPU/hsa-note-no-func.ll @@ -0,0 +1,6 @@ +; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri | FileCheck --check-prefix=HSA --check-prefix=HSA-CI %s +; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=carrizo | FileCheck --check-prefix=HSA --check-prefix=HSA-VI %s + +; HSA: .hsa_code_object_version 1,0 +; HSA-CI: .hsa_code_object_isa 7,0,0,"AMD","AMDGPU" +; HSA-VI: .hsa_code_object_isa 8,0,1,"AMD","AMDGPU" |