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

; 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_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 }
%struct.libxsmm_meltw_descriptor = type <{ i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i8 }>

@__func__.libxsmm_generator_transform_norm_to_normt_mbit_scalar_sse_microkernel = external hidden unnamed_addr constant [70 x i8], align 1
@.str = external hidden unnamed_addr constant [90 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_norm_to_normt_mbit_scalar_sse_microkernel(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr noundef %7) #0 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store i32 %2, ptr %11, align 4, !tbaa !9
  store i32 %3, ptr %12, align 4, !tbaa !9
  store i32 %4, ptr %13, align 4, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !9
  store ptr %6, ptr %15, align 8, !tbaa !5
  store ptr %7, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  store i32 9999, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  store i32 9999, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  store i32 15, ptr %19, align 4, !tbaa !9
  %21 = load i32, ptr %19, align 4, !tbaa !9
  %22 = load i32, ptr %13, align 4, !tbaa !9
  %23 = icmp eq i32 %21, %22
  br i1 %23, label %36, label %24

24:                                               ; preds = %8
  %25 = load i32, ptr %19, align 4, !tbaa !9
  %26 = load i32, ptr %14, align 4, !tbaa !9
  %27 = icmp eq i32 %25, %26
  br i1 %27, label %36, label %28

28:                                               ; preds = %24
  %29 = load i32, ptr %19, align 4, !tbaa !9
  %30 = load i32, ptr %11, align 4, !tbaa !9
  %31 = icmp eq i32 %29, %30
  br i1 %31, label %36, label %32

32:                                               ; preds = %28
  %33 = load i32, ptr %19, align 4, !tbaa !9
  %34 = load i32, ptr %12, align 4, !tbaa !9
  %35 = icmp eq i32 %33, %34
  br i1 %35, label %36, label %45

36:                                               ; preds = %32, %28, %24, %8
  %37 = load ptr, ptr %9, align 8, !tbaa !5
  %38 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %39 = icmp ult i32 1, %38
  br i1 %39, label %40, label %42

40:                                               ; preds = %36
  %41 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %43

42:                                               ; preds = %36
  br label %43

43:                                               ; preds = %42, %40
  %44 = phi i32 [ %41, %40 ], [ 1, %42 ]
  call void @libxsmm_handle_error(ptr noundef %37, i32 noundef 90044, ptr noundef @__func__.libxsmm_generator_transform_norm_to_normt_mbit_scalar_sse_microkernel, ptr noundef @.str, i32 noundef 34, i32 noundef %44)
  store i32 1, ptr %20, align 4
  br label %177

45:                                               ; preds = %32
  %46 = load ptr, ptr %15, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %46, i32 0, i32 2
  %48 = load i32, ptr %47, align 4, !tbaa !11
  %49 = icmp eq i32 %48, 8
  br i1 %49, label %50, label %51

50:                                               ; preds = %45
  store i32 -1568407413, ptr %17, align 4, !tbaa !9
  store i32 -1568407413, ptr %18, align 4, !tbaa !9
  br label %73

51:                                               ; preds = %45
  %52 = load ptr, ptr %15, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %52, i32 0, i32 2
  %54 = load i32, ptr %53, align 4, !tbaa !11
  %55 = icmp eq i32 %54, 4
  br i1 %55, label %56, label %57

56:                                               ; preds = %51
  store i32 -1610350453, ptr %17, align 4, !tbaa !9
  store i32 -1610350453, ptr %18, align 4, !tbaa !9
  br label %72

57:                                               ; preds = %51
  %58 = load ptr, ptr %15, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %58, i32 0, i32 2
  %60 = load i32, ptr %59, align 4, !tbaa !11
  %61 = icmp eq i32 %60, 2
  br i1 %61, label %62, label %63

62:                                               ; preds = %57
  store i32 -1610334069, ptr %17, align 4, !tbaa !9
  store i32 -1610334069, ptr %18, align 4, !tbaa !9
  br label %71

63:                                               ; preds = %57
  %64 = load ptr, ptr %15, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %64, i32 0, i32 2
  %66 = load i32, ptr %65, align 4, !tbaa !11
  %67 = icmp eq i32 %66, 1
  br i1 %67, label %68, label %69

68:                                               ; preds = %63
  store i32 -1610350454, ptr %17, align 4, !tbaa !9
  store i32 -1610350454, ptr %18, align 4, !tbaa !9
  br label %70

69:                                               ; preds = %63
  br label %70

70:                                               ; preds = %69, %68
  br label %71

71:                                               ; preds = %70, %62
  br label %72

72:                                               ; preds = %71, %56
  br label %73

73:                                               ; preds = %72, %50
  %74 = load ptr, ptr %9, align 8, !tbaa !5
  %75 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_push_reg(ptr noundef %74, i32 noundef %75)
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %77, i32 0, i32 14
  %79 = load i32, ptr %78, align 4, !tbaa !13
  %80 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %76, i32 noundef %79, i32 noundef %80, i64 noundef 0)
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %81, ptr noundef %82)
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load i32, ptr %13, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %83, i32 noundef 30000, i32 noundef %84, i64 noundef 1)
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = load ptr, ptr %15, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %86, i32 0, i32 14
  %88 = load i32, ptr %87, align 4, !tbaa !13
  %89 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %85, i32 noundef %88, i32 noundef %89, i64 noundef 0)
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_register_jump_back_label(ptr noundef %90, ptr noundef %91)
  %92 = load ptr, ptr %9, align 8, !tbaa !5
  %93 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %92, i32 noundef 30000, i32 noundef %93, i64 noundef 1)
  %94 = load ptr, ptr %9, align 8, !tbaa !5
  %95 = load i32, ptr %17, align 4, !tbaa !9
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %94, i32 noundef %95, i32 noundef %96, i32 noundef 127, i32 noundef 0, i32 noundef 0, i32 noundef %97, i32 noundef 0)
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = load i32, ptr %18, align 4, !tbaa !9
  %100 = load i32, ptr %12, align 4, !tbaa !9
  %101 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %98, i32 noundef %99, i32 noundef %100, i32 noundef 127, i32 noundef 0, i32 noundef 0, i32 noundef %101, i32 noundef 1)
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load i32, ptr %11, align 4, !tbaa !9
  %104 = load ptr, ptr %16, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %104, i32 0, i32 2
  %106 = load i32, ptr %105, align 1, !tbaa !14
  %107 = zext i32 %106 to i64
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %108, i32 0, i32 2
  %110 = load i32, ptr %109, align 4, !tbaa !11
  %111 = zext i32 %110 to i64
  %112 = mul nsw i64 %107, %111
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %102, i32 noundef 30000, i32 noundef %103, i64 noundef %112)
  %113 = load ptr, ptr %9, align 8, !tbaa !5
  %114 = load i32, ptr %12, align 4, !tbaa !9
  %115 = load ptr, ptr %15, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %115, i32 0, i32 5
  %117 = load i32, ptr %116, align 4, !tbaa !17
  %118 = zext i32 %117 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %113, i32 noundef 30000, i32 noundef %114, i64 noundef %118)
  %119 = load ptr, ptr %9, align 8, !tbaa !5
  %120 = load ptr, ptr %10, align 8, !tbaa !5
  %121 = load ptr, ptr %15, align 8, !tbaa !5
  %122 = load i32, ptr %14, align 4, !tbaa !9
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %123, i32 0, i32 1
  %125 = load i32, ptr %124, align 1, !tbaa !18
  call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %119, ptr noundef %120, ptr noundef %121, i32 noundef %122, i32 noundef %125)
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = load ptr, ptr %16, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %128, i32 0, i32 3
  %130 = load i32, ptr %129, align 1, !tbaa !19
  %131 = zext i32 %130 to i64
  %132 = load ptr, ptr %15, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %132, i32 0, i32 5
  %134 = load i32, ptr %133, align 4, !tbaa !17
  %135 = zext i32 %134 to i64
  %136 = mul nsw i64 %131, %135
  %137 = load ptr, ptr %15, align 8, !tbaa !5
  %138 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %137, i32 0, i32 5
  %139 = load i32, ptr %138, align 4, !tbaa !17
  %140 = zext i32 %139 to i64
  %141 = load ptr, ptr %16, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %141, i32 0, i32 1
  %143 = load i32, ptr %142, align 1, !tbaa !18
  %144 = zext i32 %143 to i64
  %145 = mul nsw i64 %140, %144
  %146 = sub nsw i64 %136, %145
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %126, i32 noundef 30000, i32 noundef %127, i64 noundef %146)
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = load i32, ptr %11, align 4, !tbaa !9
  %149 = load ptr, ptr %16, align 8, !tbaa !5
  %150 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %149, i32 0, i32 2
  %151 = load i32, ptr %150, align 1, !tbaa !14
  %152 = zext i32 %151 to i64
  %153 = load ptr, ptr %15, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %153, i32 0, i32 2
  %155 = load i32, ptr %154, align 4, !tbaa !11
  %156 = zext i32 %155 to i64
  %157 = mul nsw i64 %152, %156
  %158 = load ptr, ptr %16, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %158, i32 0, i32 1
  %160 = load i32, ptr %159, align 1, !tbaa !18
  %161 = zext i32 %160 to i64
  %162 = mul nsw i64 %157, %161
  %163 = load ptr, ptr %15, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %163, i32 0, i32 2
  %165 = load i32, ptr %164, align 4, !tbaa !11
  %166 = zext i32 %165 to i64
  %167 = sub nsw i64 %162, %166
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %147, i32 noundef 30008, i32 noundef %148, i64 noundef %167)
  %168 = load ptr, ptr %9, align 8, !tbaa !5
  %169 = load ptr, ptr %10, align 8, !tbaa !5
  %170 = load ptr, ptr %15, align 8, !tbaa !5
  %171 = load i32, ptr %13, align 4, !tbaa !9
  %172 = load ptr, ptr %16, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %172, i32 0, i32 0
  %174 = load i32, ptr %173, align 1, !tbaa !20
  call void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef %168, ptr noundef %169, ptr noundef %170, i32 noundef %171, i32 noundef %174)
  %175 = load ptr, ptr %9, align 8, !tbaa !5
  %176 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_pop_reg(ptr noundef %175, i32 noundef %176)
  store i32 0, ptr %20, align 4
  br label %177

