; 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_descriptor_blob = type { [96 x i8] }
%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_mateltwise_gp_reg_mapping_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 }
%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_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

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) #0

declare ptr @libxsmm_meltw_descriptor_init2(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i16 noundef zeroext, i16 noundef zeroext, i8 noundef zeroext) #0

declare void @libxsmm_generator_mateltwise_init_micro_kernel_config_fullvector(ptr noundef, ptr noundef, ptr noundef) #0

declare void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_emit_f8_eltwise_fusion(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #2 {
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca %struct.libxsmm_descriptor_blob, align 1
  %18 = alloca %struct.libxsmm_mateltwise_kernel_config_struct, align 4
  %19 = alloca %struct.libxsmm_mateltwise_gp_reg_mapping_struct, align 4
  %20 = alloca ptr, align 8
  %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
  store ptr %0, ptr %9, align 8, !tbaa !5
  store ptr %1, ptr %10, align 8, !tbaa !5
  store ptr %2, ptr %11, align 8, !tbaa !5
  store ptr %3, ptr %12, align 8, !tbaa !5
  store ptr %4, ptr %13, align 8, !tbaa !5
  store i32 %5, ptr %14, align 4, !tbaa !9
  store i32 %6, ptr %15, align 4, !tbaa !9
  store i32 %7, ptr %16, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 96, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 516, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 148, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  %28 = load ptr, ptr %13, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %28, i32 0, i32 8
  %30 = getelementptr inbounds [3 x i8], ptr %29, i64 0, i64 0
  %31 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %30)
  %32 = icmp eq i32 4, %31
  %33 = zext i1 %32 to i64
  %34 = select i1 %32, i32 1, i32 0
  store i32 %34, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  %35 = load ptr, ptr %13, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %35, i32 0, i32 8
  %37 = getelementptr inbounds [3 x i8], ptr %36, i64 0, i64 0
  %38 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %37)
  %39 = icmp eq i32 5, %38
  %40 = zext i1 %39 to i64
  %41 = select i1 %39, i32 1, i32 0
  store i32 %41, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  store i32 15, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  store i32 14, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  store i32 32, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  store i32 80, ptr %26, align 4, !tbaa !9
  %42 = load i32, ptr %23, align 4, !tbaa !9
  %43 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %19, i32 0, i32 0
  store i32 %42, ptr %43, align 4, !tbaa !11
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %44, i32 0, i32 31
  %46 = load i32, ptr %45, align 4, !tbaa !13
  %47 = icmp ugt i32 %46, 0
  br i1 %47, label %51, label %48

48:                                               ; preds = %8
  %49 = load i32, ptr %15, align 4, !tbaa !9
  %50 = icmp ugt i32 %49, 0
  br i1 %50, label %51, label %208

51:                                               ; preds = %48, %8
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %52 = load i32, ptr %21, align 4, !tbaa !9
  %53 = icmp ugt i32 %52, 0
  br i1 %53, label %57, label %54

54:                                               ; preds = %51
  %55 = load i32, ptr %22, align 4, !tbaa !9
  %56 = icmp ugt i32 %55, 0
  br label %57

57:                                               ; preds = %54, %51
  %58 = phi i1 [ true, %51 ], [ %56, %54 ]
  %59 = zext i1 %58 to i64
  %60 = select i1 %58, i32 1, i32 0
  store i32 %60, ptr %27, align 4, !tbaa !9
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_push_reg(ptr noundef %61, i32 noundef 14)
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_push_reg(ptr noundef %62, i32 noundef 15)
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = load ptr, ptr %11, align 8, !tbaa !5
  %65 = load i32, ptr %23, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %63, ptr noundef %64, i32 noundef 26, i32 noundef %65)
  %66 = load ptr, ptr %9, align 8, !tbaa !5
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load i32, ptr %27, align 4, !tbaa !9
  %69 = icmp ne i32 %68, 0
  %70 = zext i1 %69 to i64
  %71 = select i1 %69, i32 28, i32 29
  %72 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %66, ptr noundef %67, i32 noundef %71, i32 noundef %72)
  %73 = load ptr, ptr %9, align 8, !tbaa !5
  %74 = load i32, ptr %23, align 4, !tbaa !9
  %75 = load i32, ptr %25, align 4, !tbaa !9
  %76 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %73, i32 noundef -1568407413, i32 noundef %74, i32 noundef 127, i32 noundef 0, i32 noundef %75, i32 noundef %76, i32 noundef 1)
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = load i32, ptr %23, align 4, !tbaa !9
  %79 = load i32, ptr %26, align 4, !tbaa !9
  %80 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %77, i32 noundef -1568407413, i32 noundef %78, i32 noundef 127, i32 noundef 0, i32 noundef %79, i32 noundef %80, i32 noundef 1)
  %81 = load i32, ptr %15, align 4, !tbaa !9
  %82 = icmp ugt i32 %81, 0
  br i1 %82, label %83, label %111

