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