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

; 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_meltw_descriptor = type <{ i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i8 }>
%struct.libxsmm_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_mateltwise_kernel_config_struct = type { 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, 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, i8 }

@.str = external hidden unnamed_addr constant [93 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@__func__.libxsmm_generator_transform_vnni2_to_vnni2t_16bit_avx512_microkernel = external hidden unnamed_addr constant [69 x i8], align 1

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

declare void @libxsmm_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

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

declare void @libxsmm_x86_instruction_vec_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

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

declare void @libxsmm_x86_instruction_mask_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #1

declare void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef, ptr noundef) #1

declare void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_vnni2_to_vnni2t_16bit_avx512_microkernel(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 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, ptr noundef %15, ptr noundef %16) #2 {
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %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 ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca i64, align 8
  store ptr %0, ptr %18, align 8, !tbaa !5
  store ptr %1, ptr %19, align 8, !tbaa !5
  store i32 %2, ptr %20, align 4, !tbaa !9
  store i32 %3, ptr %21, align 4, !tbaa !9
  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 ptr %15, ptr %33, align 8, !tbaa !5
  store ptr %16, ptr %34, align 8, !tbaa !5
  %36 = load ptr, ptr %34, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %36, i32 0, i32 0
  %38 = load i32, ptr %37, align 1, !tbaa !11
  %39 = urem i32 %38, 2
  %40 = icmp eq i32 %39, 0
  br i1 %40, label %41, label %92

41:                                               ; preds = %17
  %42 = load ptr, ptr %34, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %42, i32 0, i32 1
  %44 = load i32, ptr %43, align 1, !tbaa !14
  %45 = urem i32 %44, 2
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %47, label %92

47:                                               ; preds = %41
  %48 = load ptr, ptr %18, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %48, i32 0, i32 6
  %50 = load i32, ptr %49, align 4, !tbaa !15
  %51 = icmp uge i32 %50, 1104
  br i1 %51, label %52, label %75

52:                                               ; preds = %47
  %53 = load ptr, ptr %18, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %53, i32 0, i32 6
  %55 = load i32, ptr %54, align 4, !tbaa !15
  %56 = icmp ult i32 %55, 1999
  br i1 %56, label %57, label %75

57:                                               ; preds = %52
  %58 = load ptr, ptr %18, align 8, !tbaa !5
  %59 = load ptr, ptr %19, align 8, !tbaa !5
  %60 = load i32, ptr %20, align 4, !tbaa !9
  %61 = load i32, ptr %21, align 4, !tbaa !9
  %62 = load i32, ptr %22, align 4, !tbaa !9
  %63 = load i32, ptr %23, align 4, !tbaa !9
  %64 = load i32, ptr %24, align 4, !tbaa !9
  %65 = load i32, ptr %25, align 4, !tbaa !9
  %66 = load i32, ptr %26, align 4, !tbaa !9
  %67 = load i32, ptr %27, align 4, !tbaa !9
  %68 = load i32, ptr %28, align 4, !tbaa !9
  %69 = load i32, ptr %29, align 4, !tbaa !9
  %70 = load i32, ptr %30, align 4, !tbaa !9
  %71 = load i32, ptr %31, align 4, !tbaa !9
  %72 = load i32, ptr %32, align 4, !tbaa !9
  %73 = load ptr, ptr %33, align 8, !tbaa !5
  %74 = load ptr, ptr %34, align 8, !tbaa !5
  call void @libxsmm_generator_transform_vnni2_to_vnni2t_16bit_avx512_spr_microkernel(ptr noundef %58, ptr noundef %59, i32 noundef %60, i32 noundef %61, i32 noundef %62, i32 noundef %63, i32 noundef %64, i32 noundef %65, i32 noundef %66, i32 noundef %67, i32 noundef %68, i32 noundef %69, i32 noundef %70, i32 noundef %71, i32 noundef %72, ptr noundef %73, ptr noundef %74)
  br label %91