83:                                               ; preds = %57
  %84 = load i32, ptr %27, align 4, !tbaa !9
  %85 = icmp ugt i32 %84, 0
  br i1 %85, label %86, label %101

86:                                               ; preds = %83
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %88, i32 0, i32 16
  %90 = load i32, ptr %89, align 8, !tbaa !17
  %91 = load i32, ptr %24, align 4, !tbaa !9
  %92 = load ptr, ptr %13, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %92, i32 0, i32 1
  %94 = load i32, ptr %93, align 1, !tbaa !18
  %95 = load ptr, ptr %13, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %95, i32 0, i32 0
  %97 = load i32, ptr %96, align 1, !tbaa !21
  %98 = mul i32 %94, %97
  %99 = mul i32 %98, 4
  %100 = zext i32 %99 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %87, i32 noundef %90, i32 noundef %91, i64 noundef %100)
  br label %105

101:                                              ; preds = %83
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %102, ptr noundef %103, i32 noundef 8, i32 noundef %104)
  br label %105

105:                                              ; preds = %101, %86
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = load i32, ptr %23, align 4, !tbaa !9
  %108 = load i32, ptr %26, align 4, !tbaa !9
  %109 = add nsw i32 %108, 8
  %110 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %106, i32 noundef -1568407413, i32 noundef %107, i32 noundef 127, i32 noundef 0, i32 noundef %109, i32 noundef %110, i32 noundef 1)
  br label %111

111:                                              ; preds = %105, %57
  %112 = load ptr, ptr %12, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %112, i32 0, i32 8
  %114 = getelementptr inbounds [3 x i8], ptr %113, i64 0, i64 0
  %115 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %114)
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %116, i32 0, i32 8
  %118 = getelementptr inbounds [3 x i8], ptr %117, i64 0, i64 0
  %119 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %118)
  %120 = load ptr, ptr %13, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %120, i32 0, i32 0
  %122 = load i32, ptr %121, align 1, !tbaa !21
  %123 = load ptr, ptr %13, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %123, i32 0, i32 1
  %125 = load i32, ptr %124, align 1, !tbaa !18
  %126 = load ptr, ptr %12, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %126, i32 0, i32 5
  %128 = load i32, ptr %127, align 1, !tbaa !22
  %129 = load ptr, ptr %12, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %129, i32 0, i32 5
  %131 = load i32, ptr %130, align 1, !tbaa !22
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = icmp ugt i32 %132, 0
  %134 = zext i1 %133 to i64
  %135 = select i1 %133, i32 1, i32 0
  %136 = trunc i32 %135 to i16
  %137 = call ptr @libxsmm_meltw_descriptor_init2(ptr noundef %17, i32 noundef %115, i32 noundef 15, i32 noundef 15, i32 noundef 1, i32 noundef %119, i32 noundef %122, i32 noundef %125, i32 noundef %128, i32 noundef %131, i32 noundef 0, i32 noundef 0, i16 noundef zeroext %136, i16 noundef zeroext 5, i8 noundef zeroext 1)
  store ptr %137, ptr %20, align 8, !tbaa !5
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = load ptr, ptr %20, align 8, !tbaa !5
  call void @libxsmm_generator_mateltwise_init_micro_kernel_config_fullvector(ptr noundef %138, ptr noundef %18, ptr noundef %139)
  %140 = load ptr, ptr %9, align 8, !tbaa !5
  %141 = load ptr, ptr %10, align 8, !tbaa !5
  %142 = load ptr, ptr %20, align 8, !tbaa !5
  call void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef %140, ptr noundef %141, ptr noundef %19, ptr noundef %18, ptr noundef %142)
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = icmp ugt i32 %143, 0
  br i1 %144, label %145, label %205

145:                                              ; preds = %111
  %146 = load i32, ptr %27, align 4, !tbaa !9
  %147 = icmp ugt i32 %146, 0
  br i1 %147, label %148, label %204

