| ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-apple-ios | FileCheck %s --check-prefix=ARM |
| ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-linux-gnueabi | FileCheck %s --check-prefix=ARM |
| ; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-ios | FileCheck %s --check-prefix=THUMB |
| define i32 @t1(i32 %a, i32 %b) nounwind uwtable ssp { |
| br i1 1, label %if.then, label %if.else |
| ; THUMB-NOT: b {{\.?}}LBB0_1 |
| ; ARM-NOT: b {{\.?}}LBB0_1 |
| if.then: ; preds = %entry |
| if.else: ; preds = %entry |
| br i1 0, label %if.then2, label %if.else3 |
| if.then2: ; preds = %if.else |
| if.else3: ; preds = %if.else |
| br i1 1, label %if.then5, label %if.end |
| ; THUMB-NOT: b {{\.?}}LBB0_5 |
| ; ARM-NOT: b {{\.?}}LBB0_5 |
| if.then5: ; preds = %if.else3 |
| if.end: ; preds = %if.then5, %if.else3 |
| if.end6: ; preds = %if.end, %if.then2 |
| if.end7: ; preds = %if.end6, %if.then |