2015-01-07 02:00:21 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
|
2015-01-28 01:27:15 +08:00
|
|
|
; RUN: llc -march=amdgcn -mcpu=tonga -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:
|
2014-11-05 22:50:53 +08:00
|
|
|
; SI: buffer_store_dword [[REG]]
|
|
|
|
; SI: s_waitcnt vmcnt(0) expcnt(0)
|
|
|
|
; SI: s_branch BB0_1
|
2014-02-12 05:12:38 +08:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|