Bob Wilson | 436e6e7 | 2010-03-04 21:42:36 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple=arm-unknown-linux-gnueabi |
| 2 | |
| 3 | define void @"java.lang.String::getChars"([84 x i8]* %method, i32 %base_pc, [788 x i8]* %thread) { |
| 4 | %1 = load i32* undef ; <i32> [#uses=1] |
| 5 | %2 = sub i32 %1, 48 ; <i32> [#uses=1] |
| 6 | br i1 undef, label %stack_overflow, label %no_overflow |
| 7 | |
| 8 | stack_overflow: ; preds = %0 |
| 9 | unreachable |
| 10 | |
| 11 | no_overflow: ; preds = %0 |
| 12 | %frame = inttoptr i32 %2 to [17 x i32]* ; <[17 x i32]*> [#uses=4] |
| 13 | %3 = load i32* undef ; <i32> [#uses=1] |
| 14 | %4 = load i32* null ; <i32> [#uses=1] |
| 15 | %5 = getelementptr inbounds [17 x i32]* %frame, i32 0, i32 13 ; <i32*> [#uses=1] |
| 16 | %6 = bitcast i32* %5 to [8 x i8]** ; <[8 x i8]**> [#uses=1] |
| 17 | %7 = load [8 x i8]** %6 ; <[8 x i8]*> [#uses=1] |
| 18 | %8 = getelementptr inbounds [17 x i32]* %frame, i32 0, i32 12 ; <i32*> [#uses=1] |
| 19 | %9 = load i32* %8 ; <i32> [#uses=1] |
| 20 | br i1 undef, label %bci_13, label %bci_4 |
| 21 | |
| 22 | bci_13: ; preds = %no_overflow |
| 23 | br i1 undef, label %bci_30, label %bci_21 |
| 24 | |
| 25 | bci_30: ; preds = %bci_13 |
| 26 | br i1 undef, label %bci_46, label %bci_35 |
| 27 | |
| 28 | bci_46: ; preds = %bci_30 |
| 29 | %10 = sub i32 %4, %3 ; <i32> [#uses=1] |
| 30 | %11 = load [8 x i8]** null ; <[8 x i8]*> [#uses=1] |
| 31 | %callee = bitcast [8 x i8]* %11 to [84 x i8]* ; <[84 x i8]*> [#uses=1] |
| 32 | %12 = bitcast i8* undef to i32* ; <i32*> [#uses=1] |
| 33 | %base_pc7 = load i32* %12 ; <i32> [#uses=2] |
| 34 | %13 = add i32 %base_pc7, 0 ; <i32> [#uses=1] |
| 35 | %14 = inttoptr i32 %13 to void ([84 x i8]*, i32, [788 x i8]*)** ; <void ([84 x i8]*, i32, [788 x i8]*)**> [#uses=1] |
| 36 | %entry_point = load void ([84 x i8]*, i32, [788 x i8]*)** %14 ; <void ([84 x i8]*, i32, [788 x i8]*)*> [#uses=1] |
| 37 | %15 = getelementptr inbounds [17 x i32]* %frame, i32 0, i32 1 ; <i32*> [#uses=1] |
| 38 | %16 = ptrtoint i32* %15 to i32 ; <i32> [#uses=1] |
| 39 | %stack_pointer_addr9 = bitcast i8* undef to i32* ; <i32*> [#uses=1] |
| 40 | store i32 %16, i32* %stack_pointer_addr9 |
| 41 | %17 = getelementptr inbounds [17 x i32]* %frame, i32 0, i32 2 ; <i32*> [#uses=1] |
| 42 | store i32 %9, i32* %17 |
| 43 | store i32 %10, i32* undef |
| 44 | store [84 x i8]* %method, [84 x i8]** undef |
| 45 | %18 = add i32 %base_pc, 20 ; <i32> [#uses=1] |
| 46 | store i32 %18, i32* undef |
| 47 | store [8 x i8]* %7, [8 x i8]** undef |
| 48 | call void %entry_point([84 x i8]* %callee, i32 %base_pc7, [788 x i8]* %thread) |
| 49 | br i1 undef, label %no_exception, label %exception |
| 50 | |
| 51 | exception: ; preds = %bci_46 |
| 52 | ret void |
| 53 | |
| 54 | no_exception: ; preds = %bci_46 |
| 55 | ret void |
| 56 | |
| 57 | bci_35: ; preds = %bci_30 |
| 58 | ret void |
| 59 | |
| 60 | bci_21: ; preds = %bci_13 |
| 61 | ret void |
| 62 | |
| 63 | bci_4: ; preds = %no_overflow |
| 64 | ret void |
| 65 | } |