blob: 8677ce535971e742f9bc4d75654699d9fe4274fa [file] [log] [blame]
Evan Cheng3825ce82009-10-02 06:53:57 +00001; RUN: llc < %s -mtriple=armv7-apple-darwin | FileCheck %s
Evan Cheng60c916b2007-06-20 18:26:15 +00002
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 void @t1(i32 %a, i32 %b) {
Evan Cheng62a1b5d2009-10-02 04:57:15 +000013; CHECK: t1:
Bob Wilsonea7f22c2010-03-16 16:19:07 +000014; CHECK: ldmialt sp!, {r7, pc}
Evan Cheng60c916b2007-06-20 18:26:15 +000015entry:
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 void
22
23UnifiedReturnBlock: ; preds = %entry
24 ret void
25}