148:                                              ; preds = %145
  %149 = load ptr, ptr %9, align 8, !tbaa !5
  %150 = load ptr, ptr %11, align 8, !tbaa !5
  %151 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %149, ptr noundef %150, i32 noundef 28, i32 noundef %151)
  %152 = load ptr, ptr %9, align 8, !tbaa !5
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %153, i32 0, i32 16
  %155 = load i32, ptr %154, align 8, !tbaa !17
  %156 = load i32, ptr %24, align 4, !tbaa !9
  %157 = load ptr, ptr %13, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %157, i32 0, i32 1
  %159 = load i32, ptr %158, align 1, !tbaa !18
  %160 = load ptr, ptr %13, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %160, i32 0, i32 0
  %162 = load i32, ptr %161, align 1, !tbaa !21
  %163 = mul i32 %159, %162
  %164 = mul i32 %163, 4
  %165 = zext i32 %164 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %152, i32 noundef %155, i32 noundef %156, i64 noundef %165)
  %166 = load ptr, ptr %9, align 8, !tbaa !5
  %167 = load i32, ptr %23, align 4, !tbaa !9
  %168 = load i32, ptr %25, align 4, !tbaa !9
  %169 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %166, i32 noundef -1568407413, i32 noundef %167, i32 noundef 127, i32 noundef 0, i32 noundef %168, i32 noundef %169, i32 noundef 1)
  %170 = load ptr, ptr %9, align 8, !tbaa !5
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %170, ptr noundef %171, i32 noundef 8, i32 noundef %172)
  %173 = load ptr, ptr %9, align 8, !tbaa !5
  %174 = load i32, ptr %23, align 4, !tbaa !9
  %175 = load i32, ptr %26, align 4, !tbaa !9
  %176 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %173, i32 noundef -1568407413, i32 noundef %174, i32 noundef 127, i32 noundef 0, i32 noundef %175, i32 noundef %176, i32 noundef 1)
  %177 = load ptr, ptr %13, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %177, i32 0, i32 0
  %179 = load i32, ptr %178, align 1, !tbaa !21
  %180 = add i32 %179, 15
  %181 = udiv i32 %180, 16
  %182 = mul i32 %181, 2
  %183 = load ptr, ptr %13, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %183, i32 0, i32 1
  %185 = load i32, ptr %184, align 1, !tbaa !18
  %186 = load ptr, ptr %13, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %186, i32 0, i32 0
  %188 = load i32, ptr %187, align 1, !tbaa !21
  %189 = add i32 %188, 15
  %190 = udiv i32 %189, 16
  %191 = mul i32 %190, 2
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %192, i32 0, i32 5
  %194 = load i32, ptr %193, align 1, !tbaa !22
  %195 = add i32 %194, 15
  %196 = udiv i32 %195, 16
  %197 = mul i32 %196, 2
  %198 = call ptr @libxsmm_meltw_descriptor_init2(ptr noundef %17, i32 noundef 4, i32 noundef 15, i32 noundef 15, i32 noundef 4, i32 noundef 4, i32 noundef %182, i32 noundef %185, i32 noundef %191, i32 noundef %197, i32 noundef 0, i32 noundef 0, i16 noundef zeroext 0, i16 noundef zeroext 1, i8 noundef zeroext 1)
  store ptr %198, ptr %20, align 8, !tbaa !5
  %199 = load ptr, ptr %9, align 8, !tbaa !5
  %200 = load ptr, ptr %20, align 8, !tbaa !5
  call void @libxsmm_generator_mateltwise_init_micro_kernel_config_fullvector(ptr noundef %199, ptr noundef %18, ptr noundef %200)
  %201 = load ptr, ptr %9, align 8, !tbaa !5
  %202 = load ptr, ptr %10, align 8, !tbaa !5
  %203 = load ptr, ptr %20, align 8, !tbaa !5
  call void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef %201, ptr noundef %202, ptr noundef %19, ptr noundef %18, ptr noundef %203)
  br label %204

204:                                              ; preds = %148, %145
  br label %205

205:                                              ; preds = %204, %111
  %206 = load ptr, ptr %9, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_pop_reg(ptr noundef %206, i32 noundef 15)
  %207 = load ptr, ptr %9, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_pop_reg(ptr noundef %207, i32 noundef 14)
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  br label %208

208:                                              ; preds = %205, %48
  %209 = load i32, ptr %21, align 4, !tbaa !9
  %210 = icmp ugt i32 %209, 0
  br i1 %210, label %214, label %211

211:                                              ; preds = %208
  %212 = load i32, ptr %22, align 4, !tbaa !9
  %213 = icmp ugt i32 %212, 0
  br i1 %213, label %214, label %300

