; LLVM IR from libxsmm/libxsmm :: src (generator_gemm_amx)

; 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.libxsmm_gemm_descriptor = type <{ i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8], i8, i64, i64, i8, i32, i32, i32, i16, i16, i8, i8, i8, i8, i16, i16, i16, i16, i16, i16, i32, i32, i32, i8 }>
%struct.libxsmm_micro_kernel_config = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [4 x i32], [4 x i32], [4 x i32], [4 x i32], [4 x i32], [4 x i32], i32, [2 x %struct.libxsmm_blocking_info_t], %struct.libxsmm_tile_config, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_blocking_info_t = type { i32, [4 x i32], i32, i32 }
%struct.libxsmm_tile_config = type { i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8, i16, i8 }

declare void @libxsmm_generator_gemm_getval_stack_var(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

declare void @libxsmm_x86_instruction_alu_reg(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #0

declare void @libxsmm_x86_instruction_alu_imm(ptr noundef, i32 noundef, i32 noundef, i64 noundef) #0

declare void @libxsmm_x86_instruction_alu_mem(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

declare void @libxsmm_x86_instruction_push_reg(ptr noundef, i32 noundef) #0

declare void @libxsmm_x86_instruction_pop_reg(ptr noundef, i32 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: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_convert_KxM_bf8_to_f16_vnni2(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_convert_KxM_bf8_to_f16_flat(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_cvt_bf8_to_f16(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef %16) #2 {
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  store ptr %0, ptr %18, align 8, !tbaa !5
  store ptr %1, ptr %19, align 8, !tbaa !5
  store ptr %2, ptr %20, align 8, !tbaa !5
  store ptr %3, ptr %21, align 8, !tbaa !5
  store i32 %4, ptr %22, align 4, !tbaa !9
  store i32 %5, ptr %23, align 4, !tbaa !9
  store i32 %6, ptr %24, align 4, !tbaa !9
  store i32 %7, ptr %25, align 4, !tbaa !9
  store i32 %8, ptr %26, align 4, !tbaa !9
  store i32 %9, ptr %27, align 4, !tbaa !9
  store i32 %10, ptr %28, align 4, !tbaa !9
  store i32 %11, ptr %29, align 4, !tbaa !9
  store i32 %12, ptr %30, align 4, !tbaa !9
  store i32 %13, ptr %31, align 4, !tbaa !9
  store i32 %14, ptr %32, align 4, !tbaa !9
  store i32 %15, ptr %33, align 4, !tbaa !9
  store i32 %16, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #3
  %40 = load ptr, ptr %21, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %40, i32 0, i32 6
  %42 = load i32, ptr %41, align 1, !tbaa !11
  %43 = and i32 %42, 262144
  %44 = icmp ugt i32 %43, 0
  %45 = zext i1 %44 to i64
  %46 = select i1 %44, i32 1, i32 0
  store i32 %46, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #3
  %47 = load ptr, ptr %21, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %47, i32 0, i32 6
  %49 = load i32, ptr %48, align 1, !tbaa !11
  %50 = and i32 %49, 131072
  %51 = icmp ugt i32 %50, 0
  %52 = zext i1 %51 to i64
  %53 = select i1 %51, i32 1, i32 0
  store i32 %53, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #3
  %54 = load ptr, ptr %21, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %54, i32 0, i32 6
  %56 = load i32, ptr %55, align 1, !tbaa !11
  %57 = and i32 %56, 65536
  %58 = icmp ugt i32 %57, 0
  %59 = zext i1 %58 to i64
  %60 = select i1 %58, i32 1, i32 0
  store i32 %60, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #3
  %61 = load i32, ptr %35, align 4, !tbaa !9
  %62 = icmp eq i32 %61, 1
  br i1 %62, label %69, label %63

63:                                               ; preds = %17
  %64 = load i32, ptr %36, align 4, !tbaa !9
  %65 = icmp eq i32 %64, 1
  br i1 %65, label %69, label %66

66:                                               ; preds = %63
  %67 = load i32, ptr %37, align 4, !tbaa !9
  %68 = icmp eq i32 %67, 1
  br label %69

69:                                               ; preds = %66, %63, %17
  %70 = phi i1 [ true, %63 ], [ true, %17 ], [ %68, %66 ]
  %71 = zext i1 %70 to i64
  %72 = select i1 %70, i32 1, i32 0
  store i32 %72, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #3
  store i32 15, ptr %39, align 4, !tbaa !9
  %73 = load ptr, ptr %18, align 8, !tbaa !5
  %74 = load i32, ptr %39, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_push_reg(ptr noundef %73, i32 noundef %74)
  %75 = load i32, ptr %38, align 4, !tbaa !9
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %77, label %84

77:                                               ; preds = %69
  %78 = load ptr, ptr %18, align 8, !tbaa !5
  %79 = load ptr, ptr %20, align 8, !tbaa !5
  %80 = load i32, ptr %25, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %78, ptr noundef %79, i32 noundef 20, i32 noundef %80)
  %81 = load ptr, ptr %18, align 8, !tbaa !5
  %82 = load ptr, ptr %19, align 8, !tbaa !5
  %83 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_generator_generic_loop_header_no_idx_inc(ptr noundef %81, ptr noundef %82, i32 noundef %83, i32 noundef 0)
  br label %84

84:                                               ; preds = %77, %69
  %85 = load i32, ptr %36, align 4, !tbaa !9
  %86 = icmp sgt i32 %85, 0
  br i1 %86, label %87, label %111

87:                                               ; preds = %84
  %88 = load ptr, ptr %18, align 8, !tbaa !5
  %89 = load ptr, ptr %20, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %89, i32 0, i32 20
  %91 = load i32, ptr %90, align 8, !tbaa !15
  %92 = load i32, ptr %22, align 4, !tbaa !9
  %93 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_reg(ptr noundef %88, i32 noundef %91, i32 noundef %92, i32 noundef %93)
  %94 = load ptr, ptr %18, align 8, !tbaa !5
  %95 = load ptr, ptr %20, align 8, !tbaa !5
  %96 = load i32, ptr %32, align 4, !tbaa !9
  %97 = load i32, ptr %23, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %94, ptr noundef %95, i32 noundef %96, i32 noundef %97)
  %98 = load ptr, ptr %18, align 8, !tbaa !5
  %99 = load ptr, ptr %20, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %99, i32 0, i32 20
  %101 = load i32, ptr %100, align 8, !tbaa !15
  %102 = load i32, ptr %23, align 4, !tbaa !9
  %103 = load i32, ptr %24, align 4, !tbaa !9
  %104 = load i32, ptr %23, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %98, i32 noundef %101, i32 noundef %102, i32 noundef %103, i32 noundef 8, i32 noundef 0, i32 noundef %104, i32 noundef 0)
  %105 = load ptr, ptr %18, align 8, !tbaa !5
  %106 = load ptr, ptr %20, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %106, i32 0, i32 16
  %108 = load i32, ptr %107, align 8, !tbaa !18
  %109 = load i32, ptr %23, align 4, !tbaa !9
  %110 = load i32, ptr %22, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_reg(ptr noundef %105, i32 noundef %108, i32 noundef %109, i32 noundef %110)
  br label %111

111:                                              ; preds = %87, %84
  %112 = load i32, ptr %37, align 4, !tbaa !9
  %113 = icmp sgt i32 %112, 0
  br i1 %113, label %114, label %128

114:                                              ; preds = %111
  %115 = load ptr, ptr %18, align 8, !tbaa !5
  %116 = load ptr, ptr %20, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %116, i32 0, i32 20
  %118 = load i32, ptr %117, align 8, !tbaa !15
  %119 = load i32, ptr %22, align 4, !tbaa !9
  %120 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_reg(ptr noundef %115, i32 noundef %118, i32 noundef %119, i32 noundef %120)
  %121 = load ptr, ptr %18, align 8, !tbaa !5
  %122 = load ptr, ptr %20, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %122, i32 0, i32 20
  %124 = load i32, ptr %123, align 8, !tbaa !15
  %125 = load i32, ptr %22, align 4, !tbaa !9
  %126 = load i32, ptr %24, align 4, !tbaa !9
  %127 = load i32, ptr %22, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %121, i32 noundef %124, i32 noundef %125, i32 noundef %126, i32 noundef 8, i32 noundef 0, i32 noundef %127, i32 noundef 0)
  br label %128

128:                                              ; preds = %114, %111
  %129 = load ptr, ptr %18, align 8, !tbaa !5
  %130 = load ptr, ptr %20, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %130, i32 0, i32 20
  %132 = load i32, ptr %131, align 8, !tbaa !15
  %133 = load i32, ptr %22, align 4, !tbaa !9
  %134 = load i32, ptr %39, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_reg(ptr noundef %129, i32 noundef %132, i32 noundef %133, i32 noundef %134)
  %135 = load i32, ptr %36, align 4, !tbaa !9
  %136 = icmp sgt i32 %135, 0
  br i1 %136, label %140, label %137

137:                                              ; preds = %128
  %138 = load i32, ptr %37, align 4, !tbaa !9
  %139 = icmp sgt i32 %138, 0
  br i1 %139, label %140, label %147

140:                                              ; preds = %137, %128
  %141 = load ptr, ptr %18, align 8, !tbaa !5
  %142 = load ptr, ptr %20, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %142, i32 0, i32 20
  %144 = load i32, ptr %143, align 8, !tbaa !15
  %145 = load i32, ptr %26, align 4, !tbaa !9
  %146 = load i32, ptr %22, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_reg(ptr noundef %141, i32 noundef %144, i32 noundef %145, i32 noundef %146)
  br label %147

147:                                              ; preds = %140, %137
  %148 = load ptr, ptr %18, align 8, !tbaa !5
  %149 = load ptr, ptr %20, align 8, !tbaa !5
  %150 = load i32, ptr %33, align 4, !tbaa !9
  %151 = load i32, ptr %23, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %148, ptr noundef %149, i32 noundef %150, i32 noundef %151)
  %152 = load i32, ptr %38, align 4, !tbaa !9
  %153 = icmp sgt i32 %152, 0
  br i1 %153, label %154, label %175

154:                                              ; preds = %147
  %155 = load ptr, ptr %18, align 8, !tbaa !5
  %156 = load ptr, ptr %20, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %156, i32 0, i32 20
  %158 = load i32, ptr %157, align 8, !tbaa !15
  %159 = load i32, ptr %24, align 4, !tbaa !9
  %160 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_reg(ptr noundef %155, i32 noundef %158, i32 noundef %159, i32 noundef %160)
  %161 = load ptr, ptr %18, align 8, !tbaa !5
  %162 = load i32, ptr %26, align 4, !tbaa !9
  %163 = load i32, ptr %27, align 4, !tbaa !9
  %164 = sext i32 %163 to i64
  %165 = mul nsw i64 2, %164
  %166 = load i32, ptr %28, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = mul nsw i64 %165, %167
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %161, i32 noundef 30003, i32 noundef %162, i64 noundef %168)
  %169 = load ptr, ptr %18, align 8, !tbaa !5
  %170 = load ptr, ptr %20, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %170, i32 0, i32 16
  %172 = load i32, ptr %171, align 8, !tbaa !18
  %173 = load i32, ptr %26, align 4, !tbaa !9
  %174 = load i32, ptr %23, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_reg(ptr noundef %169, i32 noundef %172, i32 noundef %173, i32 noundef %174)
  br label %175

