]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/blob - test/CodeGen/R600/basic-loop.ll
R600/SI: Fix simple-loop.ll test
[opencl/llvm.git] / test / CodeGen / R600 / basic-loop.ll
1 ; RUN: llc -O0 -verify-machineinstrs -march=amdgcn -mcpu=SI < %s | FileCheck %s
3 ; CHECK-LABEL: {{^}}test_loop:
4 define void @test_loop(i32 addrspace(1)* noalias %out, i32 addrspace(1)* noalias %in, i32 %val) nounwind {
5 entry:
6   br label %loop.body
8 loop.body:
9   %i = phi i32 [0, %entry], [%i.inc, %loop.body]
10   store i32 222, i32 addrspace(1)* %out
11   %cmp = icmp ne i32 %i, %val
12   %i.inc = add i32 %i, 1
13   br i1 %cmp, label %loop.body, label %end
15 end:
16   ret void
17 }