1; RUN: llc -march=amdgcn -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
2; RUN: llc -march=amdgcn -mcpu=tonga -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
3
4; SI-LABEL: {{^}}infinite_loop:
5; SI: v_mov_b32_e32 [[REG:v[0-9]+]], 0x3e7
6; SI: BB0_1:
7; SI: buffer_store_dword [[REG]]
8; SI: s_waitcnt vmcnt(0) expcnt(0)
9; SI: s_branch BB0_1
10define void @infinite_loop(i32 addrspace(1)* %out) {
11entry:
12  br label %for.body
13
14for.body:                                         ; preds = %entry, %for.body
15  store i32 999, i32 addrspace(1)* %out, align 4
16  br label %for.body
17}
18
19