214:                                              ; preds = %211, %208
  %215 = load ptr, ptr %9, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_push_reg(ptr noundef %215, i32 noundef 14)
  %216 = load ptr, ptr %9, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_push_reg(ptr noundef %216, i32 noundef 15)
  %217 = load ptr, ptr %9, align 8, !tbaa !5
  %218 = load ptr, ptr %11, align 8, !tbaa !5
  %219 = load i32, ptr %23, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %217, ptr noundef %218, i32 noundef 26, i32 noundef %219)
  %220 = load ptr, ptr %9, align 8, !tbaa !5
  %221 = load ptr, ptr %11, align 8, !tbaa !5
  %222 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %220, ptr noundef %221, i32 noundef 28, i32 noundef %222)
  %223 = load ptr, ptr %9, align 8, !tbaa !5
  %224 = load i32, ptr %23, align 4, !tbaa !9
  %225 = load i32, ptr %25, align 4, !tbaa !9
  %226 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %223, i32 noundef -1568407413, i32 noundef %224, i32 noundef 127, i32 noundef 0, i32 noundef %225, i32 noundef %226, i32 noundef 1)
  %227 = load i32, ptr %14, align 4, !tbaa !9
  %228 = icmp eq i32 %227, 0
  br i1 %228, label %229, label %233

229:                                              ; preds = %214
  %230 = load ptr, ptr %9, align 8, !tbaa !5
  %231 = load ptr, ptr %11, align 8, !tbaa !5
  %232 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %230, ptr noundef %231, i32 noundef 29, i32 noundef %232)
  br label %233

233:                                              ; preds = %229, %214
  %234 = load ptr, ptr %9, align 8, !tbaa !5
  %235 = load i32, ptr %23, align 4, !tbaa !9
  %236 = load i32, ptr %26, align 4, !tbaa !9
  %237 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %234, i32 noundef -1568407413, i32 noundef %235, i32 noundef 127, i32 noundef 0, i32 noundef %236, i32 noundef %237, i32 noundef 1)
  %238 = load i32, ptr %16, align 4, !tbaa !9
  %239 = load ptr, ptr %13, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %239, i32 0, i32 0
  %241 = load i32, ptr %240, align 1, !tbaa !21
  %242 = load ptr, ptr %13, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %242, i32 0, i32 1
  %244 = load i32, ptr %243, align 1, !tbaa !18
  %245 = load ptr, ptr %12, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %245, i32 0, i32 5
  %247 = load i32, ptr %246, align 1, !tbaa !22
  %248 = load i32, ptr %14, align 4, !tbaa !9
  %249 = icmp eq i32 %248, 0
  br i1 %249, label %250, label %254

250:                                              ; preds = %233
  %251 = load ptr, ptr %13, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %251, i32 0, i32 5
  %253 = load i32, ptr %252, align 1, !tbaa !22
  br label %258

254:                                              ; preds = %233
  %255 = load ptr, ptr %12, align 8, !tbaa !5
  %256 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %255, i32 0, i32 5
  %257 = load i32, ptr %256, align 1, !tbaa !22
  br label %258

258:                                              ; preds = %254, %250
  %259 = phi i32 [ %253, %250 ], [ %257, %254 ]
  %260 = call ptr @libxsmm_meltw_descriptor_init2(ptr noundef %17, i32 noundef 1, i32 noundef 15, i32 noundef 15, i32 noundef 1, i32 noundef %238, i32 noundef %241, i32 noundef %244, i32 noundef %247, i32 noundef %259, i32 noundef 0, i32 noundef 0, i16 noundef zeroext 0, i16 noundef zeroext 1, i8 noundef zeroext 1)
  store ptr %260, ptr %20, align 8, !tbaa !5
  %261 = load ptr, ptr %9, align 8, !tbaa !5
  %262 = load ptr, ptr %20, align 8, !tbaa !5
  call void @libxsmm_generator_mateltwise_init_micro_kernel_config_fullvector(ptr noundef %261, ptr noundef %18, ptr noundef %262)
  %263 = load ptr, ptr %9, align 8, !tbaa !5
  %264 = load ptr, ptr %10, align 8, !tbaa !5
  %265 = load ptr, ptr %20, align 8, !tbaa !5
  call void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef %263, ptr noundef %264, ptr noundef %19, ptr noundef %18, ptr noundef %265)
  %266 = load i32, ptr %14, align 4, !tbaa !9
  %267 = icmp ugt i32 %266, 0
  br i1 %267, label %268, label %297

