; LLVM IR from ggml-org/ggml :: src (ggml-quants)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.block_q5_0 = type { i16, [4 x i8], [16 x i8] }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [65 x i8], align 1
@__PRETTY_FUNCTION__.quantize_row_q5_0_ref = external hidden unnamed_addr constant [81 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #2

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @ggml_compute_fp32_to_fp16(float noundef) #3

; Function Attrs: nounwind uwtable
define dso_local void @quantize_row_q5_0_ref(ptr noalias noundef %0, ptr noalias noundef %1, i64 noundef %2) #4 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca i32, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca i8, align 1
  %21 = alloca i8, align 1
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store i64 %2, ptr %6, align 8, !tbaa !9
  %22 = load i64, ptr %6, align 8, !tbaa !9
  %23 = srem i64 %22, 32
  %24 = icmp eq i64 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %3
  br label %27

26:                                               ; preds = %3
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 108, ptr noundef @__PRETTY_FUNCTION__.quantize_row_q5_0_ref) #6
  unreachable

27:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #7
  %28 = load i64, ptr %6, align 8, !tbaa !9
  %29 = sdiv i64 %28, 32
  %30 = trunc i64 %29 to i32
  store i32 %30, ptr %7, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %31

31:                                               ; preds = %179, %27
  %32 = load i32, ptr %8, align 4, !tbaa !11
  %33 = load i32, ptr %7, align 4, !tbaa !11
  %34 = icmp slt i32 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  store i32 2, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  br label %182

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store float 0.000000e+00, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store float 0.000000e+00, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %37

37:                                               ; preds = %59, %36
  %38 = load i32, ptr %12, align 4, !tbaa !11
  %39 = icmp slt i32 %38, 32
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 5, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %62

41:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #7
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = load i32, ptr %8, align 4, !tbaa !11
  %44 = mul nsw i32 %43, 32
  %45 = load i32, ptr %12, align 4, !tbaa !11
  %46 = add nsw i32 %44, %45
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds float, ptr %42, i64 %47
  %49 = load float, ptr %48, align 4, !tbaa !13
  store float %49, ptr %13, align 4, !tbaa !13
  %50 = load float, ptr %10, align 4, !tbaa !13
  %51 = load float, ptr %13, align 4, !tbaa !13
  %52 = call float @llvm.fabs.f32(float %51)
  %53 = fcmp olt float %50, %52
  br i1 %53, label %54, label %58

54:                                               ; preds = %41
  %55 = load float, ptr %13, align 4, !tbaa !13
  %56 = call float @llvm.fabs.f32(float %55)
  store float %56, ptr %10, align 4, !tbaa !13
  %57 = load float, ptr %13, align 4, !tbaa !13
  store float %57, ptr %11, align 4, !tbaa !13
  br label %58

58:                                               ; preds = %54, %41
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #7
  br label %59

59:                                               ; preds = %58
  %60 = load i32, ptr %12, align 4, !tbaa !11
  %61 = add nsw i32 %60, 1
  store i32 %61, ptr %12, align 4, !tbaa !11
  br label %37, !llvm.loop !15

62:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %63 = load float, ptr %11, align 4, !tbaa !13
  %64 = fdiv float %63, -1.600000e+01
  store float %64, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %65 = load float, ptr %14, align 4, !tbaa !13
  %66 = fcmp une float %65, 0.000000e+00
  br i1 %66, label %67, label %70

67:                                               ; preds = %62
  %68 = load float, ptr %14, align 4, !tbaa !13
  %69 = fdiv float 1.000000e+00, %68
  br label %71

70:                                               ; preds = %62
  br label %71

71:                                               ; preds = %70, %67
  %72 = phi float [ %69, %67 ], [ 0.000000e+00, %70 ]
  store float %72, ptr %15, align 4, !tbaa !13
  %73 = load float, ptr %14, align 4, !tbaa !13
  %74 = call zeroext i16 @ggml_compute_fp32_to_fp16(float noundef %73)
  %75 = load ptr, ptr %5, align 8, !tbaa !5
  %76 = load i32, ptr %8, align 4, !tbaa !11
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds %struct.block_q5_0, ptr %75, i64 %77
  %79 = getelementptr inbounds %struct.block_q5_0, ptr %78, i32 0, i32 0
  store i16 %74, ptr %79, align 2, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #7
  store i32 0, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #7
  store i32 0, ptr %17, align 4, !tbaa !11
  br label %80

