Evan Cheng | afff941 | 2011-12-20 18:26:50 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -O0 -fast-isel-abort -relocation-model=dynamic-no-pic -mtriple=armv7-apple-ios | FileCheck %s --check-prefix=ARM |
| 2 | ; RUN: llc < %s -O0 -fast-isel-abort -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-ios | FileCheck %s --check-prefix=THUMB |
Chad Rosier | 6d64b3a | 2011-10-27 00:21:16 +0000 | [diff] [blame] | 3 | |
| 4 | define i32 @t1(i32 %a, i32 %b) nounwind uwtable ssp { |
| 5 | entry: |
| 6 | ; THUMB: t1: |
| 7 | ; ARM: t1: |
| 8 | |
| 9 | br i1 1, label %if.then, label %if.else |
| 10 | ; THUMB-NOT: b LBB0_1 |
| 11 | ; ARM-NOT: b LBB0_1 |
| 12 | |
| 13 | if.then: ; preds = %entry |
| 14 | call void @foo1() |
| 15 | br label %if.end7 |
| 16 | |
| 17 | if.else: ; preds = %entry |
| 18 | br i1 0, label %if.then2, label %if.else3 |
| 19 | ; THUMB: b LBB0_4 |
| 20 | ; ARM: b LBB0_4 |
| 21 | |
| 22 | if.then2: ; preds = %if.else |
| 23 | call void @foo2() |
| 24 | br label %if.end6 |
| 25 | |
| 26 | if.else3: ; preds = %if.else |
| 27 | br i1 1, label %if.then5, label %if.end |
| 28 | ; THUMB-NOT: b LBB0_5 |
| 29 | ; ARM-NOT: b LBB0_5 |
| 30 | |
| 31 | if.then5: ; preds = %if.else3 |
| 32 | call void @foo1() |
| 33 | br label %if.end |
| 34 | |
| 35 | if.end: ; preds = %if.then5, %if.else3 |
| 36 | br label %if.end6 |
| 37 | |
| 38 | if.end6: ; preds = %if.end, %if.then2 |
| 39 | br label %if.end7 |
| 40 | |
| 41 | if.end7: ; preds = %if.end6, %if.then |
| 42 | ret i32 0 |
| 43 | } |
| 44 | |
| 45 | declare void @foo1() |
| 46 | |
| 47 | declare void @foo2() |