mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
------------------------------------------------------------------------ r292982 | arsenm | 2017-01-24 14:02:15 -0800 (Tue, 24 Jan 2017) | 8 lines Enable FeatureFlatForGlobal on Volcanic Islands This switches to the workaround that HSA defaults to for the mesa path. This should be applied to the 4.0 branch. Patch by Vedran Miletić <vedran@miletic.net> ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_40@293326 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
615 B
LLVM
19 lines
615 B
LLVM
; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
|
|
|
; SI-LABEL: {{^}}infinite_loop:
|
|
; SI: v_mov_b32_e32 [[REG:v[0-9]+]], 0x3e7
|
|
; SI: BB0_1:
|
|
; SI: buffer_store_dword [[REG]]
|
|
; SI: s_waitcnt vmcnt(0) expcnt(0)
|
|
; SI: s_branch BB0_1
|
|
define void @infinite_loop(i32 addrspace(1)* %out) {
|
|
entry:
|
|
br label %for.body
|
|
|
|
for.body: ; preds = %entry, %for.body
|
|
store i32 999, i32 addrspace(1)* %out, align 4
|
|
br label %for.body
|
|
}
|
|
|