80:                                               ; preds = %170, %71
  %81 = load i32, ptr %17, align 4, !tbaa !11
  %82 = icmp slt i32 %81, 16
  br i1 %82, label %84, label %83

83:                                               ; preds = %80
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #7
  br label %173

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = load i32, ptr %8, align 4, !tbaa !11
  %87 = mul nsw i32 %86, 32
  %88 = add nsw i32 %87, 0
  %89 = load i32, ptr %17, align 4, !tbaa !11
  %90 = add nsw i32 %88, %89
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds float, ptr %85, i64 %91
  %93 = load float, ptr %92, align 4, !tbaa !13
  %94 = load float, ptr %15, align 4, !tbaa !13
  %95 = fmul float %93, %94
  store float %95, ptr %18, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = load i32, ptr %8, align 4, !tbaa !11
  %98 = mul nsw i32 %97, 32
  %99 = add nsw i32 %98, 16
  %100 = load i32, ptr %17, align 4, !tbaa !11
  %101 = add nsw i32 %99, %100
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds float, ptr %96, i64 %102
  %104 = load float, ptr %103, align 4, !tbaa !13
  %105 = load float, ptr %15, align 4, !tbaa !13
  %106 = fmul float %104, %105
  store float %106, ptr %19, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #7
  %107 = load float, ptr %18, align 4, !tbaa !13
  %108 = fadd float %107, 1.650000e+01
  %109 = fptosi float %108 to i8
  %110 = sext i8 %109 to i32
  %111 = icmp slt i32 31, %110
  br i1 %111, label %112, label %113

112:                                              ; preds = %84
  br label %118

113:                                              ; preds = %84
  %114 = load float, ptr %18, align 4, !tbaa !13
  %115 = fadd float %114, 1.650000e+01
  %116 = fptosi float %115 to i8
  %117 = sext i8 %116 to i32
  br label %118

118:                                              ; preds = %113, %112
  %119 = phi i32 [ 31, %112 ], [ %117, %113 ]
  %120 = trunc i32 %119 to i8
  store i8 %120, ptr %20, align 1, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 1, ptr %21) #7
  %121 = load float, ptr %19, align 4, !tbaa !13
  %122 = fadd float %121, 1.650000e+01
  %123 = fptosi float %122 to i8
  %124 = sext i8 %123 to i32
  %125 = icmp slt i32 31, %124
  br i1 %125, label %126, label %127

126:                                              ; preds = %118
  br label %132

127:                                              ; preds = %118
  %128 = load float, ptr %19, align 4, !tbaa !13
  %129 = fadd float %128, 1.650000e+01
  %130 = fptosi float %129 to i8
  %131 = sext i8 %130 to i32
  br label %132

