~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/CodeGen/ARM/ifcvt5.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -mtriple=armv7-apple-ios | FileCheck %s
 
2
 
 
3
@x = external global i32*               ; <i32**> [#uses=1]
 
4
 
 
5
define void @foo(i32 %a) {
 
6
entry:
 
7
        %tmp = load i32** @x            ; <i32*> [#uses=1]
 
8
        store i32 %a, i32* %tmp
 
9
        ret void
 
10
}
 
11
 
 
12
define i32 @t1(i32 %a, i32 %b) {
 
13
; CHECK: t1:
 
14
; CHECK: poplt {r7, pc}
 
15
entry:
 
16
        %tmp1 = icmp sgt i32 %a, 10             ; <i1> [#uses=1]
 
17
        br i1 %tmp1, label %cond_true, label %UnifiedReturnBlock
 
18
 
 
19
cond_true:              ; preds = %entry
 
20
        tail call void @foo( i32 %b )
 
21
        ret i32 0
 
22
 
 
23
UnifiedReturnBlock:             ; preds = %entry
 
24
        ret i32 1
 
25
}