1 ; RUN: llc -O0 -verify-machineinstrs -march=amdgcn -mcpu=tahiti < %s | FileCheck %s
2 ; RUN: llc -O0 -verify-machineinstrs -march=amdgcn -mcpu=tonga < %s | FileCheck %s
4 ; CHECK-LABEL: {{^}}test_loop:
5 define amdgpu_kernel void @test_loop(ptr addrspace(1) noalias %out, ptr addrspace(1) noalias %in, i32 %val) nounwind {
10 %i = phi i32 [0, %entry], [%i.inc, %loop.body]
11 store i32 222, ptr addrspace(1) %out
12 %cmp = icmp ne i32 %i, %val
13 %i.inc = add i32 %i, 1
14 br i1 %cmp, label %loop.body, label %end