1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=thumbv7-apple-darwin10 -arm-atomic-cfg-tidy=0 < %s | FileCheck %s 2*9880d681SAndroid Build Coastguard Worker 3*9880d681SAndroid Build Coastguard Worker%struct.op = type { %struct.op*, %struct.op*, %struct.op* ()*, i32, i16, i16, i8, i8 } 4*9880d681SAndroid Build Coastguard Worker 5*9880d681SAndroid Build Coastguard Worker; CHECK: Perl_ck_sort 6*9880d681SAndroid Build Coastguard Worker; CHECK: ldr 7*9880d681SAndroid Build Coastguard Worker; CHECK: mov [[REGISTER:(r[0-9]+)|(lr)]] 8*9880d681SAndroid Build Coastguard Worker; CHECK: str {{(r[0-9])|(lr)}}, {{\[}}[[REGISTER]]{{\]}}, #24 9*9880d681SAndroid Build Coastguard Worker 10*9880d681SAndroid Build Coastguard Workerdefine void @Perl_ck_sort() nounwind optsize { 11*9880d681SAndroid Build Coastguard Workerentry: 12*9880d681SAndroid Build Coastguard Worker %tmp27 = load %struct.op*, %struct.op** undef, align 4 13*9880d681SAndroid Build Coastguard Worker switch i16 undef, label %if.end151 [ 14*9880d681SAndroid Build Coastguard Worker i16 178, label %if.then60 15*9880d681SAndroid Build Coastguard Worker i16 177, label %if.then60 16*9880d681SAndroid Build Coastguard Worker ] 17*9880d681SAndroid Build Coastguard Worker 18*9880d681SAndroid Build Coastguard Workerif.then60: ; preds = %if.then40 19*9880d681SAndroid Build Coastguard Worker br i1 undef, label %if.then67, label %if.end95 20*9880d681SAndroid Build Coastguard Worker 21*9880d681SAndroid Build Coastguard Workerif.then67: ; preds = %if.then60 22*9880d681SAndroid Build Coastguard Worker %op_next71 = getelementptr inbounds %struct.op, %struct.op* %tmp27, i32 0, i32 0 23*9880d681SAndroid Build Coastguard Worker store %struct.op* %tmp27, %struct.op** %op_next71, align 4 24*9880d681SAndroid Build Coastguard Worker %0 = getelementptr inbounds %struct.op, %struct.op* %tmp27, i32 1, i32 0 25*9880d681SAndroid Build Coastguard Worker br label %if.end95 26*9880d681SAndroid Build Coastguard Worker 27*9880d681SAndroid Build Coastguard Workerif.end95: ; preds = %if.else92, %if.then67 28*9880d681SAndroid Build Coastguard Worker %.pre-phi = phi %struct.op** [ undef, %if.then60 ], [ %0, %if.then67 ] 29*9880d681SAndroid Build Coastguard Worker %tmp98 = load %struct.op*, %struct.op** %.pre-phi, align 4 30*9880d681SAndroid Build Coastguard Worker br label %if.end151 31*9880d681SAndroid Build Coastguard Worker 32*9880d681SAndroid Build Coastguard Workerif.end151: ; preds = %if.end100, %if.end, %entry 33*9880d681SAndroid Build Coastguard Worker ret void 34*9880d681SAndroid Build Coastguard Worker} 35