75:                                               ; preds = %52, %47
  %76 = load ptr, ptr %18, align 8, !tbaa !5
  %77 = load ptr, ptr %19, align 8, !tbaa !5
  %78 = load i32, ptr %20, align 4, !tbaa !9
  %79 = load i32, ptr %21, align 4, !tbaa !9
  %80 = load i32, ptr %22, align 4, !tbaa !9
  %81 = load i32, ptr %23, align 4, !tbaa !9
  %82 = load i32, ptr %24, align 4, !tbaa !9
  %83 = load i32, ptr %26, align 4, !tbaa !9
  %84 = load i32, ptr %27, align 4, !tbaa !9
  %85 = load i32, ptr %28, align 4, !tbaa !9
  %86 = load i32, ptr %29, align 4, !tbaa !9
  %87 = load i32, ptr %30, align 4, !tbaa !9
  %88 = load i32, ptr %31, align 4, !tbaa !9
  %89 = load ptr, ptr %33, align 8, !tbaa !5
  %90 = load ptr, ptr %34, align 8, !tbaa !5
  call void @libxsmm_generator_transform_vnni2_to_vnni2t_16bit_avx512_pre_spr_microkernel(ptr noundef %76, ptr noundef %77, i32 noundef %78, i32 noundef %79, i32 noundef %80, i32 noundef %81, i32 noundef %82, i32 noundef %83, i32 noundef %84, i32 noundef %85, i32 noundef %86, i32 noundef %87, i32 noundef %88, ptr noundef %89, ptr noundef %90)
  br label %91

91:                                               ; preds = %75, %57
  br label %194

92:                                               ; preds = %41, %17
  %93 = load ptr, ptr %34, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %93, i32 0, i32 0
  %95 = load i32, ptr %94, align 1, !tbaa !11
  %96 = icmp eq i32 %95, 1
  br i1 %96, label %97, label %162

97:                                               ; preds = %92
  %98 = load ptr, ptr %34, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %99, align 1, !tbaa !14
  %101 = urem i32 %100, 2
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %103, label %162

103:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #3
  store i64 1, ptr %35, align 8, !tbaa !17
  %104 = load ptr, ptr %18, align 8, !tbaa !5
  %105 = load i32, ptr %24, align 4, !tbaa !9
  %106 = load i64, ptr %35, align 8, !tbaa !17
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %104, i32 noundef -1568407413, i32 noundef %105, i64 noundef %106)
  %107 = load ptr, ptr %18, align 8, !tbaa !5
  %108 = load i32, ptr %24, align 4, !tbaa !9
  %109 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_mask_move(ptr noundef %107, i32 noundef -1610149486, i32 noundef %108, i32 noundef %109)
  store i64 1, ptr %35, align 8, !tbaa !17
  %110 = load ptr, ptr %18, align 8, !tbaa !5
  %111 = load i32, ptr %24, align 4, !tbaa !9
  %112 = load i64, ptr %35, align 8, !tbaa !17
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %110, i32 noundef -1568407413, i32 noundef %111, i64 noundef %112)
  %113 = load ptr, ptr %18, align 8, !tbaa !5
  %114 = load i32, ptr %24, align 4, !tbaa !9
  %115 = load i32, ptr %27, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_mask_move(ptr noundef %113, i32 noundef -1610149486, i32 noundef %114, i32 noundef %115)
  %116 = load ptr, ptr %18, align 8, !tbaa !5
  %117 = load ptr, ptr %33, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %117, i32 0, i32 14
  %119 = load i32, ptr %118, align 4, !tbaa !19
  %120 = load i32, ptr %23, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %116, i32 noundef %119, i32 noundef %120, i64 noundef 0)
  %121 = load ptr, ptr %18, align 8, !tbaa !5
  %122 = load ptr, ptr %19, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %121, ptr noundef %122)
  %123 = load ptr, ptr %18, align 8, !tbaa !5
  %124 = load i32, ptr %23, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %123, i32 noundef 30000, i32 noundef %124, i64 noundef 1)
  %125 = load ptr, ptr %18, align 8, !tbaa !5
  %126 = load ptr, ptr %18, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %126, i32 0, i32 6
  %128 = load i32, ptr %127, align 4, !tbaa !15
  %129 = load ptr, ptr %33, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %129, i32 0, i32 6
  %131 = load i32, ptr %130, align 4, !tbaa !21
  %132 = load i32, ptr %20, align 4, !tbaa !9
  %133 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %125, i32 noundef %128, i32 noundef %131, i32 noundef %132, i32 noundef 127, i32 noundef 0, i32 noundef 0, i8 noundef signext 120, i32 noundef 0, i32 noundef %133, i32 noundef 1, i32 noundef 0)
  %134 = load ptr, ptr %18, align 8, !tbaa !5
  %135 = load ptr, ptr %18, align 8, !tbaa !5
  %136 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %135, i32 0, i32 6
  %137 = load i32, ptr %136, align 4, !tbaa !15
  %138 = load ptr, ptr %33, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %138, i32 0, i32 9
  %140 = load i32, ptr %139, align 4, !tbaa !22
  %141 = load i32, ptr %21, align 4, !tbaa !9
  %142 = load i32, ptr %27, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_move(ptr noundef %134, i32 noundef %137, i32 noundef %140, i32 noundef %141, i32 noundef 127, i32 noundef 0, i32 noundef 0, i8 noundef signext 120, i32 noundef 0, i32 noundef %142, i32 noundef 0, i32 noundef 1)
  %143 = load ptr, ptr %18, align 8, !tbaa !5
  %144 = load i32, ptr %20, align 4, !tbaa !9
  %145 = load ptr, ptr %33, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %145, i32 0, i32 2
  %147 = load i32, ptr %146, align 4, !tbaa !23
  %148 = zext i32 %147 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %143, i32 noundef 30000, i32 noundef %144, i64 noundef %148)
  %149 = load ptr, ptr %18, align 8, !tbaa !5
  %150 = load i32, ptr %21, align 4, !tbaa !9
  %151 = load ptr, ptr %33, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %151, i32 0, i32 5
  %153 = load i32, ptr %152, align 4, !tbaa !24
  %154 = zext i32 %153 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %149, i32 noundef 30000, i32 noundef %150, i64 noundef %154)
  %155 = load ptr, ptr %18, align 8, !tbaa !5
  %156 = load ptr, ptr %19, align 8, !tbaa !5
  %157 = load ptr, ptr %33, align 8, !tbaa !5
  %158 = load i32, ptr %23, align 4, !tbaa !9
  %159 = load ptr, ptr %34, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %159, i32 0, i32 1
  %161 = load i32, ptr %160, align 1, !tbaa !14
  call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %155, ptr noundef %156, ptr noundef %157, i32 noundef %158, i32 noundef %161)
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #3
  br label %193