132:                                              ; preds = %127, %126
  %133 = phi i32 [ 31, %126 ], [ %131, %127 ]
  %134 = trunc i32 %133 to i8
  store i8 %134, ptr %21, align 1, !tbaa !20
  %135 = load i8, ptr %20, align 1, !tbaa !20
  %136 = zext i8 %135 to i32
  %137 = and i32 %136, 15
  %138 = load i8, ptr %21, align 1, !tbaa !20
  %139 = zext i8 %138 to i32
  %140 = and i32 %139, 15
  %141 = shl i32 %140, 4
  %142 = or i32 %137, %141
  %143 = trunc i32 %142 to i8
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = load i32, ptr %8, align 4, !tbaa !11
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds %struct.block_q5_0, ptr %144, i64 %146
  %148 = getelementptr inbounds %struct.block_q5_0, ptr %147, i32 0, i32 2
  %149 = load i32, ptr %17, align 4, !tbaa !11
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [16 x i8], ptr %148, i64 0, i64 %150
  store i8 %143, ptr %151, align 1, !tbaa !20
  %152 = load i8, ptr %20, align 1, !tbaa !20
  %153 = zext i8 %152 to i32
  %154 = and i32 %153, 16
  %155 = lshr i32 %154, 4
  %156 = load i32, ptr %17, align 4, !tbaa !11
  %157 = add nsw i32 %156, 0
  %158 = shl i32 %155, %157
  %159 = load i32, ptr %16, align 4, !tbaa !11
  %160 = or i32 %159, %158
  store i32 %160, ptr %16, align 4, !tbaa !11
  %161 = load i8, ptr %21, align 1, !tbaa !20
  %162 = zext i8 %161 to i32
  %163 = and i32 %162, 16
  %164 = lshr i32 %163, 4
  %165 = load i32, ptr %17, align 4, !tbaa !11
  %166 = add nsw i32 %165, 16
  %167 = shl i32 %164, %166
  %168 = load i32, ptr %16, align 4, !tbaa !11
  %169 = or i32 %168, %167
  store i32 %169, ptr %16, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 1, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %170

170:                                              ; preds = %132
  %171 = load i32, ptr %17, align 4, !tbaa !11
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %17, align 4, !tbaa !11
  br label %80, !llvm.loop !21

173:                                              ; preds = %83
  %174 = load ptr, ptr %5, align 8, !tbaa !5
  %175 = load i32, ptr %8, align 4, !tbaa !11
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds %struct.block_q5_0, ptr %174, i64 %176
  %178 = getelementptr inbounds %struct.block_q5_0, ptr %177, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 2 %178, ptr align 4 %16, i64 4, i1 false)
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  br label %179

179:                                              ; preds = %173
  %180 = load i32, ptr %8, align 4, !tbaa !11
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %8, align 4, !tbaa !11
  br label %31, !llvm.loop !22

182:                                              ; preds = %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #7
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #5

attributes #0 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { noreturn nounwind }
attributes #7 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !19, i64 0}
!18 = !{!"", !19, i64 0, !7, i64 2, !7, i64 6}
!19 = !{!"short", !7, i64 0}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !16}
!22 = distinct !{!22, !16}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.block_q5_0 = type { i16, [4 x i8], [16 x i8] }