175:                                              ; preds = %154, %147
  %176 = load i32, ptr %34, align 4, !tbaa !9
  %177 = icmp ugt i32 %176, 0
  br i1 %177, label %178, label %189

178:                                              ; preds = %175
  %179 = load ptr, ptr %18, align 8, !tbaa !5
  %180 = load ptr, ptr %19, align 8, !tbaa !5
  %181 = load ptr, ptr %20, align 8, !tbaa !5
  %182 = load ptr, ptr %21, align 8, !tbaa !5
  %183 = load i32, ptr %27, align 4, !tbaa !9
  %184 = load i32, ptr %28, align 4, !tbaa !9
  %185 = load i32, ptr %29, align 4, !tbaa !9
  %186 = load i32, ptr %27, align 4, !tbaa !9
  %187 = load i32, ptr %39, align 4, !tbaa !9
  %188 = load i32, ptr %23, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_convert_KxM_bf8_to_f16_vnni2(ptr noundef %179, ptr noundef %180, ptr noundef %181, ptr noundef %182, i32 noundef %183, i32 noundef %184, i32 noundef %185, i32 noundef %186, i32 noundef %187, i32 noundef %188)
  br label %200

189:                                              ; preds = %175
  %190 = load ptr, ptr %18, align 8, !tbaa !5
  %191 = load ptr, ptr %19, align 8, !tbaa !5
  %192 = load ptr, ptr %20, align 8, !tbaa !5
  %193 = load ptr, ptr %21, align 8, !tbaa !5
  %194 = load i32, ptr %27, align 4, !tbaa !9
  %195 = load i32, ptr %28, align 4, !tbaa !9
  %196 = load i32, ptr %29, align 4, !tbaa !9
  %197 = load i32, ptr %27, align 4, !tbaa !9
  %198 = load i32, ptr %39, align 4, !tbaa !9
  %199 = load i32, ptr %23, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_convert_KxM_bf8_to_f16_flat(ptr noundef %190, ptr noundef %191, ptr noundef %192, ptr noundef %193, i32 noundef %194, i32 noundef %195, i32 noundef %196, i32 noundef %197, i32 noundef %198, i32 noundef %199)
  br label %200

