1; RUN: llc -march=amdgcn -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s 2; RUN: llc -march=amdgcn -mcpu=tonga -mattr=-flat-for-global -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: s_waitcnt lgkmcnt(0) 8; SI: buffer_store_dword [[REG]] 9; SI: s_branch BB0_1 10define amdgpu_kernel 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