; LLVM IR from ggml-org/ggml :: src/ggml-cpu (ggml-cpu-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_1 = type { %union.anon.2, [4 x i8], [16 x i8] }
%union.anon.2 = type { i32 }
%struct.block_q8_1 = type { %union.anon.0, [32 x i8] }
%union.anon.0 = type { i32 }
%struct.anon.3 = type { i16, i16 }
%struct.anon.1 = type { i16, i16 }

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@__PRETTY_FUNCTION__.ggml_vec_dot_q5_1_q8_1 = external hidden unnamed_addr constant [123 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

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

; 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) #4

; Function Attrs: nounwind uwtable
define dso_local void @ggml_vec_dot_q5_1_q8_1(i32 noundef %0, ptr noalias noundef %1, i64 noundef %2, ptr noalias noundef %3, i64 noundef %4, ptr noalias noundef %5, i64 noundef %6, i32 noundef %7) #5 {
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca ptr, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca float, align 4
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i8, align 1
  %28 = alloca i8, align 1
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  store i32 %0, ptr %9, align 4, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !9
  store i64 %2, ptr %11, align 8, !tbaa !11
  store ptr %3, ptr %12, align 8, !tbaa !9
  store i64 %4, ptr %13, align 8, !tbaa !11
  store ptr %5, ptr %14, align 8, !tbaa !9
  store i64 %6, ptr %15, align 8, !tbaa !11
  store i32 %7, ptr %16, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  store i32 32, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %32 = load i32, ptr %9, align 4, !tbaa !5
  %33 = sdiv i32 %32, 32
  store i32 %33, ptr %18, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  store i32 0, ptr %19, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  store float 0.000000e+00, ptr %20, align 4, !tbaa !13
  %34 = load i32, ptr %9, align 4, !tbaa !5
  %35 = srem i32 %34, 32
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %38

37:                                               ; preds = %8
  br label %39

38:                                               ; preds = %8
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.1, i32 noundef 3260, ptr noundef @__PRETTY_FUNCTION__.ggml_vec_dot_q5_1_q8_1) #7
  unreachable

39:                                               ; preds = %37
  %40 = load i32, ptr %16, align 4, !tbaa !5
  %41 = icmp eq i32 %40, 1
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  br label %44

43:                                               ; preds = %39
  call void @__assert_fail(ptr noundef @.str.5, ptr noundef @.str.1, i32 noundef 3262, ptr noundef @__PRETTY_FUNCTION__.ggml_vec_dot_q5_1_q8_1) #7
  unreachable

44:                                               ; preds = %42
  %45 = load i32, ptr %16, align 4, !tbaa !5
  %46 = load i64, ptr %13, align 8, !tbaa !11
  %47 = load i64, ptr %15, align 8, !tbaa !11
  %48 = load i64, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %49 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %49, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %50 = load ptr, ptr %14, align 8, !tbaa !9
  store ptr %50, ptr %22, align 8, !tbaa !9
  br label %51

51:                                               ; preds = %183, %44
  %52 = load i32, ptr %19, align 4, !tbaa !5
  %53 = load i32, ptr %18, align 4, !tbaa !5
  %54 = icmp slt i32 %52, %53
  br i1 %54, label %55, label %186

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %56 = load ptr, ptr %21, align 8, !tbaa !9
  %57 = load i32, ptr %19, align 4, !tbaa !5
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds %struct.block_q5_1, ptr %56, i64 %58
  %60 = getelementptr inbounds %struct.block_q5_1, ptr %59, i32 0, i32 1
  %61 = getelementptr inbounds [4 x i8], ptr %60, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %61, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 0, ptr %24, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  store i32 0, ptr %26, align 4, !tbaa !5
  br label %62

62:                                               ; preds = %137, %55
  %63 = load i32, ptr %26, align 4, !tbaa !5
  %64 = icmp slt i32 %63, 16
  br i1 %64, label %66, label %65

65:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  br label %140

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #6
  %67 = load i32, ptr %23, align 4, !tbaa !5
  %68 = load i32, ptr %26, align 4, !tbaa !5
  %69 = add nsw i32 %68, 0
  %70 = lshr i32 %67, %69
  %71 = shl i32 %70, 4
  %72 = and i32 %71, 16
  %73 = trunc i32 %72 to i8
  store i8 %73, ptr %27, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 1, ptr %28) #6
  %74 = load i32, ptr %23, align 4, !tbaa !5
  %75 = load i32, ptr %26, align 4, !tbaa !5
  %76 = add nsw i32 %75, 12
  %77 = lshr i32 %74, %76
  %78 = and i32 %77, 16
  %79 = trunc i32 %78 to i8
  store i8 %79, ptr %28, align 1, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %80 = load ptr, ptr %21, align 8, !tbaa !9
  %81 = load i32, ptr %19, align 4, !tbaa !5
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds %struct.block_q5_1, ptr %80, i64 %82
  %84 = getelementptr inbounds %struct.block_q5_1, ptr %83, i32 0, i32 2
  %85 = load i32, ptr %26, align 4, !tbaa !5
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds [16 x i8], ptr %84, i64 0, i64 %86
  %88 = load i8, ptr %87, align 1, !tbaa !15
  %89 = zext i8 %88 to i32
  %90 = and i32 %89, 15
  %91 = load i8, ptr %27, align 1, !tbaa !15
  %92 = zext i8 %91 to i32
  %93 = or i32 %90, %92
  store i32 %93, ptr %29, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %94 = load ptr, ptr %21, align 8, !tbaa !9
  %95 = load i32, ptr %19, align 4, !tbaa !5
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds %struct.block_q5_1, ptr %94, i64 %96
  %98 = getelementptr inbounds %struct.block_q5_1, ptr %97, i32 0, i32 2
  %99 = load i32, ptr %26, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds [16 x i8], ptr %98, i64 0, i64 %100
  %102 = load i8, ptr %101, align 1, !tbaa !15
  %103 = zext i8 %102 to i32
  %104 = ashr i32 %103, 4
  %105 = load i8, ptr %28, align 1, !tbaa !15
  %106 = zext i8 %105 to i32
  %107 = or i32 %104, %106
  store i32 %107, ptr %30, align 4, !tbaa !5
  %108 = load i32, ptr %29, align 4, !tbaa !5
  %109 = load ptr, ptr %22, align 8, !tbaa !9
  %110 = load i32, ptr %19, align 4, !tbaa !5
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds %struct.block_q8_1, ptr %109, i64 %111
  %113 = getelementptr inbounds %struct.block_q8_1, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %26, align 4, !tbaa !5
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [32 x i8], ptr %113, i64 0, i64 %115
  %117 = load i8, ptr %116, align 1, !tbaa !15
  %118 = sext i8 %117 to i32
  %119 = mul nsw i32 %108, %118
  %120 = load i32, ptr %24, align 4, !tbaa !5
  %121 = add nsw i32 %120, %119
  store i32 %121, ptr %24, align 4, !tbaa !5
  %122 = load i32, ptr %30, align 4, !tbaa !5
  %123 = load ptr, ptr %22, align 8, !tbaa !9
  %124 = load i32, ptr %19, align 4, !tbaa !5
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds %struct.block_q8_1, ptr %123, i64 %125
  %127 = getelementptr inbounds %struct.block_q8_1, ptr %126, i32 0, i32 1
  %128 = load i32, ptr %26, align 4, !tbaa !5
  %129 = add nsw i32 %128, 16
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds [32 x i8], ptr %127, i64 0, i64 %130
  %132 = load i8, ptr %131, align 1, !tbaa !15
  %133 = sext i8 %132 to i32
  %134 = mul nsw i32 %122, %133
  %135 = load i32, ptr %25, align 4, !tbaa !5
  %136 = add nsw i32 %135, %134
  store i32 %136, ptr %25, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #6
  br label %137

137:                                              ; preds = %66
  %138 = load i32, ptr %26, align 4, !tbaa !5
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %26, align 4, !tbaa !5
  br label %62, !llvm.loop !16

140:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %141 = load i32, ptr %24, align 4, !tbaa !5
  %142 = load i32, ptr %25, align 4, !tbaa !5
  %143 = add nsw i32 %141, %142
  store i32 %143, ptr %31, align 4, !tbaa !5
  %144 = load ptr, ptr %21, align 8, !tbaa !9
  %145 = load i32, ptr %19, align 4, !tbaa !5
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds %struct.block_q5_1, ptr %144, i64 %146
  %148 = getelementptr inbounds %struct.block_q5_1, ptr %147, i32 0, i32 0
  %149 = getelementptr inbounds %struct.anon.3, ptr %148, i32 0, i32 0
  %150 = load i16, ptr %149, align 4, !tbaa !15
  %151 = call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %150)
  %152 = load ptr, ptr %22, align 8, !tbaa !9
  %153 = load i32, ptr %19, align 4, !tbaa !5
  %154 = sext i32 %153 to i64
  %155 = getelementptr inbounds %struct.block_q8_1, ptr %152, i64 %154
  %156 = getelementptr inbounds %struct.block_q8_1, ptr %155, i32 0, i32 0
  %157 = getelementptr inbounds %struct.anon.1, ptr %156, i32 0, i32 0
  %158 = load i16, ptr %157, align 4, !tbaa !15
  %159 = call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %158)
  %160 = fmul float %151, %159
  %161 = load i32, ptr %31, align 4, !tbaa !5
  %162 = sitofp i32 %161 to float
  %163 = load ptr, ptr %21, align 8, !tbaa !9
  %164 = load i32, ptr %19, align 4, !tbaa !5
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds %struct.block_q5_1, ptr %163, i64 %165
  %167 = getelementptr inbounds %struct.block_q5_1, ptr %166, i32 0, i32 0
  %168 = getelementptr inbounds %struct.anon.3, ptr %167, i32 0, i32 1
  %169 = load i16, ptr %168, align 2, !tbaa !15
  %170 = call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %169)
  %171 = load ptr, ptr %22, align 8, !tbaa !9
  %172 = load i32, ptr %19, align 4, !tbaa !5
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds %struct.block_q8_1, ptr %171, i64 %173
  %175 = getelementptr inbounds %struct.block_q8_1, ptr %174, i32 0, i32 0
  %176 = getelementptr inbounds %struct.anon.1, ptr %175, i32 0, i32 1
  %177 = load i16, ptr %176, align 2, !tbaa !15
  %178 = call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %177)
  %179 = fmul float %170, %178
  %180 = call float @llvm.fmuladd.f32(float %160, float %162, float %179)
  %181 = load float, ptr %20, align 4, !tbaa !13
  %182 = fadd float %181, %180
  store float %182, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %183

183:                                              ; preds = %140
  %184 = load i32, ptr %19, align 4, !tbaa !5
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %19, align 4, !tbaa !5
  br label %51, !llvm.loop !18

186:                                              ; preds = %51
  %187 = load float, ptr %20, align 4, !tbaa !13
  %188 = load ptr, ptr %10, align 8, !tbaa !9
  store float %187, ptr %188, align 4, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  ret void
}

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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #5 = { 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 #6 = { nounwind }
attributes #7 = { 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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !7, i64 0}
!15 = !{!7, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}


; 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_1 = type { %union.anon.2, [4 x i8], [16 x i8] }
%union.anon.2 = type { i32 }
%struct.block_q8_1 = type { %union.anon.0, [32 x i8] }
%union.anon.0 = type { i32 }

@.str.1 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [9 x i8], align 1
@__PRETTY_FUNCTION__.ggml_vec_dot_q5_1_q8_1 = external hidden unnamed_addr constant [123 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: inlinehint nounwind uwtable
declare hidden float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext) local_unnamed_addr #1

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

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

12:                                               ; preds = %8
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.1, i32 noundef 3260, ptr noundef nonnull @__PRETTY_FUNCTION__.ggml_vec_dot_q5_1_q8_1) #5
  unreachable

13:                                               ; preds = %8
  %14 = icmp eq i32 %7, 1
  br i1 %14, label %.preheader, label %16

.preheader:                                       ; preds = %13
  %15 = icmp sgt i32 %0, 31
  br i1 %15, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %.preheader
  %wide.trip.count = zext nneg i32 %9 to i64
  br label %.lr.ph

