diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2015-12-02 17:00:42 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2015-12-02 17:00:42 +0000 |
| commit | e3b5aeaf8325da211d0be7b3717dc7425dd5e259 (patch) | |
| tree | f05569538df50145019f05cc7a3ac868191c8128 /llvm/test/CodeGen/AMDGPU | |
| parent | 942003acc6f595fdc324c98812b802880aedb14d (diff) | |
| download | bcm5719-llvm-e3b5aeaf8325da211d0be7b3717dc7425dd5e259.tar.gz bcm5719-llvm-e3b5aeaf8325da211d0be7b3717dc7425dd5e259.zip | |
AMDGPU/SI: Don't emit group segment global variables
Summary: Only global or readonly segment variables should appear in object files.
Reviewers: arsenm
Subscribers: arsenm, llvm-commits
Differential Revision: http://reviews.llvm.org/D15111
llvm-svn: 254519
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU')
| -rw-r--r-- | llvm/test/CodeGen/AMDGPU/hsa-group-segment.ll | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/hsa-group-segment.ll b/llvm/test/CodeGen/AMDGPU/hsa-group-segment.ll new file mode 100644 index 00000000000..1999dc38a6b --- /dev/null +++ b/llvm/test/CodeGen/AMDGPU/hsa-group-segment.ll @@ -0,0 +1,14 @@ +; RUN: llc < %s -mtriple=amdgcn--amdhsa -mcpu=kaveri | FileCheck --check-prefix=HSA %s + +@internal_group = internal addrspace(3) global i32 undef +@external_group = addrspace(3) global i32 undef + +define void @test() { +entry: + store i32 0, i32 addrspace(3)* @internal_group + store i32 0, i32 addrspace(3)* @external_group + ret void +} + +; HSA-NOT: internal_group: +; HSA-NOT: external_group: |

