1*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-apple-ios | FileCheck %s --check-prefix=ARM 2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-linux-gnueabi | FileCheck %s --check-prefix=ARM 3*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=thumbv7-apple-ios | FileCheck %s --check-prefix=THUMB 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Workerdefine i32 @t1(i32 %a, i32 %b) nounwind uwtable ssp { 6*9880d681SAndroid Build Coastguard Workerentry: 7*9880d681SAndroid Build Coastguard Worker; THUMB-LABEL: t1: 8*9880d681SAndroid Build Coastguard Worker; ARM-LABEL: t1: 9*9880d681SAndroid Build Coastguard Worker %x = add i32 %a, %b 10*9880d681SAndroid Build Coastguard Worker br i1 1, label %if.then, label %if.else 11*9880d681SAndroid Build Coastguard Worker; THUMB-NOT: b {{\.?}}LBB0_1 12*9880d681SAndroid Build Coastguard Worker; ARM-NOT: b {{\.?}}LBB0_1 13*9880d681SAndroid Build Coastguard Worker 14*9880d681SAndroid Build Coastguard Workerif.then: ; preds = %entry 15*9880d681SAndroid Build Coastguard Worker call void @foo1() 16*9880d681SAndroid Build Coastguard Worker br label %if.end7 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Workerif.else: ; preds = %entry 19*9880d681SAndroid Build Coastguard Worker br i1 0, label %if.then2, label %if.else3 20*9880d681SAndroid Build Coastguard Worker; THUMB: b {{\.?}}LBB0_4 21*9880d681SAndroid Build Coastguard Worker; ARM: b {{\.?}}LBB0_4 22*9880d681SAndroid Build Coastguard Worker 23*9880d681SAndroid Build Coastguard Workerif.then2: ; preds = %if.else 24*9880d681SAndroid Build Coastguard Worker call void @foo2() 25*9880d681SAndroid Build Coastguard Worker br label %if.end6 26*9880d681SAndroid Build Coastguard Worker 27*9880d681SAndroid Build Coastguard Workerif.else3: ; preds = %if.else 28*9880d681SAndroid Build Coastguard Worker %y = sub i32 %a, %b 29*9880d681SAndroid Build Coastguard Worker br i1 1, label %if.then5, label %if.end 30*9880d681SAndroid Build Coastguard Worker; THUMB-NOT: b {{\.?}}LBB0_5 31*9880d681SAndroid Build Coastguard Worker; ARM-NOT: b {{\.?}}LBB0_5 32*9880d681SAndroid Build Coastguard Worker 33*9880d681SAndroid Build Coastguard Workerif.then5: ; preds = %if.else3 34*9880d681SAndroid Build Coastguard Worker call void @foo1() 35*9880d681SAndroid Build Coastguard Worker br label %if.end 36*9880d681SAndroid Build Coastguard Worker 37*9880d681SAndroid Build Coastguard Workerif.end: ; preds = %if.then5, %if.else3 38*9880d681SAndroid Build Coastguard Worker br label %if.end6 39*9880d681SAndroid Build Coastguard Worker 40*9880d681SAndroid Build Coastguard Workerif.end6: ; preds = %if.end, %if.then2 41*9880d681SAndroid Build Coastguard Worker br label %if.end7 42*9880d681SAndroid Build Coastguard Worker 43*9880d681SAndroid Build Coastguard Workerif.end7: ; preds = %if.end6, %if.then 44*9880d681SAndroid Build Coastguard Worker ret i32 0 45*9880d681SAndroid Build Coastguard Worker} 46*9880d681SAndroid Build Coastguard Worker 47*9880d681SAndroid Build Coastguard Workerdeclare void @foo1() 48*9880d681SAndroid Build Coastguard Worker 49*9880d681SAndroid Build Coastguard Workerdeclare void @foo2() 50