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