diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2015-12-15 22:39:36 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2015-12-15 22:39:36 +0000 |
commit | 29dd05e92fec48d1548d5f982a4a5494facdac84 (patch) | |
tree | 74801794ab8fa3a8d485a8bda320e6ddd9db66e5 /llvm/test/CodeGen/AMDGPU/global-constant.ll | |
parent | 1fbae3b76a3dbb463d37953140b02efa6f94d93c (diff) | |
download | bcm5719-llvm-29dd05e92fec48d1548d5f982a4a5494facdac84.tar.gz bcm5719-llvm-29dd05e92fec48d1548d5f982a4a5494facdac84.zip |
AMDGPU/SI: Emit constant variables in the .hsatext section when targeting HSA
Reviewers: arsenm
Subscribers: arsenm, llvm-commits
Differential Revision: http://reviews.llvm.org/D15426
llvm-svn: 255689
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/global-constant.ll')
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/global-constant.ll | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/global-constant.ll b/llvm/test/CodeGen/AMDGPU/global-constant.ll index b52a0a10313..bc5f031cd4a 100644 --- a/llvm/test/CodeGen/AMDGPU/global-constant.ll +++ b/llvm/test/CodeGen/AMDGPU/global-constant.ll @@ -1,4 +1,5 @@ -; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=GCN %s +; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=NOHSA %s +; RUN: llc -mtriple=amdgcn--amdhsa -mcpu=kaveri -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=HSA %s @readonly = private unnamed_addr addrspace(2) constant [4 x float] [float 0.0, float 1.0, float 2.0, float 3.0] @readonly2 = private unnamed_addr addrspace(2) constant [4 x float] [float 4.0, float 5.0, float 6.0, float 7.0] @@ -10,7 +11,8 @@ ; GCN: s_getpc_b64 s{{\[}}[[PC1_LO:[0-9]+]]:[[PC1_HI:[0-9]+]]{{\]}} ; GCN-NEXT: s_add_u32 s{{[0-9]+}}, s[[PC1_LO]], readonly ; GCN: s_addc_u32 s{{[0-9]+}}, s[[PC1_HI]], 0 -; GCN: .text +; NOHSA: .text +; HSA: .hsatext ; GCN: readonly: ; GCN: readonly2: define void @main(i32 %index, float addrspace(1)* %out) { |