162:                                              ; preds = %97, %92
  %163 = load ptr, ptr %34, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %163, i32 0, i32 0
  %165 = load i32, ptr %164, align 1, !tbaa !11
  %166 = urem i32 %165, 2
  %167 = icmp ne i32 %166, 0
  br i1 %167, label %168, label %177

168:                                              ; preds = %162
  %169 = load ptr, ptr %18, align 8, !tbaa !5
  %170 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %171 = icmp ult i32 1, %170
  br i1 %171, label %172, label %174

172:                                              ; preds = %168
  %173 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %175

174:                                              ; preds = %168
  br label %175

175:                                              ; preds = %174, %172
  %176 = phi i32 [ %173, %172 ], [ 1, %174 ]
  call void @libxsmm_handle_error(ptr noundef %169, i32 noundef 90017, ptr noundef @__func__.libxsmm_generator_transform_vnni2_to_vnni2t_16bit_avx512_microkernel, ptr noundef @.str, i32 noundef 2847, i32 noundef %176)
  br label %194

177:                                              ; preds = %162
  %178 = load ptr, ptr %34, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %178, i32 0, i32 1
  %180 = load i32, ptr %179, align 1, !tbaa !14
  %181 = urem i32 %180, 2
  %182 = icmp ne i32 %181, 0
  br i1 %182, label %183, label %192

183:                                              ; preds = %177
  %184 = load ptr, ptr %18, align 8, !tbaa !5
  %185 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %186 = icmp ult i32 1, %185
  br i1 %186, label %187, label %189

187:                                              ; preds = %183
  %188 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %190

189:                                              ; preds = %183
  br label %190

190:                                              ; preds = %189, %187
  %191 = phi i32 [ %188, %187 ], [ 1, %189 ]
  call void @libxsmm_handle_error(ptr noundef %184, i32 noundef 90016, ptr noundef @__func__.libxsmm_generator_transform_vnni2_to_vnni2t_16bit_avx512_microkernel, ptr noundef @.str, i32 noundef 2851, i32 noundef %191)
  br label %194