177:                                              ; preds = %73, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  %178 = load i32, ptr %20, align 4
  switch i32 %178, label %180 [
    i32 0, label %179
    i32 1, label %179
  ]

179:                                              ; preds = %177, %177
  ret void

180:                                              ; preds = %177
  unreachable
}

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

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

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

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

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

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

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

declare void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #2

declare void @libxsmm_x86_instruction_pop_reg(ptr noundef, i32 noundef) #2

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 8}
!12 = !{!"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}
!13 = !{!12, !10, i64 56}
!14 = !{!15, !10, i64 8}
!15 = !{!"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, !16, i64 27, !16, i64 29, !7, i64 31}
!16 = !{!"short", !7, i64 0}
!17 = !{!12, !10, i64 20}
!18 = !{!15, !10, i64 4}
!19 = !{!15, !10, i64 12}
!20 = !{!15, !10, i64 0}


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

@__func__.libxsmm_generator_transform_norm_to_normt_mbit_scalar_sse_microkernel = external hidden unnamed_addr constant [70 x i8], align 1
@.str = external hidden unnamed_addr constant [90 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@switch.table.libxsmm_generator_transform_norm_to_normt_mbit_scalar_sse_microkernel = private unnamed_addr constant [8 x i32] [i32 -1610350454, i32 -1610334069, i32 9999, i32 -1610350453, i32 9999, i32 9999, i32 9999, i32 -1568407413], align 4

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_transform_norm_to_normt_mbit_scalar_sse_microkernel(ptr noundef %0, ptr noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6, ptr nocapture noundef readonly %7) local_unnamed_addr #0 {
  %9 = icmp eq i32 %4, 15
  %10 = icmp eq i32 %5, 15
  %or.cond = or i1 %9, %10
  %11 = icmp eq i32 %2, 15
  %or.cond73 = or i1 %11, %or.cond
  %12 = icmp eq i32 %3, 15
  %or.cond74 = or i1 %12, %or.cond73
  br i1 %or.cond74, label %13, label %18

13:                                               ; preds = %8
  %14 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %15 = icmp ugt i32 %14, 1
  %16 = load i32, ptr @libxsmm_verbosity, align 4
  %17 = select i1 %15, i32 %16, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90044, ptr noundef nonnull @__func__.libxsmm_generator_transform_norm_to_normt_mbit_scalar_sse_microkernel, ptr noundef nonnull @.str, i32 noundef 34, i32 noundef %17) #2
  br label %56

18:                                               ; preds = %8
  %19 = getelementptr inbounds i8, ptr %6, i64 8
  %20 = load i32, ptr %19, align 4, !tbaa !9
  %switch.tableidx = add i32 %20, -1
  %21 = icmp ult i32 %switch.tableidx, 8
  br i1 %21, label %switch.lookup, label %.fold.split

switch.lookup:                                    ; preds = %18
  %22 = zext nneg i32 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [8 x i32], ptr @switch.table.libxsmm_generator_transform_norm_to_normt_mbit_scalar_sse_microkernel, i64 0, i64 %22
  %switch.load = load i32, ptr %switch.gep, align 4
  br label %.fold.split

.fold.split:                                      ; preds = %18, %switch.lookup
  %.0 = phi i32 [ %switch.load, %switch.lookup ], [ 9999, %18 ]
  tail call void @libxsmm_x86_instruction_push_reg(ptr noundef %0, i32 noundef 15) #2
  %23 = getelementptr inbounds i8, ptr %6, i64 56
  %24 = load i32, ptr %23, align 4, !tbaa !11
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %24, i32 noundef %4, 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 %4, i64 noundef 1) #2
  %25 = load i32, ptr %23, align 4, !tbaa !11
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %25, 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
  tail call void @libxsmm_x86_instruction_alu_mem(ptr noundef %0, i32 noundef %.0, i32 noundef %2, i32 noundef 127, i32 noundef 0, i32 noundef 0, i32 noundef 15, i32 noundef 0) #2
  tail call void @libxsmm_x86_instruction_alu_mem(ptr noundef %0, i32 noundef %.0, i32 noundef %3, i32 noundef 127, i32 noundef 0, i32 noundef 0, i32 noundef 15, i32 noundef 1) #2
  %26 = getelementptr inbounds i8, ptr %7, i64 8
  %27 = load i32, ptr %26, align 1, !tbaa !12
  %28 = zext i32 %27 to i64
  %29 = load i32, ptr %19, align 4, !tbaa !9
  %30 = zext i32 %29 to i64
  %31 = mul nuw nsw i64 %30, %28
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %2, i64 noundef %31) #2
  %32 = getelementptr inbounds i8, ptr %6, i64 20
  %33 = load i32, ptr %32, align 4, !tbaa !15
  %34 = zext i32 %33 to i64
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %3, i64 noundef %34) #2
  %35 = getelementptr inbounds i8, ptr %7, i64 4
  %36 = load i32, ptr %35, align 1, !tbaa !16
  tail call void @libxsmm_generator_mateltwise_footer_n_loop(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %6, i32 noundef %5, i32 noundef %36) #2
  %37 = getelementptr inbounds i8, ptr %7, i64 12
  %38 = load i32, ptr %37, align 1, !tbaa !17
  %39 = zext i32 %38 to i64
  %40 = load i32, ptr %32, align 4, !tbaa !15
  %41 = zext i32 %40 to i64
  %42 = load i32, ptr %35, align 1, !tbaa !16
  %43 = zext i32 %42 to i64
  %44 = sub nsw i64 %39, %43
  %45 = mul i64 %44, %41
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30000, i32 noundef %3, i64 noundef %45) #2
  %46 = load i32, ptr %26, align 1, !tbaa !12
  %47 = zext i32 %46 to i64
  %48 = load i32, ptr %19, align 4, !tbaa !9
  %49 = zext i32 %48 to i64
  %50 = mul nuw nsw i64 %49, %47
  %51 = load i32, ptr %35, align 1, !tbaa !16
  %52 = zext i32 %51 to i64
  %53 = mul nuw nsw i64 %50, %52
  %54 = sub nsw i64 %53, %49
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef 30008, i32 noundef %2, i64 noundef %54) #2
  %55 = load i32, ptr %7, align 1, !tbaa !18
  tail call void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %6, i32 noundef %4, i32 noundef %55) #2
  tail call void @libxsmm_x86_instruction_pop_reg(ptr noundef %0, i32 noundef 15) #2
  br label %56