268:                                              ; preds = %258
  %269 = load ptr, ptr %9, align 8, !tbaa !5
  %270 = load ptr, ptr %11, align 8, !tbaa !5
  %271 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %269, ptr noundef %270, i32 noundef 29, i32 noundef %271)
  %272 = load ptr, ptr %9, align 8, !tbaa !5
  %273 = load i32, ptr %23, align 4, !tbaa !9
  %274 = load i32, ptr %26, align 4, !tbaa !9
  %275 = load i32, ptr %24, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %272, i32 noundef -1568407413, i32 noundef %273, i32 noundef 127, i32 noundef 0, i32 noundef %274, i32 noundef %275, i32 noundef 1)
  %276 = load i32, ptr %16, align 4, !tbaa !9
  %277 = load i32, ptr %16, align 4, !tbaa !9
  %278 = load i32, ptr %16, align 4, !tbaa !9
  %279 = load ptr, ptr %13, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %279, i32 0, i32 0
  %281 = load i32, ptr %280, align 1, !tbaa !21
  %282 = load ptr, ptr %13, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %282, i32 0, i32 1
  %284 = load i32, ptr %283, align 1, !tbaa !18
  %285 = load ptr, ptr %12, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %285, i32 0, i32 5
  %287 = load i32, ptr %286, align 1, !tbaa !22
  %288 = load ptr, ptr %13, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %288, i32 0, i32 5
  %290 = load i32, ptr %289, align 1, !tbaa !22
  %291 = call ptr @libxsmm_meltw_descriptor_init2(ptr noundef %17, i32 noundef %276, i32 noundef 15, i32 noundef 15, i32 noundef %277, i32 noundef %278, i32 noundef %281, i32 noundef %284, i32 noundef %287, i32 noundef %290, i32 noundef 0, i32 noundef 0, i16 noundef zeroext 0, i16 noundef zeroext 54, i8 noundef zeroext 1)
  store ptr %291, ptr %20, align 8, !tbaa !5
  %292 = load ptr, ptr %9, align 8, !tbaa !5
  %293 = load ptr, ptr %20, align 8, !tbaa !5
  call void @libxsmm_generator_mateltwise_init_micro_kernel_config_fullvector(ptr noundef %292, ptr noundef %18, ptr noundef %293)
  %294 = load ptr, ptr %9, align 8, !tbaa !5
  %295 = load ptr, ptr %10, align 8, !tbaa !5
  %296 = load ptr, ptr %20, align 8, !tbaa !5
  call void @libxsmm_generator_transform_x86_microkernel(ptr noundef %294, ptr noundef %295, ptr noundef %19, ptr noundef %18, ptr noundef %296)
  br label %297

297:                                              ; preds = %268, %258
  %298 = load ptr, ptr %9, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_pop_reg(ptr noundef %298, i32 noundef 15)
  %299 = load ptr, ptr %9, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_pop_reg(ptr noundef %299, i32 noundef 14)
  br label %300

300:                                              ; preds = %297, %211
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 148, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 516, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 96, ptr %17) #3
  ret void
}

declare void @libxsmm_generator_transform_x86_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr 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 0}
!12 = !{!"libxsmm_mateltwise_gp_reg_mapping_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}
!13 = !{!14, !10, i64 124}
!14 = !{!"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, !15, 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}
!15 = !{!"libxsmm_tile_config", !7, i64 0, !16, i64 2, !7, i64 4, !16, i64 6, !7, i64 8, !16, i64 10, !7, i64 12, !16, i64 14, !7, i64 16, !16, i64 18, !7, i64 20, !16, i64 22, !7, i64 24, !16, i64 26, !7, i64 28, !16, i64 30, !7, i64 32}
!16 = !{!"short", !7, i64 0}
!17 = !{!14, !10, i64 64}
!18 = !{!19, !10, i64 4}
!19 = !{!"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, !20, i64 33, !20, i64 41, !7, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !16, i64 62, !16, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !16, i64 70, !16, i64 72, !16, i64 74, !16, i64 76, !16, i64 78, !16, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !7, i64 94}
!20 = !{!"long long", !7, i64 0}
!21 = !{!19, !10, i64 0}
!22 = !{!19, !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"

%struct.libxsmm_descriptor_blob = type { [96 x i8] }
%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_mateltwise_gp_reg_mapping_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 }

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_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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

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

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) local_unnamed_addr #0

declare ptr @libxsmm_meltw_descriptor_init2(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i16 noundef zeroext, i16 noundef zeroext, i8 noundef zeroext) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_emit_f8_eltwise_fusion(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) local_unnamed_addr #2 {
  %9 = alloca %struct.libxsmm_descriptor_blob, align 1
  %10 = alloca %struct.libxsmm_mateltwise_kernel_config_struct, align 4
  %11 = alloca %struct.libxsmm_mateltwise_gp_reg_mapping_struct, align 4
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %9) #3
  call void @llvm.lifetime.start.p0(i64 516, ptr nonnull %10) #3
  call void @llvm.lifetime.start.p0(i64 148, ptr nonnull %11) #3
  %12 = getelementptr inbounds i8, ptr %4, i64 29
  %13 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %12) #3
  %14 = icmp eq i32 %13, 4
  %15 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %12) #3
  %16 = icmp eq i32 %15, 5
  store i32 15, ptr %11, align 4, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %2, i64 124
  %18 = load i32, ptr %17, align 4, !tbaa !10
  %19 = icmp ne i32 %6, 0
  %20 = or i32 %18, %6
  %or.cond.not = icmp eq i32 %20, 0
  %.pre = select i1 %14, i1 true, i1 %16
  br i1 %or.cond.not, label %._crit_edge, label %21

