mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
26ecf8e5ac
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254519 91177308-0d34-0410-b5e6-96231b3b80d8
15 lines
389 B
LLVM
15 lines
389 B
LLVM
; 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:
|