@.str = external hidden unnamed_addr constant [12 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [65 x i8], align 1
@__PRETTY_FUNCTION__.quantize_row_q5_0_ref = external hidden unnamed_addr constant [81 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i16 @ggml_compute_fp32_to_fp16(float noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local void @quantize_row_q5_0_ref(ptr noalias nocapture noundef readonly %0, ptr noalias nocapture noundef writeonly %1, i64 noundef %2) local_unnamed_addr #3 {
  %4 = and i64 %2, 31
  %5 = icmp eq i64 %4, 0
  br i1 %5, label %7, label %6

6:                                                ; preds = %3
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 108, ptr noundef nonnull @__PRETTY_FUNCTION__.quantize_row_q5_0_ref) #5
  unreachable

7:                                                ; preds = %3
  %8 = lshr exact i64 %2, 5
  %9 = trunc i64 %8 to i32
  %10 = icmp sgt i32 %9, 0
  br i1 %10, label %.preheader.preheader, label %._crit_edge

.preheader.preheader:                             ; preds = %7
  %wide.trip.count = and i64 %8, 2147483647
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %vector.ph
  %indvars.iv64 = phi i64 [ 0, %.preheader.preheader ], [ %indvars.iv.next65, %vector.ph ]
  %11 = shl nsw i64 %indvars.iv64, 5
  %invariant.gep = getelementptr inbounds float, ptr %0, i64 %11
  br label %117

._crit_edge:                                      ; preds = %vector.ph, %7
  ret void

vector.ph:                                        ; preds = %117
  %12 = fmul float %.148.1, -6.250000e-02
  %13 = tail call zeroext i16 @ggml_compute_fp32_to_fp16(float noundef %12)
  %14 = getelementptr inbounds %struct.block_q5_0, ptr %1, i64 %indvars.iv64
  store i16 %13, ptr %14, align 2, !tbaa !5
  %15 = fcmp une float %12, 0.000000e+00
  %16 = fdiv float 1.000000e+00, %12
  %17 = select i1 %15, float %16, float 0.000000e+00
  %broadcast.splatinsert = insertelement <4 x float> poison, float %17, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %18 = getelementptr inbounds i8, ptr %14, i64 6
  %19 = getelementptr inbounds float, ptr %0, i64 %11
  %20 = getelementptr inbounds i8, ptr %19, i64 16
  %wide.load = load <4 x float>, ptr %19, align 4, !tbaa !10
  %wide.load74 = load <4 x float>, ptr %20, align 4, !tbaa !10
  %21 = fmul <4 x float> %broadcast.splat, %wide.load
  %22 = fmul <4 x float> %broadcast.splat, %wide.load74
  %23 = or disjoint i64 %11, 16
  %24 = getelementptr inbounds float, ptr %0, i64 %23
  %25 = getelementptr inbounds i8, ptr %24, i64 16
  %wide.load75 = load <4 x float>, ptr %24, align 4, !tbaa !10
  %wide.load76 = load <4 x float>, ptr %25, align 4, !tbaa !10
  %26 = fmul <4 x float> %broadcast.splat, %wide.load75
  %27 = fmul <4 x float> %broadcast.splat, %wide.load76
  %28 = fadd <4 x float> %21, <float 1.650000e+01, float 1.650000e+01, float 1.650000e+01, float 1.650000e+01>
  %29 = fadd <4 x float> %22, <float 1.650000e+01, float 1.650000e+01, float 1.650000e+01, float 1.650000e+01>
  %30 = fptosi <4 x float> %28 to <4 x i8>
  %31 = fptosi <4 x float> %29 to <4 x i8>
  %32 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %30, <4 x i8> <i8 31, i8 31, i8 31, i8 31>)
  %33 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %31, <4 x i8> <i8 31, i8 31, i8 31, i8 31>)
  %34 = fadd <4 x float> %26, <float 1.650000e+01, float 1.650000e+01, float 1.650000e+01, float 1.650000e+01>
  %35 = fadd <4 x float> %27, <float 1.650000e+01, float 1.650000e+01, float 1.650000e+01, float 1.650000e+01>
  %36 = fptosi <4 x float> %34 to <4 x i8>
  %37 = fptosi <4 x float> %35 to <4 x i8>
  %38 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %36, <4 x i8> <i8 31, i8 31, i8 31, i8 31>)
  %39 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %37, <4 x i8> <i8 31, i8 31, i8 31, i8 31>)
  %40 = and <4 x i8> %32, <i8 15, i8 15, i8 15, i8 15>
  %41 = and <4 x i8> %33, <i8 15, i8 15, i8 15, i8 15>
  %42 = shl <4 x i8> %38, <i8 4, i8 4, i8 4, i8 4>
  %43 = shl <4 x i8> %39, <i8 4, i8 4, i8 4, i8 4>
  %44 = or disjoint <4 x i8> %42, %40
  %45 = or disjoint <4 x i8> %43, %41
  %46 = getelementptr inbounds i8, ptr %14, i64 10
  store <4 x i8> %44, ptr %18, align 1, !tbaa !12
  store <4 x i8> %45, ptr %46, align 1, !tbaa !12
  %47 = lshr <4 x i8> %32, <i8 4, i8 4, i8 4, i8 4>
  %48 = lshr <4 x i8> %33, <i8 4, i8 4, i8 4, i8 4>
  %49 = and <4 x i8> %47, <i8 1, i8 1, i8 1, i8 1>
  %50 = and <4 x i8> %48, <i8 1, i8 1, i8 1, i8 1>
  %51 = zext nneg <4 x i8> %49 to <4 x i32>
  %52 = zext nneg <4 x i8> %50 to <4 x i32>
  %53 = shl nuw nsw <4 x i32> %51, <i32 0, i32 1, i32 2, i32 3>
  %54 = shl nuw nsw <4 x i32> %52, <i32 4, i32 5, i32 6, i32 7>
  %55 = lshr <4 x i8> %38, <i8 4, i8 4, i8 4, i8 4>
  %56 = lshr <4 x i8> %39, <i8 4, i8 4, i8 4, i8 4>
  %57 = and <4 x i8> %55, <i8 1, i8 1, i8 1, i8 1>
  %58 = and <4 x i8> %56, <i8 1, i8 1, i8 1, i8 1>
  %59 = zext nneg <4 x i8> %57 to <4 x i32>
  %60 = zext nneg <4 x i8> %58 to <4 x i32>
  %61 = shl nuw nsw <4 x i32> %59, <i32 16, i32 17, i32 18, i32 19>
  %62 = shl nuw nsw <4 x i32> %60, <i32 20, i32 21, i32 22, i32 23>
  %63 = or disjoint <4 x i32> %61, %53
  %64 = or disjoint <4 x i32> %62, %54
  %65 = or disjoint i64 %11, 8
  %66 = getelementptr inbounds float, ptr %0, i64 %65
  %67 = getelementptr inbounds i8, ptr %66, i64 16
  %wide.load.1 = load <4 x float>, ptr %66, align 4, !tbaa !10
  %wide.load74.1 = load <4 x float>, ptr %67, align 4, !tbaa !10
  %68 = fmul <4 x float> %broadcast.splat, %wide.load.1
  %69 = fmul <4 x float> %broadcast.splat, %wide.load74.1
  %70 = or disjoint i64 %11, 24
  %71 = getelementptr inbounds float, ptr %0, i64 %70
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  %wide.load75.1 = load <4 x float>, ptr %71, align 4, !tbaa !10
  %wide.load76.1 = load <4 x float>, ptr %72, align 4, !tbaa !10
  %73 = fmul <4 x float> %broadcast.splat, %wide.load75.1
  %74 = fmul <4 x float> %broadcast.splat, %wide.load76.1
  %75 = fadd <4 x float> %68, <float 1.650000e+01, float 1.650000e+01, float 1.650000e+01, float 1.650000e+01>
  %76 = fadd <4 x float> %69, <float 1.650000e+01, float 1.650000e+01, float 1.650000e+01, float 1.650000e+01>
  %77 = fptosi <4 x float> %75 to <4 x i8>
  %78 = fptosi <4 x float> %76 to <4 x i8>
  %79 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %77, <4 x i8> <i8 31, i8 31, i8 31, i8 31>)
  %80 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %78, <4 x i8> <i8 31, i8 31, i8 31, i8 31>)
  %81 = fadd <4 x float> %73, <float 1.650000e+01, float 1.650000e+01, float 1.650000e+01, float 1.650000e+01>
  %82 = fadd <4 x float> %74, <float 1.650000e+01, float 1.650000e+01, float 1.650000e+01, float 1.650000e+01>
  %83 = fptosi <4 x float> %81 to <4 x i8>
  %84 = fptosi <4 x float> %82 to <4 x i8>
  %85 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %83, <4 x i8> <i8 31, i8 31, i8 31, i8 31>)
  %86 = tail call <4 x i8> @llvm.smin.v4i8(<4 x i8> %84, <4 x i8> <i8 31, i8 31, i8 31, i8 31>)
  %87 = and <4 x i8> %79, <i8 15, i8 15, i8 15, i8 15>
  %88 = and <4 x i8> %80, <i8 15, i8 15, i8 15, i8 15>
  %89 = shl <4 x i8> %85, <i8 4, i8 4, i8 4, i8 4>
  %90 = shl <4 x i8> %86, <i8 4, i8 4, i8 4, i8 4>
  %91 = or disjoint <4 x i8> %89, %87
  %92 = or disjoint <4 x i8> %90, %88
  %93 = getelementptr inbounds i8, ptr %14, i64 14
  %94 = getelementptr inbounds i8, ptr %14, i64 18
  store <4 x i8> %91, ptr %93, align 1, !tbaa !12
  store <4 x i8> %92, ptr %94, align 1, !tbaa !12
  %95 = lshr <4 x i8> %79, <i8 4, i8 4, i8 4, i8 4>
  %96 = lshr <4 x i8> %80, <i8 4, i8 4, i8 4, i8 4>
  %97 = and <4 x i8> %95, <i8 1, i8 1, i8 1, i8 1>
  %98 = and <4 x i8> %96, <i8 1, i8 1, i8 1, i8 1>
  %99 = zext nneg <4 x i8> %97 to <4 x i32>
  %100 = zext nneg <4 x i8> %98 to <4 x i32>
  %101 = shl nuw nsw <4 x i32> %99, <i32 8, i32 9, i32 10, i32 11>
  %102 = shl nuw nsw <4 x i32> %100, <i32 12, i32 13, i32 14, i32 15>
  %103 = lshr <4 x i8> %85, <i8 4, i8 4, i8 4, i8 4>
  %104 = lshr <4 x i8> %86, <i8 4, i8 4, i8 4, i8 4>
  %105 = and <4 x i8> %103, <i8 1, i8 1, i8 1, i8 1>
  %106 = and <4 x i8> %104, <i8 1, i8 1, i8 1, i8 1>
  %107 = zext nneg <4 x i8> %105 to <4 x i32>
  %108 = zext nneg <4 x i8> %106 to <4 x i32>
  %109 = shl nuw nsw <4 x i32> %107, <i32 24, i32 25, i32 26, i32 27>
  %110 = shl nuw <4 x i32> %108, <i32 28, i32 29, i32 30, i32 31>
  %111 = or disjoint <4 x i32> %109, %101
  %112 = or disjoint <4 x i32> %110, %102
  %113 = or disjoint <4 x i32> %111, %63
  %114 = or disjoint <4 x i32> %112, %64
  %bin.rdx = or disjoint <4 x i32> %114, %113
  %115 = tail call i32 @llvm.vector.reduce.or.v4i32(<4 x i32> %bin.rdx)
  %116 = getelementptr inbounds i8, ptr %14, i64 2
  store i32 %115, ptr %116, align 2
  %indvars.iv.next65 = add nuw nsw i64 %indvars.iv64, 1
  %exitcond67.not = icmp eq i64 %indvars.iv.next65, %wide.trip.count
  br i1 %exitcond67.not, label %._crit_edge, label %.preheader, !llvm.loop !13

