2017-01-25 06:02:15 +08:00
|
|
|
; 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
|
2014-02-12 05:12:38 +08:00
|
|
|
|
2014-10-02 01:15:17 +08:00
|
|
|
; SI-LABEL: {{^}}infinite_loop:
|
2014-11-05 22:50:53 +08:00
|
|
|
; SI: v_mov_b32_e32 [[REG:v[0-9]+]], 0x3e7
|
2014-02-12 05:12:38 +08:00
|
|
|
; SI: BB0_1:
|
2017-06-02 22:19:25 +08:00
|
|
|
; SI: s_waitcnt lgkmcnt(0)
|
2014-11-05 22:50:53 +08:00
|
|
|
; SI: buffer_store_dword [[REG]]
|
|
|
|
; SI: s_branch BB0_1
|
2017-03-22 05:39:51 +08:00
|
|
|
define amdgpu_kernel void @infinite_loop(i32 addrspace(1)* %out) {
|
2014-02-12 05:12:38 +08:00
|
|
|
entry:
|
|
|
|
br label %for.body
|
|
|
|
|
|
|
|
for.body: ; preds = %entry, %for.body
|
|
|
|
store i32 999, i32 addrspace(1)* %out, align 4
|
|
|
|
br label %for.body
|
|
|
|
}
|
|
|
|
|