brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.9 KiB · de855b2 Raw
79 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -relocation-model=pic -verify-machineinstrs -start-before=hardware-loops < %s \3; RUN:   -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 | FileCheck %s4 5; NOTE: this needs to run starting at HW loops to ensure that the original loop6; does not end up producing a HW loop. If other passes are run prior, the loop7; will be transformed.8 9%struct.e.0.12.28.44.104.108.112.188 = type { i32 }10%struct.t.1.13.29.45.105.109.113.189 = type { i64, i64 }11 12@g = external local_unnamed_addr global %struct.e.0.12.28.44.104.108.112.188, align 413@aj = external thread_local local_unnamed_addr global %struct.t.1.13.29.45.105.109.113.189, align 814 15define void @_ZNK1q1rEv() local_unnamed_addr #0 align 2 {16; CHECK-LABEL: _ZNK1q1rEv:17; CHECK:       # %bb.0: # %entry18; CHECK-NEXT:    mflr 019; CHECK-NEXT:    std 29, -24(1) # 8-byte Folded Spill20; CHECK-NEXT:    std 30, -16(1) # 8-byte Folded Spill21; CHECK-NEXT:    stdu 1, -64(1)22; CHECK-NEXT:    std 0, 80(1)23; CHECK-NEXT:    lwz 3, 0(3)24; CHECK-NEXT:    addi 3, 3, -125; CHECK-NEXT:    clrldi 3, 3, 3226; CHECK-NEXT:    addi 30, 3, 127; CHECK-NEXT:    addis 3, 2, .LC0@toc@ha28; CHECK-NEXT:    ld 29, .LC0@toc@l(3)29; CHECK-NEXT:    addis 3, 2, aj@got@tlsgd@ha30; CHECK-NEXT:    addi 3, 3, aj@got@tlsgd@l31; CHECK-NEXT:    bl __tls_get_addr(aj@tlsgd)32; CHECK-NEXT:    nop33; CHECK-NEXT:    addi 4, 3, 834; CHECK-NEXT:    .p2align 535; CHECK-NEXT:  .LBB0_1: # %monotonic.i36; CHECK-NEXT:    #37; CHECK-NEXT:    lwz 5, 0(29)38; CHECK-NEXT:    andi. 5, 5, 25539; CHECK-NEXT:    bne 0, .LBB0_440; CHECK-NEXT:  # %bb.2: # %for.cond.i41; CHECK-NEXT:    #42; CHECK-NEXT:    addi 30, 30, -143; CHECK-NEXT:    cmpldi 30, 044; CHECK-NEXT:    bc 12, 1, .LBB0_145; CHECK-NEXT:  # %bb.3:46; CHECK-NEXT:    mr 4, 347; CHECK-NEXT:  .LBB0_4: # %if.end48; CHECK-NEXT:    li 3, 149; CHECK-NEXT:    std 3, 0(4)50; CHECK-NEXT:    addi 1, 1, 6451; CHECK-NEXT:    ld 0, 16(1)52; CHECK-NEXT:    ld 30, -16(1) # 8-byte Folded Reload53; CHECK-NEXT:    ld 29, -24(1) # 8-byte Folded Reload54; CHECK-NEXT:    mtlr 055; CHECK-NEXT:    blr56entry:57  %0 = load i32, ptr undef, align 458  br label %monotonic.i59 60for.cond.i:                                       ; preds = %monotonic.i61  %exitcond.not = icmp eq i32 %inc.i, %062  br i1 %exitcond.not, label %if.end, label %monotonic.i63 64monotonic.i:                                      ; preds = %for.cond.i, %entry65  %i.018.i = phi i32 [ %inc.i, %for.cond.i ], [ 0, %entry ]66  %1 = load atomic i32, ptr @g monotonic, align 467  %conv.i = trunc i32 %1 to i868  %tobool.not.i = icmp eq i8 %conv.i, 069  %inc.i = add nuw nsw i32 %i.018.i, 170  br i1 %tobool.not.i, label %for.cond.i, label %if.end71 72if.end:                                           ; preds = %monotonic.i, %for.cond.i73  %.sink = phi ptr [ getelementptr inbounds (%struct.t.1.13.29.45.105.109.113.189, ptr @aj, i64 0, i32 1), %monotonic.i ], [ @aj, %for.cond.i ]74  store i64 1, ptr %.sink, align 875  ret void76}77 78attributes #0 = { nounwind }79