diff options
Diffstat (limited to 'test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll')
-rw-r--r-- | test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll b/test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll index c91a44cf60e5b..cc4b6bcbfb51e 100644 --- a/test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll +++ b/test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll @@ -6,7 +6,8 @@ ; TONGA-LABEL: test define void @test(<256 x i32> addrspace(1)* %out, <256 x i32> addrspace(1)* %in) { entry: - %tid = call i32 @llvm.SI.tid() nounwind readnone + %mbcnt.lo = call i32 @llvm.amdgcn.mbcnt.lo(i32 -1, i32 0) + %tid = call i32 @llvm.amdgcn.mbcnt.hi(i32 -1, i32 %mbcnt.lo) %aptr = getelementptr <256 x i32>, <256 x i32> addrspace(1)* %in, i32 %tid %a = load <256 x i32>, <256 x i32> addrspace(1)* %aptr call void asm sideeffect "", "~{memory}" () @@ -21,4 +22,7 @@ entry: ret void } -declare i32 @llvm.SI.tid() nounwind readnone +declare i32 @llvm.amdgcn.mbcnt.lo(i32, i32) #0 +declare i32 @llvm.amdgcn.mbcnt.hi(i32, i32) #0 + +attributes #0 = { nounwind readnone } |