1 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin10
3 %struct.OP = type { ptr, ptr, ptr, i32, i16, i16, i8, i8 }
4 %struct.SV = type { ptr, i32, i32 }
6 declare void @Perl_mg_set(ptr) nounwind
8 define ptr @Perl_pp_complement() nounwind {
10 %0 = load ptr, ptr null, align 4 ; <ptr> [#uses=2]
11 br i1 undef, label %bb21, label %bb5
14 br i1 undef, label %bb13, label %bb6
17 br i1 undef, label %bb8, label %bb7
20 %1 = getelementptr inbounds %struct.SV, ptr %0, i32 0, i32 0 ; <ptr> [#uses=1]
21 %2 = load ptr, ptr %1, align 4 ; <ptr> [#uses=1]
22 %3 = getelementptr inbounds i8, ptr %2, i32 12 ; <ptr> [#uses=1]
23 %4 = load i32, ptr %3, align 4 ; <i32> [#uses=1]
24 %storemerge5 = xor i32 %4, -1 ; <i32> [#uses=1]
25 call void @Perl_sv_setiv(ptr undef, i32 %storemerge5) nounwind
26 %5 = getelementptr inbounds %struct.SV, ptr undef, i32 0, i32 2 ; <ptr> [#uses=1]
27 %6 = load i32, ptr %5, align 4 ; <i32> [#uses=1]
28 %7 = and i32 %6, 16384 ; <i32> [#uses=1]
29 %8 = icmp eq i32 %7, 0 ; <i1> [#uses=1]
30 br i1 %8, label %bb12, label %bb11
36 call void @Perl_mg_set(ptr undef) nounwind
39 bb12: ; preds = %bb11, %bb7
40 store ptr undef, ptr null, align 4
44 %9 = call i32 @Perl_sv_2uv(ptr %0) nounwind ; <i32> [#uses=0]
45 br i1 undef, label %bb.i, label %bb1.i
48 call void @Perl_sv_setiv(ptr undef, i32 undef) nounwind
49 br label %Perl_sv_setuv.exit
51 bb1.i: ; preds = %bb13
52 br label %Perl_sv_setuv.exit
54 Perl_sv_setuv.exit: ; preds = %bb1.i, %bb.i
55 %10 = getelementptr inbounds %struct.SV, ptr undef, i32 0, i32 2 ; <ptr> [#uses=1]
56 %11 = load i32, ptr %10, align 4 ; <i32> [#uses=1]
57 %12 = and i32 %11, 16384 ; <i32> [#uses=1]
58 %13 = icmp eq i32 %12, 0 ; <i1> [#uses=1]
59 br i1 %13, label %bb20, label %bb19
61 bb19: ; preds = %Perl_sv_setuv.exit
62 call void @Perl_mg_set(ptr undef) nounwind
65 bb20: ; preds = %bb19, %Perl_sv_setuv.exit
66 store ptr undef, ptr null, align 4
69 bb21: ; preds = %entry
70 br i1 undef, label %bb23, label %bb22
78 bb44: ; preds = %bb20, %bb12
82 declare void @Perl_sv_setiv(ptr, i32) nounwind
84 declare i32 @Perl_sv_2uv(ptr) nounwind