16:                                               ; preds = %13
  tail call void @__assert_fail(ptr noundef nonnull @.str.5, ptr noundef nonnull @.str.1, i32 noundef 3262, ptr noundef nonnull @__PRETTY_FUNCTION__.ggml_vec_dot_q5_1_q8_1) #5
  unreachable

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv63 = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next64, %.lr.ph ]
  %.05158 = phi float [ 0.000000e+00, %.lr.ph.preheader ], [ %109, %.lr.ph ]
  %17 = getelementptr inbounds %struct.block_q5_1, ptr %3, i64 %indvars.iv63
  %18 = getelementptr inbounds i8, ptr %17, i64 4
  %.0.copyload = load i32, ptr %18, align 4
  %broadcast.splatinsert = insertelement <4 x i32> poison, i32 %.0.copyload, i64 0
  %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %19 = getelementptr inbounds i8, ptr %17, i64 8
  %20 = lshr <4 x i32> %broadcast.splat, <i32 0, i32 1, i32 2, i32 3>
  %21 = lshr <4 x i32> %broadcast.splat, <i32 4, i32 5, i32 6, i32 7>
  %22 = shl <4 x i32> %20, <i32 4, i32 4, i32 4, i32 4>
  %23 = shl nuw <4 x i32> %21, <i32 4, i32 4, i32 4, i32 4>
  %24 = and <4 x i32> %22, <i32 16, i32 16, i32 16, i32 16>
  %25 = and <4 x i32> %23, <i32 16, i32 16, i32 16, i32 16>
  %26 = lshr <4 x i32> %broadcast.splat, <i32 12, i32 13, i32 14, i32 15>
  %27 = lshr <4 x i32> %broadcast.splat, <i32 16, i32 17, i32 18, i32 19>
  %28 = and <4 x i32> %26, <i32 16, i32 16, i32 16, i32 16>
  %29 = and <4 x i32> %27, <i32 16, i32 16, i32 16, i32 16>
  %30 = getelementptr inbounds i8, ptr %17, i64 12
  %wide.load = load <4 x i8>, ptr %19, align 1, !tbaa !5
  %wide.load79 = load <4 x i8>, ptr %30, align 1, !tbaa !5
  %31 = zext <4 x i8> %wide.load to <4 x i32>
  %32 = zext <4 x i8> %wide.load79 to <4 x i32>
  %33 = and <4 x i32> %31, <i32 15, i32 15, i32 15, i32 15>
  %34 = and <4 x i32> %32, <i32 15, i32 15, i32 15, i32 15>
  %35 = or disjoint <4 x i32> %33, %24
  %36 = or disjoint <4 x i32> %34, %25
  %37 = lshr <4 x i32> %31, <i32 4, i32 4, i32 4, i32 4>
  %38 = lshr <4 x i32> %32, <i32 4, i32 4, i32 4, i32 4>
  %39 = or disjoint <4 x i32> %37, %28
  %40 = or disjoint <4 x i32> %38, %29
  %41 = getelementptr inbounds %struct.block_q8_1, ptr %5, i64 %indvars.iv63, i32 1, i64 0
  %42 = getelementptr inbounds %struct.block_q8_1, ptr %5, i64 %indvars.iv63, i32 1, i64 4
  %wide.load80 = load <4 x i8>, ptr %41, align 1, !tbaa !5
  %wide.load81 = load <4 x i8>, ptr %42, align 1, !tbaa !5
  %43 = sext <4 x i8> %wide.load80 to <4 x i32>
  %44 = sext <4 x i8> %wide.load81 to <4 x i32>
  %45 = mul nsw <4 x i32> %35, %43
  %46 = mul nsw <4 x i32> %36, %44
  %47 = getelementptr inbounds %struct.block_q8_1, ptr %5, i64 %indvars.iv63, i32 1, i64 16
  %48 = getelementptr inbounds %struct.block_q8_1, ptr %5, i64 %indvars.iv63, i32 1, i64 20
  %wide.load82 = load <4 x i8>, ptr %47, align 1, !tbaa !5
  %wide.load83 = load <4 x i8>, ptr %48, align 1, !tbaa !5
  %49 = sext <4 x i8> %wide.load82 to <4 x i32>
  %50 = sext <4 x i8> %wide.load83 to <4 x i32>
  %51 = mul nsw <4 x i32> %39, %49
  %52 = mul nsw <4 x i32> %40, %50
  %53 = lshr <4 x i32> %broadcast.splat, <i32 8, i32 9, i32 10, i32 11>
  %54 = lshr <4 x i32> %broadcast.splat, <i32 12, i32 13, i32 14, i32 15>
  %55 = shl nuw nsw <4 x i32> %53, <i32 4, i32 4, i32 4, i32 4>
  %56 = shl nuw nsw <4 x i32> %54, <i32 4, i32 4, i32 4, i32 4>
  %57 = and <4 x i32> %55, <i32 16, i32 16, i32 16, i32 16>
  %58 = and <4 x i32> %56, <i32 16, i32 16, i32 16, i32 16>
  %59 = lshr <4 x i32> %broadcast.splat, <i32 20, i32 21, i32 22, i32 23>
  %60 = lshr <4 x i32> %broadcast.splat, <i32 24, i32 25, i32 26, i32 27>
  %61 = and <4 x i32> %59, <i32 16, i32 16, i32 16, i32 16>
  %62 = and <4 x i32> %60, <i32 16, i32 16, i32 16, i32 16>
  %63 = getelementptr inbounds i8, ptr %17, i64 16
  %64 = getelementptr inbounds i8, ptr %17, i64 20
  %wide.load.1 = load <4 x i8>, ptr %63, align 1, !tbaa !5
  %wide.load79.1 = load <4 x i8>, ptr %64, align 1, !tbaa !5
  %65 = zext <4 x i8> %wide.load.1 to <4 x i32>
  %66 = zext <4 x i8> %wide.load79.1 to <4 x i32>
  %67 = and <4 x i32> %65, <i32 15, i32 15, i32 15, i32 15>
  %68 = and <4 x i32> %66, <i32 15, i32 15, i32 15, i32 15>
  %69 = or disjoint <4 x i32> %67, %57
  %70 = or disjoint <4 x i32> %68, %58
  %71 = lshr <4 x i32> %65, <i32 4, i32 4, i32 4, i32 4>
  %72 = lshr <4 x i32> %66, <i32 4, i32 4, i32 4, i32 4>
  %73 = or disjoint <4 x i32> %71, %61
  %74 = or disjoint <4 x i32> %72, %62
  %75 = getelementptr inbounds %struct.block_q8_1, ptr %5, i64 %indvars.iv63, i32 1, i64 8
  %76 = getelementptr inbounds %struct.block_q8_1, ptr %5, i64 %indvars.iv63, i32 1, i64 12
  %wide.load80.1 = load <4 x i8>, ptr %75, align 1, !tbaa !5
  %wide.load81.1 = load <4 x i8>, ptr %76, align 1, !tbaa !5
  %77 = sext <4 x i8> %wide.load80.1 to <4 x i32>
  %78 = sext <4 x i8> %wide.load81.1 to <4 x i32>
  %79 = mul nsw <4 x i32> %69, %77
  %80 = mul nsw <4 x i32> %70, %78
  %81 = add nsw <4 x i32> %79, %45
  %82 = add nsw <4 x i32> %80, %46
  %83 = getelementptr inbounds %struct.block_q8_1, ptr %5, i64 %indvars.iv63, i32 1, i64 24
  %84 = getelementptr inbounds %struct.block_q8_1, ptr %5, i64 %indvars.iv63, i32 1, i64 28
  %wide.load82.1 = load <4 x i8>, ptr %83, align 1, !tbaa !5
  %wide.load83.1 = load <4 x i8>, ptr %84, align 1, !tbaa !5
  %85 = sext <4 x i8> %wide.load82.1 to <4 x i32>
  %86 = sext <4 x i8> %wide.load83.1 to <4 x i32>
  %87 = mul nsw <4 x i32> %73, %85
  %88 = mul nsw <4 x i32> %74, %86
  %89 = add nsw <4 x i32> %87, %51
  %90 = add nsw <4 x i32> %88, %52
  %bin.rdx = add nsw <4 x i32> %82, %81
  %91 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx)
  %bin.rdx84 = add nsw <4 x i32> %90, %89
  %92 = tail call i32 @llvm.vector.reduce.add.v4i32(<4 x i32> %bin.rdx84)
  %93 = add nsw i32 %91, %92
  %94 = load i16, ptr %17, align 4, !tbaa !5
  %95 = tail call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %94)
  %96 = getelementptr inbounds %struct.block_q8_1, ptr %5, i64 %indvars.iv63
  %97 = load i16, ptr %96, align 4, !tbaa !5
  %98 = tail call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %97)
  %99 = fmul float %95, %98
  %100 = sitofp i32 %93 to float
  %101 = getelementptr inbounds i8, ptr %17, i64 2
  %102 = load i16, ptr %101, align 2, !tbaa !5
  %103 = tail call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %102)
  %104 = getelementptr inbounds i8, ptr %96, i64 2
  %105 = load i16, ptr %104, align 2, !tbaa !5
  %106 = tail call float @ggml_lookup_fp16_to_fp32(i16 noundef zeroext %105)
  %107 = fmul float %103, %106
  %108 = tail call float @llvm.fmuladd.f32(float %99, float %100, float %107)
  %109 = fadd float %.05158, %108
  %indvars.iv.next64 = add nuw nsw i64 %indvars.iv63, 1
  %exitcond66.not = icmp eq i64 %indvars.iv.next64, %wide.trip.count
  br i1 %exitcond66.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

._crit_edge:                                      ; preds = %.lr.ph, %.preheader
  %.051.lcssa = phi float [ 0.000000e+00, %.preheader ], [ %109, %.lr.ph ]
  store float %.051.lcssa, ptr %1, align 4, !tbaa !10
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.add.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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !6, i64 0}
!6 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}
!10 = !{!11, !11, i64 0}
!11 = !{!"float", !6, i64 0}


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