Home | History | Annotate | Download | only in Thumb2
      1 ; RUN: llc < %s -mtriple=thumbv7-apple-darwin10
      2 
      3 %struct.OP = type { %struct.OP*, %struct.OP*, %struct.OP* ()*, i32, i16, i16, i8, i8 }
      4 %struct.SV = type { i8*, i32, i32 }
      5 
      6 declare void @Perl_mg_set(%struct.SV*) nounwind
      7 
      8 define %struct.OP* @Perl_pp_complement() nounwind {
      9 entry:
     10   %0 = load %struct.SV** null, align 4            ; <%struct.SV*> [#uses=2]
     11   br i1 undef, label %bb21, label %bb5
     12 
     13 bb5:                                              ; preds = %entry
     14   br i1 undef, label %bb13, label %bb6
     15 
     16 bb6:                                              ; preds = %bb5
     17   br i1 undef, label %bb8, label %bb7
     18 
     19 bb7:                                              ; preds = %bb6
     20   %1 = getelementptr inbounds %struct.SV* %0, i32 0, i32 0 ; <i8**> [#uses=1]
     21   %2 = load i8** %1, align 4                      ; <i8*> [#uses=1]
     22   %3 = getelementptr inbounds i8* %2, i32 12      ; <i8*> [#uses=1]
     23   %4 = bitcast i8* %3 to i32*                     ; <i32*> [#uses=1]
     24   %5 = load i32* %4, align 4                      ; <i32> [#uses=1]
     25   %storemerge5 = xor i32 %5, -1                   ; <i32> [#uses=1]
     26   call  void @Perl_sv_setiv(%struct.SV* undef, i32 %storemerge5) nounwind
     27   %6 = getelementptr inbounds %struct.SV* undef, i32 0, i32 2 ; <i32*> [#uses=1]
     28   %7 = load i32* %6, align 4                      ; <i32> [#uses=1]
     29   %8 = and i32 %7, 16384                          ; <i32> [#uses=1]
     30   %9 = icmp eq i32 %8, 0                          ; <i1> [#uses=1]
     31   br i1 %9, label %bb12, label %bb11
     32 
     33 bb8:                                              ; preds = %bb6
     34   unreachable
     35 
     36 bb11:                                             ; preds = %bb7
     37   call  void @Perl_mg_set(%struct.SV* undef) nounwind
     38   br label %bb12
     39 
     40 bb12:                                             ; preds = %bb11, %bb7
     41   store %struct.SV* undef, %struct.SV** null, align 4
     42   br label %bb44
     43 
     44 bb13:                                             ; preds = %bb5
     45   %10 = call  i32 @Perl_sv_2uv(%struct.SV* %0) nounwind ; <i32> [#uses=0]
     46   br i1 undef, label %bb.i, label %bb1.i
     47 
     48 bb.i:                                             ; preds = %bb13
     49   call  void @Perl_sv_setiv(%struct.SV* undef, i32 undef) nounwind
     50   br label %Perl_sv_setuv.exit
     51 
     52 bb1.i:                                            ; preds = %bb13
     53   br label %Perl_sv_setuv.exit
     54 
     55 Perl_sv_setuv.exit:                               ; preds = %bb1.i, %bb.i
     56   %11 = getelementptr inbounds %struct.SV* undef, i32 0, i32 2 ; <i32*> [#uses=1]
     57   %12 = load i32* %11, align 4                    ; <i32> [#uses=1]
     58   %13 = and i32 %12, 16384                        ; <i32> [#uses=1]
     59   %14 = icmp eq i32 %13, 0                        ; <i1> [#uses=1]
     60   br i1 %14, label %bb20, label %bb19
     61 
     62 bb19:                                             ; preds = %Perl_sv_setuv.exit
     63   call  void @Perl_mg_set(%struct.SV* undef) nounwind
     64   br label %bb20
     65 
     66 bb20:                                             ; preds = %bb19, %Perl_sv_setuv.exit
     67   store %struct.SV* undef, %struct.SV** null, align 4
     68   br label %bb44
     69 
     70 bb21:                                             ; preds = %entry
     71   br i1 undef, label %bb23, label %bb22
     72 
     73 bb22:                                             ; preds = %bb21
     74   unreachable
     75 
     76 bb23:                                             ; preds = %bb21
     77   unreachable
     78 
     79 bb44:                                             ; preds = %bb20, %bb12
     80   ret %struct.OP* undef
     81 }
     82 
     83 declare void @Perl_sv_setiv(%struct.SV*, i32) nounwind
     84 
     85 declare i32 @Perl_sv_2uv(%struct.SV*) nounwind
     86