117:                                              ; preds = %117, %.preheader
  %indvars.iv = phi i64 [ 0, %.preheader ], [ %indvars.iv.next.1, %117 ]
  %.04655 = phi float [ 0.000000e+00, %.preheader ], [ %.1.1, %117 ]
  %.04754 = phi float [ 0.000000e+00, %.preheader ], [ %.148.1, %117 ]
  %gep = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv
  %118 = load float, ptr %gep, align 4, !tbaa !10
  %119 = tail call float @llvm.fabs.f32(float %118)
  %120 = fcmp olt float %.04655, %119
  %.148 = select i1 %120, float %118, float %.04754
  %.1 = select i1 %120, float %119, float %.04655
  %indvars.iv.next = or disjoint i64 %indvars.iv, 1
  %gep.1 = getelementptr inbounds float, ptr %invariant.gep, i64 %indvars.iv.next
  %121 = load float, ptr %gep.1, align 4, !tbaa !10
  %122 = tail call float @llvm.fabs.f32(float %121)
  %123 = fcmp olt float %.1, %122
  %.148.1 = select i1 %123, float %121, float %.148
  %.1.1 = select i1 %123, float %122, float %.1
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %exitcond.not.1 = icmp eq i64 %indvars.iv.next.1, 32
  br i1 %exitcond.not.1, label %vector.ph, label %117, !llvm.loop !15
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i8> @llvm.smin.v4i8(<4 x i8>, <4 x i8>) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.or.v4i32(<4 x i32>) #4

attributes #0 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"", !7, i64 0, !8, i64 2, !8, i64 6}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !8, i64 0}
!12 = !{!8, !8, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalDCEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass