blob: a1923ec2c3e08d8c46e0d98c877142fb9035648c [file] [log] [blame]
Saleem Abdulrasool72587352014-04-03 16:01:44 +00001; RUN: llc -mtriple=arm-eabi %s -o /dev/null
Bob Wilsoncf6e29a2010-03-04 21:04:38 +00002
3define void @"java.lang.String::getChars"([84 x i8]* %method, i32 %base_pc, [788 x i8]* %thread) {
4 %1 = sub i32 undef, 48 ; <i32> [#uses=1]
5 br i1 undef, label %stack_overflow, label %no_overflow
6
7stack_overflow: ; preds = %0
8 unreachable
9
10no_overflow: ; preds = %0
11 %frame = inttoptr i32 %1 to [17 x i32]* ; <[17 x i32]*> [#uses=4]
David Blaikiea79ac142015-02-27 21:17:42 +000012 %2 = load i32, i32* null ; <i32> [#uses=2]
David Blaikie79e6c742015-02-27 19:29:02 +000013 %3 = getelementptr inbounds [17 x i32], [17 x i32]* %frame, i32 0, i32 14 ; <i32*> [#uses=1]
David Blaikiea79ac142015-02-27 21:17:42 +000014 %4 = load i32, i32* %3 ; <i32> [#uses=2]
15 %5 = load [8 x i8]*, [8 x i8]** undef ; <[8 x i8]*> [#uses=2]
Bob Wilsoncf6e29a2010-03-04 21:04:38 +000016 br i1 undef, label %bci_13, label %bci_4
17
18bci_13: ; preds = %no_overflow
19 br i1 undef, label %bci_30, label %bci_21
20
21bci_30: ; preds = %bci_13
22 %6 = icmp sle i32 %2, %4 ; <i1> [#uses=1]
23 br i1 %6, label %bci_46, label %bci_35
24
25bci_46: ; preds = %bci_30
26 store [84 x i8]* %method, [84 x i8]** undef
27 br i1 false, label %no_exception, label %exception
28
29exception: ; preds = %bci_46
30 ret void
31
32no_exception: ; preds = %bci_46
33 ret void
34
35bci_35: ; preds = %bci_30
David Blaikie79e6c742015-02-27 19:29:02 +000036 %7 = getelementptr inbounds [17 x i32], [17 x i32]* %frame, i32 0, i32 15 ; <i32*> [#uses=1]
Bob Wilsoncf6e29a2010-03-04 21:04:38 +000037 store i32 %2, i32* %7
David Blaikie79e6c742015-02-27 19:29:02 +000038 %8 = getelementptr inbounds [17 x i32], [17 x i32]* %frame, i32 0, i32 14 ; <i32*> [#uses=1]
Bob Wilsoncf6e29a2010-03-04 21:04:38 +000039 store i32 %4, i32* %8
David Blaikie79e6c742015-02-27 19:29:02 +000040 %9 = getelementptr inbounds [17 x i32], [17 x i32]* %frame, i32 0, i32 13 ; <i32*> [#uses=1]
Bob Wilsoncf6e29a2010-03-04 21:04:38 +000041 %10 = bitcast i32* %9 to [8 x i8]** ; <[8 x i8]**> [#uses=1]
42 store [8 x i8]* %5, [8 x i8]** %10
43 call void inttoptr (i32 13839116 to void ([788 x i8]*, i32)*)([788 x i8]* %thread, i32 7)
44 ret void
45
46bci_21: ; preds = %bci_13
47 ret void
48
49bci_4: ; preds = %no_overflow
50 store [8 x i8]* %5, [8 x i8]** undef
51 store i32 undef, i32* undef
52 call void inttoptr (i32 13839116 to void ([788 x i8]*, i32)*)([788 x i8]* %thread, i32 7)
53 ret void
54}