Mercurial > hg > Members > tobaru > cbc > CbC_llvm
view test/CodeGen/AMDGPU/basic-loop.ll @ 95:afa8332a0e37
LLVM 3.8
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Oct 2015 17:48:58 +0900 |
parents | test/CodeGen/R600/basic-loop.ll@60c9769439b8 |
children | 803732b1fca8 |
line wrap: on
line source
; RUN: llc -O0 -verify-machineinstrs -march=amdgcn -mcpu=SI < %s | FileCheck %s ; RUN: llc -O0 -verify-machineinstrs -march=amdgcn -mcpu=tonga < %s | FileCheck %s ; CHECK-LABEL: {{^}}test_loop: define void @test_loop(i32 addrspace(1)* noalias %out, i32 addrspace(1)* noalias %in, i32 %val) nounwind { entry: br label %loop.body loop.body: %i = phi i32 [0, %entry], [%i.inc, %loop.body] store i32 222, i32 addrspace(1)* %out %cmp = icmp ne i32 %i, %val %i.inc = add i32 %i, 1 br i1 %cmp, label %loop.body, label %end end: ret void }