source: icGREP/icgrep-devel/llvm-3.5.0.src/test/CodeGen/R600/basic-loop.ll @ 4574

Last change on this file since 4574 was 4574, checked in by cameron, 4 years ago

Updating to LLVM 3.6

File size: 466 bytes
Line 
1; RUN: llc -O0 -verify-machineinstrs -march=amdgcn -mcpu=SI < %s | FileCheck %s
2
3; CHECK-LABEL: {{^}}test_loop:
4define void @test_loop(i32 addrspace(1)* noalias %out, i32 addrspace(1)* noalias %in, i32 %val) nounwind {
5entry:
6  br label %loop.body
7
8loop.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
14
15end:
16  ret void
17}
Note: See TracBrowser for help on using the repository browser.