192:                                              ; preds = %177
  br label %193

193:                                              ; preds = %192, %103
  br label %194

194:                                              ; preds = %193, %190, %175, %91
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 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 0}
!12 = !{!"libxsmm_meltw_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !13, i64 27, !13, i64 29, !7, i64 31}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !10, i64 4}
!15 = !{!16, !10, i64 28}
!16 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!17 = !{!18, !18, i64 0}
!18 = !{!"long long", !7, i64 0}
!19 = !{!20, !10, i64 56}
!20 = !{!"libxsmm_mateltwise_kernel_config_struct", !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, !10, 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, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !10, i64 392, !10, i64 396, !10, i64 400, !10, i64 404, !10, i64 408, !10, i64 412, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !10, i64 448, !10, i64 452, !10, i64 456, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !7, i64 512}
!21 = !{!20, !10, i64 24}
!22 = !{!20, !10, i64 36}
!23 = !{!20, !10, i64 8}
!24 = !{!20, !10, i64 20}


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

@.str = external hidden unnamed_addr constant [93 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@__func__.libxsmm_generator_transform_vnni2_to_vnni2t_16bit_avx512_microkernel = external hidden unnamed_addr constant [69 x i8], align 1

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

declare void @libxsmm_x86_instruction_vec_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef signext, i32 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_mask_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef, ptr noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_vnni2_to_vnni2t_16bit_avx512_microkernel(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 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, ptr noundef %15, ptr noundef %16) local_unnamed_addr #1 {
  %18 = load i32, ptr %16, align 1, !tbaa !5
  %19 = and i32 %18, 1
  %20 = icmp eq i32 %19, 0
  br i1 %20, label %21, label %.thread82

21:                                               ; preds = %17
  %22 = getelementptr inbounds i8, ptr %16, i64 4
  %23 = load i32, ptr %22, align 1, !tbaa !11
  %24 = and i32 %23, 1
  %25 = icmp eq i32 %24, 0
  br i1 %25, label %26, label %32

26:                                               ; preds = %21
  %27 = getelementptr inbounds i8, ptr %0, i64 28
  %28 = load i32, ptr %27, align 4, !tbaa !12
  %29 = add i32 %28, -1104
  %or.cond = icmp ult i32 %29, 895
  br i1 %or.cond, label %30, label %31

30:                                               ; preds = %26
  tail call void @libxsmm_generator_transform_vnni2_to_vnni2t_16bit_avx512_spr_microkernel(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %2, i32 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, ptr noundef %15, ptr noundef nonnull %16)
  br label %66

31:                                               ; preds = %26
  tail call void @libxsmm_generator_transform_vnni2_to_vnni2t_16bit_avx512_pre_spr_microkernel(ptr noundef nonnull %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %8, i32 noundef %9, i32 noundef %10, i32 noundef %11, i32 noundef %12, i32 noundef %13, ptr noundef %15, ptr noundef nonnull %16)
  br label %66

32:                                               ; preds = %21
  %33 = icmp eq i32 %18, 1
  br i1 %33, label %35, label %61

.thread82:                                        ; preds = %17
  %34 = icmp eq i32 %18, 1
  br i1 %34, label %.thread82._crit_edge, label %.thread83

.thread82._crit_edge:                             ; preds = %.thread82
  %.phi.trans.insert = getelementptr inbounds i8, ptr %16, i64 4
  %.pre = load i32, ptr %.phi.trans.insert, align 1, !tbaa !11
  br label %35

35:                                               ; preds = %.thread82._crit_edge, %32
  %36 = phi i32 [ %.pre, %.thread82._crit_edge ], [ %23, %32 ]
  %37 = and i32 %36, 1
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %.thread83

39:                                               ; preds = %35
  %40 = getelementptr inbounds i8, ptr %16, i64 4
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef -1568407413, i32 noundef %6, i64 noundef 1) #2
  tail call void @libxsmm_x86_instruction_mask_move(ptr noundef %0, i32 noundef -1610149486, i32 noundef %6, i32 noundef %8) #2
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef -1568407413, i32 noundef %6, i64 noundef 1) #2
  tail call void @libxsmm_x86_instruction_mask_move(ptr noundef %0, i32 noundef -1610149486, i32 noundef %6, i32 noundef %9) #2
  %41 = getelementptr inbounds i8, ptr %15, i64 56
  %42 = load i32, ptr %41, align 4, !tbaa !15
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %42, i32 noundef %5, i64 noundef 0) #2
  tail call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %0, ptr noundef %1) #2
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %5, i64 noundef 1) #2
  %43 = getelementptr inbounds i8, ptr %0, i64 28
  %44 = load i32, ptr %43, align 4, !tbaa !12
  %45 = getelementptr inbounds i8, ptr %15, i64 24
  %46 = load i32, ptr %45, align 4, !tbaa !17
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %44, i32 noundef %46, i32 noundef %2, i32 noundef 127, i32 noundef 0, i32 noundef 0, i8 noundef signext 120, i32 noundef 0, i32 noundef %8, i32 noundef 1, i32 noundef 0) #2
  %47 = load i32, ptr %43, align 4, !tbaa !12
  %48 = getelementptr inbounds i8, ptr %15, i64 36
  %49 = load i32, ptr %48, align 4, !tbaa !18
  tail call void @libxsmm_x86_instruction_vec_move(ptr noundef %0, i32 noundef %47, i32 noundef %49, i32 noundef %3, i32 noundef 127, i32 noundef 0, i32 noundef 0, i8 noundef signext 120, i32 noundef 0, i32 noundef %9, i32 noundef 0, i32 noundef 1) #2
  %50 = getelementptr inbounds i8, ptr %15, i64 8
  %51 = load i32, ptr %50, align 4, !tbaa !19
  %52 = zext i32 %51 to i64
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %2, i64 noundef %52) #2
  %53 = getelementptr inbounds i8, ptr %15, i64 20
  %54 = load i32, ptr %53, align 4, !tbaa !20
  %55 = zext i32 %54 to i64
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %3, i64 noundef %55) #2
  %56 = load i32, ptr %40, align 1, !tbaa !11
  tail call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %0, ptr noundef %1, ptr noundef %15, i32 noundef %5, i32 noundef %56) #2
  br label %66