200:                                              ; preds = %189, %178
  %201 = load i32, ptr %38, align 4, !tbaa !9
  %202 = icmp sgt i32 %201, 0
  br i1 %202, label %203, label %216

203:                                              ; preds = %200
  %204 = load i32, ptr %35, align 4, !tbaa !9
  %205 = icmp sgt i32 %204, 0
  br i1 %205, label %206, label %211

206:                                              ; preds = %203
  %207 = load ptr, ptr %18, align 8, !tbaa !5
  %208 = load i32, ptr %22, align 4, !tbaa !9
  %209 = load i32, ptr %31, align 4, !tbaa !9
  %210 = sext i32 %209 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %207, i32 noundef 30000, i32 noundef %208, i64 noundef %210)
  br label %211

211:                                              ; preds = %206, %203
  %212 = load ptr, ptr %18, align 8, !tbaa !5
  %213 = load ptr, ptr %19, align 8, !tbaa !5
  %214 = load i32, ptr %24, align 4, !tbaa !9
  %215 = load i32, ptr %25, align 4, !tbaa !9
  call void @libxsmm_generator_generic_loop_footer_with_idx_inc_reg_bound(ptr noundef %212, ptr noundef %213, i32 noundef %214, i32 noundef 1, i32 noundef %215)
  br label %216

