blob: 48edab00b94d0abfb60579ee6187d6b4565e5aa0 [file] [log] [blame]
Matt Arsenault71b71d22014-02-11 21:12:38 +00001; RUN: llc -march=r600 -mcpu=SI -verify-machineinstrs < %s | FileCheck -check-prefix=SI %s
2
Tom Stellard79243d92014-10-01 17:15:17 +00003; SI-LABEL: {{^}}infinite_loop:
Tom Stellard326d6ec2014-11-05 14:50:53 +00004; SI: v_mov_b32_e32 [[REG:v[0-9]+]], 0x3e7
Matt Arsenault71b71d22014-02-11 21:12:38 +00005; SI: BB0_1:
Tom Stellard326d6ec2014-11-05 14:50:53 +00006; SI: buffer_store_dword [[REG]]
7; SI: s_waitcnt vmcnt(0) expcnt(0)
8; SI: s_branch BB0_1
Matt Arsenault71b71d22014-02-11 21:12:38 +00009define void @infinite_loop(i32 addrspace(1)* %out) {
10entry:
11 br label %for.body
12
13for.body: ; preds = %entry, %for.body
14 store i32 999, i32 addrspace(1)* %out, align 4
15 br label %for.body
16}
17