._crit_edge:                                      ; preds = %8
  br i1 %.pre, label %66, label %87

21:                                               ; preds = %8
  tail call void @libxsmm_x86_instruction_push_reg(ptr noundef %0, i32 noundef 14) #3
  tail call void @libxsmm_x86_instruction_push_reg(ptr noundef %0, i32 noundef 15) #3
  tail call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef nonnull %2, i32 noundef 26, i32 noundef 15) #3
  %22 = select i1 %.pre, i32 28, i32 29
  tail call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef nonnull %2, i32 noundef %22, i32 noundef 14) #3
  tail call void @libxsmm_x86_instruction_alu_mem(ptr noundef %0, i32 noundef -1568407413, i32 noundef 15, i32 noundef 127, i32 noundef 0, i32 noundef 32, i32 noundef 14, i32 noundef 1) #3
  tail call void @libxsmm_x86_instruction_alu_mem(ptr noundef %0, i32 noundef -1568407413, i32 noundef 15, i32 noundef 127, i32 noundef 0, i32 noundef 80, i32 noundef 14, i32 noundef 1) #3
  br i1 %19, label %23, label %35

23:                                               ; preds = %21
  br i1 %.pre, label %24, label %33

24:                                               ; preds = %23
  %25 = getelementptr inbounds i8, ptr %2, i64 64
  %26 = load i32, ptr %25, align 8, !tbaa !15
  %27 = getelementptr inbounds i8, ptr %4, i64 4
  %28 = load i32, ptr %27, align 1, !tbaa !16
  %29 = load i32, ptr %4, align 1, !tbaa !19
  %30 = shl i32 %28, 2
  %31 = mul i32 %30, %29
  %32 = zext i32 %31 to i64
  tail call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %26, i32 noundef 14, i64 noundef %32) #3
  br label %34

33:                                               ; preds = %23
  tail call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef nonnull %2, i32 noundef 8, i32 noundef 14) #3
  br label %34

34:                                               ; preds = %33, %24
  tail call void @libxsmm_x86_instruction_alu_mem(ptr noundef %0, i32 noundef -1568407413, i32 noundef 15, i32 noundef 127, i32 noundef 0, i32 noundef 88, i32 noundef 14, i32 noundef 1) #3
  br label %35

35:                                               ; preds = %34, %21
  %or.cond5 = phi i1 [ %.pre, %34 ], [ false, %21 ]
  %36 = getelementptr inbounds i8, ptr %3, i64 29
  %37 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %36) #3
  %38 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %36) #3
  %39 = load i32, ptr %4, align 1, !tbaa !19
  %40 = getelementptr inbounds i8, ptr %4, i64 4
  %41 = load i32, ptr %40, align 1, !tbaa !16
  %42 = getelementptr inbounds i8, ptr %3, i64 20
  %43 = load i32, ptr %42, align 1, !tbaa !20
  %44 = zext i1 %19 to i16
  %45 = call ptr @libxsmm_meltw_descriptor_init2(ptr noundef nonnull %9, i32 noundef %37, i32 noundef 15, i32 noundef 15, i32 noundef 1, i32 noundef %38, i32 noundef %39, i32 noundef %41, i32 noundef %43, i32 noundef %43, i32 noundef 0, i32 noundef 0, i16 noundef zeroext %44, i16 noundef zeroext 5, i8 noundef zeroext 1) #3
  call void @libxsmm_generator_mateltwise_init_micro_kernel_config_fullvector(ptr noundef %0, ptr noundef nonnull %10, ptr noundef %45) #3
  call void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %11, ptr noundef nonnull %10, ptr noundef %45) #3
  br i1 %or.cond5, label %46, label %65

46:                                               ; preds = %35
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef nonnull %2, i32 noundef 28, i32 noundef 14) #3
  %47 = getelementptr inbounds i8, ptr %2, i64 64
  %48 = load i32, ptr %47, align 8, !tbaa !15
  %49 = load i32, ptr %40, align 1, !tbaa !16
  %50 = load i32, ptr %4, align 1, !tbaa !19
  %51 = shl i32 %49, 2
  %52 = mul i32 %51, %50
  %53 = zext i32 %52 to i64
  call void @libxsmm_x86_instruction_alu_imm(ptr noundef %0, i32 noundef %48, i32 noundef 14, i64 noundef %53) #3
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %0, i32 noundef -1568407413, i32 noundef 15, i32 noundef 127, i32 noundef 0, i32 noundef 32, i32 noundef 14, i32 noundef 1) #3
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef nonnull %2, i32 noundef 8, i32 noundef 14) #3
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %0, i32 noundef -1568407413, i32 noundef 15, i32 noundef 127, i32 noundef 0, i32 noundef 80, i32 noundef 14, i32 noundef 1) #3
  %54 = load i32, ptr %4, align 1, !tbaa !19
  %55 = add i32 %54, 15
  %56 = lshr i32 %55, 3
  %57 = and i32 %56, 536870910
  %58 = load i32, ptr %40, align 1, !tbaa !16
  %59 = getelementptr inbounds i8, ptr %4, i64 20
  %60 = load i32, ptr %59, align 1, !tbaa !20
  %61 = add i32 %60, 15
  %62 = lshr i32 %61, 3
  %63 = and i32 %62, 536870910
  %64 = call ptr @libxsmm_meltw_descriptor_init2(ptr noundef nonnull %9, i32 noundef 4, i32 noundef 15, i32 noundef 15, i32 noundef 4, i32 noundef 4, i32 noundef %57, i32 noundef %58, i32 noundef %57, i32 noundef %63, i32 noundef 0, i32 noundef 0, i16 noundef zeroext 0, i16 noundef zeroext 1, i8 noundef zeroext 1) #3
  call void @libxsmm_generator_mateltwise_init_micro_kernel_config_fullvector(ptr noundef %0, ptr noundef nonnull %10, ptr noundef %64) #3
  call void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %11, ptr noundef nonnull %10, ptr noundef %64) #3
  br label %65

65:                                               ; preds = %35, %46
  call void @libxsmm_x86_instruction_pop_reg(ptr noundef %0, i32 noundef 15) #3
  call void @libxsmm_x86_instruction_pop_reg(ptr noundef %0, i32 noundef 14) #3
  br i1 %.pre, label %66, label %87

66:                                               ; preds = %._crit_edge, %65
  call void @libxsmm_x86_instruction_push_reg(ptr noundef %0, i32 noundef 14) #3
  call void @libxsmm_x86_instruction_push_reg(ptr noundef %0, i32 noundef 15) #3
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef nonnull %2, i32 noundef 26, i32 noundef 15) #3
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef nonnull %2, i32 noundef 28, i32 noundef 14) #3
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %0, i32 noundef -1568407413, i32 noundef 15, i32 noundef 127, i32 noundef 0, i32 noundef 32, i32 noundef 14, i32 noundef 1) #3
  %67 = icmp eq i32 %5, 0
  br i1 %67, label %68, label %69

68:                                               ; preds = %66
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef nonnull %2, i32 noundef 29, i32 noundef 14) #3
  br label %69

69:                                               ; preds = %68, %66
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %0, i32 noundef -1568407413, i32 noundef 15, i32 noundef 127, i32 noundef 0, i32 noundef 80, i32 noundef 14, i32 noundef 1) #3
  %70 = load i32, ptr %4, align 1, !tbaa !19
  %71 = getelementptr inbounds i8, ptr %4, i64 4
  %72 = load i32, ptr %71, align 1, !tbaa !16
  %73 = getelementptr inbounds i8, ptr %3, i64 20
  %74 = load i32, ptr %73, align 1, !tbaa !20
  br i1 %67, label %75, label %.critedge

75:                                               ; preds = %69
  %76 = getelementptr inbounds i8, ptr %4, i64 20
  %77 = load i32, ptr %76, align 1, !tbaa !20
  %78 = call ptr @libxsmm_meltw_descriptor_init2(ptr noundef nonnull %9, i32 noundef 1, i32 noundef 15, i32 noundef 15, i32 noundef 1, i32 noundef %7, i32 noundef %70, i32 noundef %72, i32 noundef %74, i32 noundef %77, i32 noundef 0, i32 noundef 0, i16 noundef zeroext 0, i16 noundef zeroext 1, i8 noundef zeroext 1) #3
  call void @libxsmm_generator_mateltwise_init_micro_kernel_config_fullvector(ptr noundef %0, ptr noundef nonnull %10, ptr noundef %78) #3
  call void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %11, ptr noundef nonnull %10, ptr noundef %78) #3
  br label %86