56:                                               ; preds = %.fold.split, %13
  ret void
}

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

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

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

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

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 #1

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

declare void @libxsmm_generator_mateltwise_footer_m_loop(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

attributes #0 = { 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 #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 }

!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, !6, i64 8}
!10 = !{!"libxsmm_mateltwise_kernel_config_struct", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 116, !6, i64 120, !6, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144, !6, i64 148, !6, i64 152, !6, i64 156, !6, i64 160, !6, i64 164, !6, i64 168, !6, i64 172, !6, i64 176, !6, i64 180, !6, i64 184, !6, i64 188, !6, i64 192, !6, i64 196, !6, i64 200, !6, i64 204, !6, i64 208, !6, i64 212, !6, i64 216, !6, i64 220, !6, i64 224, !6, i64 228, !6, i64 232, !6, i64 236, !6, i64 240, !6, i64 244, !6, i64 248, !6, i64 252, !6, i64 256, !6, i64 260, !6, i64 264, !6, i64 268, !6, i64 272, !6, i64 276, !6, i64 280, !6, i64 284, !6, i64 288, !6, i64 292, !6, i64 296, !6, i64 300, !6, i64 304, !6, i64 308, !6, i64 312, !6, i64 316, !6, i64 320, !6, i64 324, !6, i64 328, !6, i64 332, !6, i64 336, !6, i64 340, !6, i64 344, !6, i64 348, !6, i64 352, !6, i64 356, !6, i64 360, !6, i64 364, !6, i64 368, !6, i64 372, !6, i64 376, !6, i64 380, !6, i64 384, !6, i64 388, !6, i64 392, !6, i64 396, !6, i64 400, !6, i64 404, !6, i64 408, !6, i64 412, !6, i64 416, !6, i64 420, !6, i64 424, !6, i64 428, !6, i64 432, !6, i64 436, !6, i64 440, !6, i64 444, !6, i64 448, !6, i64 452, !6, i64 456, !6, i64 460, !6, i64 464, !6, i64 468, !6, i64 472, !6, i64 476, !6, i64 480, !6, i64 484, !6, i64 488, !6, i64 492, !6, i64 496, !6, i64 500, !6, i64 504, !6, i64 508, !7, i64 512}
!11 = !{!10, !6, i64 56}
!12 = !{!13, !6, i64 8}
!13 = !{!"libxsmm_meltw_descriptor", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !14, i64 27, !14, i64 29, !7, i64 31}
!14 = !{!"short", !7, i64 0}
!15 = !{!10, !6, i64 20}
!16 = !{!13, !6, i64 4}
!17 = !{!13, !6, i64 12}
!18 = !{!13, !6, i64 0}


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