blob: 471a82f271e042706ba1427be950edb32d64eb74 [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s -mtriple=thumbv6-elf | not grep "subs sp"
Evan Cheng53ec6b72009-07-20 19:47:55 +00002; PR4567
3
4define arm_apcscc i8* @__gets_chk(i8* %s, i32 %slen) nounwind {
5entry:
6 br i1 undef, label %bb, label %bb1
7
8bb: ; preds = %entry
9 ret i8* undef
10
11bb1: ; preds = %entry
12 br i1 undef, label %bb3, label %bb2
13
14bb2: ; preds = %bb1
15 %0 = alloca i8, i32 undef, align 4 ; <i8*> [#uses=0]
16 br label %bb4
17
18bb3: ; preds = %bb1
19 %1 = malloc i8, i32 undef ; <i8*> [#uses=0]
20 br label %bb4
21
22bb4: ; preds = %bb3, %bb2
23 br i1 undef, label %bb5, label %bb6
24
25bb5: ; preds = %bb4
26 %2 = call arm_apcscc i8* @gets(i8* %s) nounwind ; <i8*> [#uses=1]
27 ret i8* %2
28
29bb6: ; preds = %bb4
30 unreachable
31}
32
33declare arm_apcscc i8* @gets(i8*) nounwind