.critedge:                                        ; preds = %69
  %79 = call ptr @libxsmm_meltw_descriptor_init2(ptr noundef nonnull %9, i32 noundef 1, i32 noundef 15, i32 noundef 15, i32 noundef 1, i32 noundef %7, i32 noundef %70, i32 noundef %72, i32 noundef %74, i32 noundef %74, i32 noundef 0, i32 noundef 0, i16 noundef zeroext 0, i16 noundef zeroext 1, i8 noundef zeroext 1) #3
  call void @libxsmm_generator_mateltwise_init_micro_kernel_config_fullvector(ptr noundef %0, ptr noundef nonnull %10, ptr noundef %79) #3
  call void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %11, ptr noundef nonnull %10, ptr noundef %79) #3
  call void @libxsmm_generator_gemm_getval_stack_var(ptr noundef %0, ptr noundef nonnull %2, i32 noundef 29, i32 noundef 14) #3
  call void @libxsmm_x86_instruction_alu_mem(ptr noundef %0, i32 noundef -1568407413, i32 noundef 15, i32 noundef 127, i32 noundef 0, i32 noundef 80, i32 noundef 14, i32 noundef 1) #3
  %80 = load i32, ptr %4, align 1, !tbaa !19
  %81 = load i32, ptr %71, align 1, !tbaa !16
  %82 = load i32, ptr %73, align 1, !tbaa !20
  %83 = getelementptr inbounds i8, ptr %4, i64 20
  %84 = load i32, ptr %83, align 1, !tbaa !20
  %85 = call ptr @libxsmm_meltw_descriptor_init2(ptr noundef nonnull %9, i32 noundef %7, i32 noundef 15, i32 noundef 15, i32 noundef %7, i32 noundef %7, i32 noundef %80, i32 noundef %81, i32 noundef %82, i32 noundef %84, i32 noundef 0, i32 noundef 0, i16 noundef zeroext 0, i16 noundef zeroext 54, i8 noundef zeroext 1) #3
  call void @libxsmm_generator_mateltwise_init_micro_kernel_config_fullvector(ptr noundef %0, ptr noundef nonnull %10, ptr noundef %85) #3
  call void @libxsmm_generator_transform_x86_microkernel(ptr noundef %0, ptr noundef %1, ptr noundef nonnull %11, ptr noundef nonnull %10, ptr noundef %85) #3
  br label %86

86:                                               ; preds = %75, %.critedge
  call void @libxsmm_x86_instruction_pop_reg(ptr noundef %0, i32 noundef 15) #3
  call void @libxsmm_x86_instruction_pop_reg(ptr noundef %0, i32 noundef 14) #3
  br label %87

87:                                               ; preds = %._crit_edge, %65, %86
  call void @llvm.lifetime.end.p0(i64 148, ptr nonnull %11) #3
  call void @llvm.lifetime.end.p0(i64 516, ptr nonnull %10) #3
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %9) #3
  ret void
}

declare void @libxsmm_generator_transform_x86_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr 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 = { mustprogress 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, !7, i64 0}
!6 = !{!"libxsmm_mateltwise_gp_reg_mapping_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 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 124}
!11 = !{!"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, !12, 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, !14, i64 592, !7, i64 600, !7, i64 604, !7, i64 608, !7, i64 612, !14, 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}
!12 = !{!"libxsmm_tile_config", !8, i64 0, !13, i64 2, !8, i64 4, !13, i64 6, !8, i64 8, !13, i64 10, !8, i64 12, !13, i64 14, !8, i64 16, !13, i64 18, !8, i64 20, !13, i64 22, !8, i64 24, !13, i64 26, !8, i64 28, !13, i64 30, !8, i64 32}
!13 = !{!"short", !8, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!11, !7, i64 64}
!16 = !{!17, !7, i64 4}
!17 = !{!"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, !18, i64 33, !18, i64 41, !8, i64 49, !7, i64 50, !7, i64 54, !7, i64 58, !13, i64 62, !13, i64 64, !8, i64 66, !8, i64 67, !8, i64 68, !8, i64 69, !13, i64 70, !13, i64 72, !13, i64 74, !13, i64 76, !13, i64 78, !13, i64 80, !7, i64 82, !7, i64 86, !7, i64 90, !8, i64 94}
!18 = !{!"long long", !8, i64 0}
!19 = !{!17, !7, i64 0}
!20 = !{!17, !7, i64 20}


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