216:                                              ; preds = %211, %200
  %217 = load ptr, ptr %18, align 8, !tbaa !5
  %218 = load i32, ptr %39, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_pop_reg(ptr noundef %217, i32 noundef %218)
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  ret void
}

declare void @libxsmm_generator_generic_loop_header_no_idx_inc(ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

declare void @libxsmm_generator_generic_loop_footer_with_idx_inc_reg_bound(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #0

attributes #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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 }

!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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 24}
!12 = !{!"libxsmm_gemm_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 28, !7, i64 29, !7, i64 32, !13, i64 33, !13, i64 41, !7, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !14, i64 62, !14, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !14, i64 70, !14, i64 72, !14, i64 74, !14, i64 76, !14, i64 78, !14, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !7, i64 94}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!16, !10, i64 80}
!16 = !{!"libxsmm_micro_kernel_config", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !7, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !7, i64 364, !7, i64 380, !7, i64 396, !7, i64 412, !7, i64 428, !7, i64 444, !10, i64 460, !7, i64 464, !17, i64 520, !10, i64 556, !10, i64 560, !10, i64 564, !10, i64 568, !10, i64 572, !10, i64 576, !10, i64 580, !10, i64 584, !6, i64 592, !10, i64 600, !10, i64 604, !10, i64 608, !10, i64 612, !6, i64 616, !10, i64 624, !10, i64 628, !10, i64 632, !10, i64 636, !10, i64 640, !10, i64 644, !10, i64 648, !10, i64 652, !10, i64 656, !10, i64 660, !10, i64 664, !10, i64 668, !10, i64 672, !10, i64 676, !10, i64 680}
!17 = !{!"libxsmm_tile_config", !7, i64 0, !14, i64 2, !7, i64 4, !14, i64 6, !7, i64 8, !14, i64 10, !7, i64 12, !14, i64 14, !7, i64 16, !14, i64 18, !7, i64 20, !14, i64 22, !7, i64 24, !14, i64 26, !7, i64 28, !14, i64 30, !7, i64 32}
!18 = !{!16, !10, i64 64}


; 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"

declare void @libxsmm_generator_gemm_getval_stack_var(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_alu_reg(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_alu_imm(ptr noundef, i32 noundef, i32 noundef, i64 noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_alu_mem(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_push_reg(ptr noundef, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_pop_reg(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_convert_KxM_bf8_to_f16_vnni2(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_gemm_convert_KxM_bf8_to_f16_flat(ptr noundef, ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_cvt_bf8_to_f16(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef %13, i32 noundef %14, i32 noundef %15, i32 noundef %16) local_unnamed_addr #1 {
  %18 = getelementptr inbounds i8, ptr %3, i64 24
  %19 = load i32, ptr %18, align 1, !tbaa !5
  %20 = insertelement <4 x i32> poison, i32 %19, i64 0
  %21 = shufflevector <4 x i32> %20, <4 x i32> poison, <4 x i32> zeroinitializer
  %22 = and <4 x i32> %21, <i32 458752, i32 65536, i32 131072, i32 262144>
  %23 = icmp eq <4 x i32> %22, zeroinitializer
  tail call void @libxsmm_x86_instruction_push_reg(ptr noundef %0, i32 noundef 15) #2
  %24 = extractelement <4 x i1> %23, i64 0
  br i1 %24, label %26, label %25

25:                                               ; preds = %17
  tail call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef %2, i32 noundef 20, i32 noundef %7) #2
  tail call void @libxsmm_generator_generic_loop_header_no_idx_inc(ptr noundef %0, ptr noundef %1, i32 noundef %6, i32 noundef 0) #2
  br label %26

26:                                               ; preds = %25, %17
  %27 = extractelement <4 x i1> %23, i64 2
  br i1 %27, label %34, label %28

28:                                               ; preds = %26
  %29 = getelementptr inbounds i8, ptr %2, i64 80
  %30 = load i32, ptr %29, align 8, !tbaa !12
  tail call void @libxsmm_x86_instruction_alu_reg(ptr noundef %0, i32 noundef %30, i32 noundef %4, i32 noundef %8) #2
  tail call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef %2, i32 noundef %14, i32 noundef %5) #2
  %31 = load i32, ptr %29, align 8, !tbaa !12
  tail call void @libxsmm_x86_instruction_alu_mem(ptr noundef %0, i32 noundef %31, i32 noundef %5, i32 noundef %6, i32 noundef 8, i32 noundef 0, i32 noundef %5, i32 noundef 0) #2
  %32 = getelementptr inbounds i8, ptr %2, i64 64
  %33 = load i32, ptr %32, align 8, !tbaa !16
  tail call void @libxsmm_x86_instruction_alu_reg(ptr noundef %0, i32 noundef %33, i32 noundef %5, i32 noundef %4) #2
  br label %34

34:                                               ; preds = %28, %26
  %35 = extractelement <4 x i1> %23, i64 1
  br i1 %35, label %40, label %36

36:                                               ; preds = %34
  %37 = getelementptr inbounds i8, ptr %2, i64 80
  %38 = load i32, ptr %37, align 8, !tbaa !12
  tail call void @libxsmm_x86_instruction_alu_reg(ptr noundef %0, i32 noundef %38, i32 noundef %4, i32 noundef %8) #2
  %39 = load i32, ptr %37, align 8, !tbaa !12
  tail call void @libxsmm_x86_instruction_alu_mem(ptr noundef %0, i32 noundef %39, i32 noundef %4, i32 noundef %6, i32 noundef 8, i32 noundef 0, i32 noundef %4, i32 noundef 0) #2
  br label %40

40:                                               ; preds = %36, %34
  %41 = getelementptr inbounds i8, ptr %2, i64 80
  %42 = load i32, ptr %41, align 8, !tbaa !12
  tail call void @libxsmm_x86_instruction_alu_reg(ptr noundef %0, i32 noundef %42, i32 noundef %4, i32 noundef 15) #2
  %43 = and i32 %19, 196608
  %or.cond3.not = icmp eq i32 %43, 0
  br i1 %or.cond3.not, label %46, label %44

44:                                               ; preds = %40
  %45 = load i32, ptr %41, align 8, !tbaa !12
  tail call void @libxsmm_x86_instruction_alu_reg(ptr noundef %0, i32 noundef %45, i32 noundef %8, i32 noundef %4) #2
  br label %46

46:                                               ; preds = %40, %44
  tail call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef nonnull %2, i32 noundef %15, i32 noundef %5) #2
  br i1 %24, label %55, label %47

47:                                               ; preds = %46
  %48 = load i32, ptr %41, align 8, !tbaa !12
  tail call void @libxsmm_x86_instruction_alu_reg(ptr noundef %0, i32 noundef %48, i32 noundef %6, i32 noundef %8) #2
  %49 = sext i32 %9 to i64
  %50 = shl nsw i64 %49, 1
  %51 = sext i32 %10 to i64
  %52 = mul nsw i64 %50, %51
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30003, i32 noundef %8, i64 noundef %52) #2
  %53 = getelementptr inbounds i8, ptr %2, i64 64
  %54 = load i32, ptr %53, align 8, !tbaa !16
  tail call void @libxsmm_x86_instruction_alu_reg(ptr noundef %0, i32 noundef %54, i32 noundef %8, i32 noundef %5) #2
  br label %55

55:                                               ; preds = %47, %46
  %.not105 = icmp eq i32 %16, 0
  br i1 %.not105, label %57, label %56

56:                                               ; preds = %55
  tail call void @libxsmm_generator_gemm_convert_KxM_bf8_to_f16_vnni2(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %9, i32 noundef %10, i32 noundef %11, i32 noundef %9, i32 noundef 15, i32 noundef %5)
  br label %58

57:                                               ; preds = %55
  tail call void @libxsmm_generator_gemm_convert_KxM_bf8_to_f16_flat(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef %9, i32 noundef %10, i32 noundef %11, i32 noundef %9, i32 noundef 15, i32 noundef %5)
  br label %58

58:                                               ; preds = %57, %56
  br i1 %24, label %64, label %59

59:                                               ; preds = %58
  %60 = extractelement <4 x i1> %23, i64 3
  br i1 %60, label %63, label %61

61:                                               ; preds = %59
  %62 = sext i32 %13 to i64
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %4, i64 noundef %62) #2
  br label %63

63:                                               ; preds = %61, %59
  tail call void @libxsmm_generator_generic_loop_footer_with_idx_inc_reg_bound(ptr noundef %0, ptr noundef %1, i32 noundef %6, i32 noundef 1, i32 noundef %7) #2
  br label %64

64:                                               ; preds = %63, %58
  tail call void @libxsmm_x86_instruction_pop_reg(ptr noundef %0, i32 noundef 15) #2
  ret void
}

declare void @libxsmm_generator_generic_loop_header_no_idx_inc(ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_generator_generic_loop_footer_with_idx_inc_reg_bound(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

attributes #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 #1 = { 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 = { 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 24}
!6 = !{!"libxsmm_gemm_descriptor", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !8, i64 28, !8, i64 29, !8, i64 32, !10, i64 33, !10, i64 41, !8, i64 49, !7, i64 50, !7, i64 54, !7, i64 58, !11, i64 62, !11, i64 64, !8, i64 66, !8, i64 67, !8, i64 68, !8, i64 69, !11, i64 70, !11, i64 72, !11, i64 74, !11, i64 76, !11, i64 78, !11, i64 80, !7, i64 82, !7, i64 86, !7, i64 90, !8, i64 94}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long long", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!13, !7, i64 80}
!13 = !{!"libxsmm_micro_kernel_config", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !8, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !7, i64 172, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !7, i64 296, !7, i64 300, !7, i64 304, !7, i64 308, !7, i64 312, !7, i64 316, !7, i64 320, !7, i64 324, !7, i64 328, !7, i64 332, !7, i64 336, !7, i64 340, !7, i64 344, !7, i64 348, !7, i64 352, !7, i64 356, !7, i64 360, !8, i64 364, !8, i64 380, !8, i64 396, !8, i64 412, !8, i64 428, !8, i64 444, !7, i64 460, !8, i64 464, !14, i64 520, !7, i64 556, !7, i64 560, !7, i64 564, !7, i64 568, !7, i64 572, !7, i64 576, !7, i64 580, !7, i64 584, !15, i64 592, !7, i64 600, !7, i64 604, !7, i64 608, !7, i64 612, !15, i64 616, !7, i64 624, !7, i64 628, !7, i64 632, !7, i64 636, !7, i64 640, !7, i64 644, !7, i64 648, !7, i64 652, !7, i64 656, !7, i64 660, !7, i64 664, !7, i64 668, !7, i64 672, !7, i64 676, !7, i64 680}
!14 = !{!"libxsmm_tile_config", !8, i64 0, !11, i64 2, !8, i64 4, !11, i64 6, !8, i64 8, !11, i64 10, !8, i64 12, !11, i64 14, !8, i64 16, !11, i64 18, !8, i64 20, !11, i64 22, !8, i64 24, !11, i64 26, !8, i64 28, !11, i64 30, !8, i64 32}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!13, !7, i64 64}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass