1 ; RUN: llc -mtriple=arm-eabi %s -o /dev/null
3 define void @"java.lang.String::getChars"(ptr %method, i32 %base_pc, ptr %thread) {
4 %1 = sub i32 undef, 48 ; <i32> [#uses=1]
5 br i1 undef, label %stack_overflow, label %no_overflow
7 stack_overflow: ; preds = %0
10 no_overflow: ; preds = %0
11 %frame = inttoptr i32 %1 to ptr ; <ptr> [#uses=4]
12 %2 = load i32, ptr null ; <i32> [#uses=2]
13 %3 = getelementptr inbounds [17 x i32], ptr %frame, i32 0, i32 14 ; <ptr> [#uses=1]
14 %4 = load i32, ptr %3 ; <i32> [#uses=2]
15 %5 = load ptr, ptr undef ; <ptr> [#uses=2]
16 br i1 undef, label %bci_13, label %bci_4
18 bci_13: ; preds = %no_overflow
19 br i1 undef, label %bci_30, label %bci_21
21 bci_30: ; preds = %bci_13
22 %6 = icmp sle i32 %2, %4 ; <i1> [#uses=1]
23 br i1 %6, label %bci_46, label %bci_35
25 bci_46: ; preds = %bci_30
26 store ptr %method, ptr undef
27 br i1 false, label %no_exception, label %exception
29 exception: ; preds = %bci_46
32 no_exception: ; preds = %bci_46
35 bci_35: ; preds = %bci_30
36 %7 = getelementptr inbounds [17 x i32], ptr %frame, i32 0, i32 15 ; <ptr> [#uses=1]
38 %8 = getelementptr inbounds [17 x i32], ptr %frame, i32 0, i32 14 ; <ptr> [#uses=1]
40 %9 = getelementptr inbounds [17 x i32], ptr %frame, i32 0, i32 13 ; <ptr> [#uses=1]
42 call void inttoptr (i32 13839116 to ptr)(ptr %thread, i32 7)
45 bci_21: ; preds = %bci_13
48 bci_4: ; preds = %no_overflow
49 store ptr %5, ptr undef
50 store i32 undef, ptr undef
51 call void inttoptr (i32 13839116 to ptr)(ptr %thread, i32 7)