1; RUN: llc -mcpu=pwr7 < %s | FileCheck %s 2target datalayout = "E-m:e-i64:64-n32:64" 3target triple = "powerpc64-unknown-linux-gnu" 4 5; Function Attrs: nounwind 6define void @_Z28test_goto_loop_unroll_factorILi22EiEvPKT0_iPKc(i32* nocapture readonly %first) #0 { 7entry: 8 br i1 false, label %loop2_start, label %if.end5 9 10; CHECK-LABEL: @_Z28test_goto_loop_unroll_factorILi22EiEvPKT0_iPKc 11 12loop2_start: ; preds = %loop2_start, %entry 13 br i1 undef, label %loop2_start, label %if.then.i31 14 15if.end5: ; preds = %entry 16 br i1 undef, label %loop_start.preheader, label %if.then.i31 17 18loop_start.preheader: ; preds = %if.end5 19 br i1 false, label %middle.block, label %vector.body 20 21vector.body: ; preds = %vector.body, %loop_start.preheader 22 %vec.phi61 = phi <4 x i32> [ %34, %vector.body ], [ zeroinitializer, %loop_start.preheader ] 23 %vec.phi62 = phi <4 x i32> [ %35, %vector.body ], [ zeroinitializer, %loop_start.preheader ] 24 %vec.phi63 = phi <4 x i32> [ %36, %vector.body ], [ zeroinitializer, %loop_start.preheader ] 25 %vec.phi65 = phi <4 x i32> [ %37, %vector.body ], [ zeroinitializer, %loop_start.preheader ] 26 %vec.phi67 = phi <4 x i32> [ %38, %vector.body ], [ zeroinitializer, %loop_start.preheader ] 27 %vec.phi68 = phi <4 x i32> [ %39, %vector.body ], [ zeroinitializer, %loop_start.preheader ] 28 %vec.phi69 = phi <4 x i32> [ %40, %vector.body ], [ zeroinitializer, %loop_start.preheader ] 29 %vec.phi70 = phi <4 x i32> [ %41, %vector.body ], [ zeroinitializer, %loop_start.preheader ] 30 %vec.phi71 = phi <4 x i32> [ %42, %vector.body ], [ zeroinitializer, %loop_start.preheader ] 31 %.sum = add i64 0, 4 32 %wide.load72 = load <4 x i32>, <4 x i32>* null, align 4 33 %.sum109 = add i64 0, 8 34 %0 = getelementptr i32, i32* %first, i64 %.sum109 35 %1 = bitcast i32* %0 to <4 x i32>* 36 %wide.load73 = load <4 x i32>, <4 x i32>* %1, align 4 37 %.sum110 = add i64 0, 12 38 %2 = getelementptr i32, i32* %first, i64 %.sum110 39 %3 = bitcast i32* %2 to <4 x i32>* 40 %wide.load74 = load <4 x i32>, <4 x i32>* %3, align 4 41 %.sum112 = add i64 0, 20 42 %4 = getelementptr i32, i32* %first, i64 %.sum112 43 %5 = bitcast i32* %4 to <4 x i32>* 44 %wide.load76 = load <4 x i32>, <4 x i32>* %5, align 4 45 %.sum114 = add i64 0, 28 46 %6 = getelementptr i32, i32* %first, i64 %.sum114 47 %7 = bitcast i32* %6 to <4 x i32>* 48 %wide.load78 = load <4 x i32>, <4 x i32>* %7, align 4 49 %.sum115 = add i64 0, 32 50 %8 = getelementptr i32, i32* %first, i64 %.sum115 51 %9 = bitcast i32* %8 to <4 x i32>* 52 %wide.load79 = load <4 x i32>, <4 x i32>* %9, align 4 53 %.sum116 = add i64 0, 36 54 %10 = getelementptr i32, i32* %first, i64 %.sum116 55 %11 = bitcast i32* %10 to <4 x i32>* 56 %wide.load80 = load <4 x i32>, <4 x i32>* %11, align 4 57 %.sum117 = add i64 0, 40 58 %12 = getelementptr i32, i32* %first, i64 %.sum117 59 %13 = bitcast i32* %12 to <4 x i32>* 60 %wide.load81 = load <4 x i32>, <4 x i32>* %13, align 4 61 %.sum118 = add i64 0, 44 62 %14 = getelementptr i32, i32* %first, i64 %.sum118 63 %15 = bitcast i32* %14 to <4 x i32>* 64 %wide.load82 = load <4 x i32>, <4 x i32>* %15, align 4 65 %16 = mul <4 x i32> %wide.load72, <i32 269850533, i32 269850533, i32 269850533, i32 269850533> 66 %17 = mul <4 x i32> %wide.load73, <i32 269850533, i32 269850533, i32 269850533, i32 269850533> 67 %18 = mul <4 x i32> %wide.load74, <i32 269850533, i32 269850533, i32 269850533, i32 269850533> 68 %19 = mul <4 x i32> %wide.load76, <i32 269850533, i32 269850533, i32 269850533, i32 269850533> 69 %20 = mul <4 x i32> %wide.load78, <i32 269850533, i32 269850533, i32 269850533, i32 269850533> 70 %21 = mul <4 x i32> %wide.load79, <i32 269850533, i32 269850533, i32 269850533, i32 269850533> 71 %22 = mul <4 x i32> %wide.load80, <i32 269850533, i32 269850533, i32 269850533, i32 269850533> 72 %23 = mul <4 x i32> %wide.load81, <i32 269850533, i32 269850533, i32 269850533, i32 269850533> 73 %24 = mul <4 x i32> %wide.load82, <i32 269850533, i32 269850533, i32 269850533, i32 269850533> 74 %25 = add <4 x i32> %16, <i32 -1138325064, i32 -1138325064, i32 -1138325064, i32 -1138325064> 75 %26 = add <4 x i32> %17, <i32 -1138325064, i32 -1138325064, i32 -1138325064, i32 -1138325064> 76 %27 = add <4 x i32> %18, <i32 -1138325064, i32 -1138325064, i32 -1138325064, i32 -1138325064> 77 %28 = add <4 x i32> %19, <i32 -1138325064, i32 -1138325064, i32 -1138325064, i32 -1138325064> 78 %29 = add <4 x i32> %20, <i32 -1138325064, i32 -1138325064, i32 -1138325064, i32 -1138325064> 79 %30 = add <4 x i32> %21, <i32 -1138325064, i32 -1138325064, i32 -1138325064, i32 -1138325064> 80 %31 = add <4 x i32> %22, <i32 -1138325064, i32 -1138325064, i32 -1138325064, i32 -1138325064> 81 %32 = add <4 x i32> %23, <i32 -1138325064, i32 -1138325064, i32 -1138325064, i32 -1138325064> 82 %33 = add <4 x i32> %24, <i32 -1138325064, i32 -1138325064, i32 -1138325064, i32 -1138325064> 83 %34 = add nsw <4 x i32> %25, %vec.phi61 84 %35 = add nsw <4 x i32> %26, %vec.phi62 85 %36 = add nsw <4 x i32> %27, %vec.phi63 86 %37 = add nsw <4 x i32> %28, %vec.phi65 87 %38 = add nsw <4 x i32> %29, %vec.phi67 88 %39 = add nsw <4 x i32> %30, %vec.phi68 89 %40 = add nsw <4 x i32> %31, %vec.phi69 90 %41 = add nsw <4 x i32> %32, %vec.phi70 91 %42 = add nsw <4 x i32> %33, %vec.phi71 92 br i1 false, label %middle.block, label %vector.body 93 94middle.block: ; preds = %vector.body, %loop_start.preheader 95 %rdx.vec.exit.phi85 = phi <4 x i32> [ zeroinitializer, %loop_start.preheader ], [ %34, %vector.body ] 96 %rdx.vec.exit.phi86 = phi <4 x i32> [ zeroinitializer, %loop_start.preheader ], [ %35, %vector.body ] 97 %rdx.vec.exit.phi87 = phi <4 x i32> [ zeroinitializer, %loop_start.preheader ], [ %36, %vector.body ] 98 %rdx.vec.exit.phi89 = phi <4 x i32> [ zeroinitializer, %loop_start.preheader ], [ %37, %vector.body ] 99 %rdx.vec.exit.phi91 = phi <4 x i32> [ zeroinitializer, %loop_start.preheader ], [ %38, %vector.body ] 100 %rdx.vec.exit.phi92 = phi <4 x i32> [ zeroinitializer, %loop_start.preheader ], [ %39, %vector.body ] 101 %rdx.vec.exit.phi93 = phi <4 x i32> [ zeroinitializer, %loop_start.preheader ], [ %40, %vector.body ] 102 %rdx.vec.exit.phi94 = phi <4 x i32> [ zeroinitializer, %loop_start.preheader ], [ %41, %vector.body ] 103 %rdx.vec.exit.phi95 = phi <4 x i32> [ zeroinitializer, %loop_start.preheader ], [ %42, %vector.body ] 104 br i1 false, label %if.then.i31, label %loop_start.prol 105 106loop_start.prol: ; preds = %loop_start.prol, %middle.block 107 br label %loop_start.prol 108 109if.then.i31: ; preds = %middle.block, %if.end5, %loop2_start 110 unreachable 111} 112 113attributes #0 = { nounwind } 114 115