.thread83:                                        ; preds = %35, %.thread82
  %57 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !21
  %58 = icmp ugt i32 %57, 1
  %59 = load i32, ptr @libxsmm_verbosity, align 4
  %60 = select i1 %58, i32 %59, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90017, ptr noundef nonnull @__func__.libxsmm_generator_transform_vnni2_to_vnni2t_16bit_avx512_microkernel, ptr noundef nonnull @.str, i32 noundef 2847, i32 noundef %60) #2
  br label %66

61:                                               ; preds = %32
  %62 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !21
  %63 = icmp ugt i32 %62, 1
  %64 = load i32, ptr @libxsmm_verbosity, align 4
  %65 = select i1 %63, i32 %64, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90016, ptr noundef nonnull @__func__.libxsmm_generator_transform_vnni2_to_vnni2t_16bit_avx512_microkernel, ptr noundef nonnull @.str, i32 noundef 2851, i32 noundef %65) #2
  br label %66

66:                                               ; preds = %39, %30, %31, %61, %.thread83
  ret void
}

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 0}
!6 = !{!"libxsmm_meltw_descriptor", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !8, i64 24, !8, i64 25, !8, i64 26, !10, i64 27, !10, i64 29, !8, i64 31}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!13, !7, i64 28}
!13 = !{!"libxsmm_generated_code", !14, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!16, !7, i64 56}
!16 = !{!"libxsmm_mateltwise_kernel_config_struct", !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, !7, 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, !7, i64 364, !7, i64 368, !7, i64 372, !7, i64 376, !7, i64 380, !7, i64 384, !7, i64 388, !7, i64 392, !7, i64 396, !7, i64 400, !7, i64 404, !7, i64 408, !7, i64 412, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !7, i64 448, !7, i64 452, !7, i64 456, !7, i64 460, !7, i64 464, !7, i64 468, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !8, i64 512}
!17 = !{!16, !7, i64 24}
!18 = !{!16, !7, i64 36}
!19 = !{!16, !7, i64 8}
!20 = !{!16, !7, i64 20}
!21 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass