; LLVM IR from libxsmm/libxsmm :: src (generator_mateltwise_unary_binary_avx_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 }

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

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

declare i32 @libxsmm_meltw_getenum_precision(ptr noundef, i32 noundef) #1

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

declare void @libxsmm_generator_store_prng_state_avx_avx512(ptr noundef, i8 noundef zeroext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_finalize_kernel_vregs_masks(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) #2 {
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store i32 %3, ptr %10, align 4, !tbaa !9
  store i32 %4, ptr %11, align 4, !tbaa !9
  store i32 %5, ptr %12, align 4, !tbaa !9
  %14 = load ptr, ptr %9, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %14, i32 0, i32 11
  %16 = load i8, ptr %15, align 1, !tbaa !11
  %17 = zext i8 %16 to i32
  %18 = icmp eq i32 %17, 1
  br i1 %18, label %19, label %33

19:                                               ; preds = %6
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %22, i32 0, i32 10
  %24 = load i16, ptr %23, align 1, !tbaa !14
  %25 = zext i16 %24 to i32
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %26, i32 0, i32 9
  %28 = load i16, ptr %27, align 1, !tbaa !15
  %29 = zext i16 %28 to i32
  %30 = load i32, ptr %10, align 4, !tbaa !9
  %31 = load i32, ptr %11, align 4, !tbaa !9
  %32 = load i32, ptr %12, align 4, !tbaa !9
  call void @libxsmm_finalize_unary_kernel_vregs_masks(ptr noundef %20, ptr noundef %21, i32 noundef %25, i32 noundef %29, i32 noundef %30, i32 noundef %31, i32 noundef %32)
  br label %33

33:                                               ; preds = %19, %6
  %34 = load ptr, ptr %9, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %34, i32 0, i32 11
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %37 = zext i8 %36 to i32
  %38 = icmp eq i32 %37, 2
  br i1 %38, label %45, label %39

39:                                               ; preds = %33
  %40 = load ptr, ptr %9, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %40, i32 0, i32 11
  %42 = load i8, ptr %41, align 1, !tbaa !11
  %43 = zext i8 %42 to i32
  %44 = icmp eq i32 %43, 3
  br i1 %44, label %45, label %95

45:                                               ; preds = %39, %33
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %46, i32 0, i32 11
  %48 = load i8, ptr %47, align 1, !tbaa !11
  %49 = zext i8 %48 to i32
  %50 = icmp eq i32 %49, 2
  br i1 %50, label %51, label %58

51:                                               ; preds = %45
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %52, i32 0, i32 9
  %54 = load i16, ptr %53, align 1, !tbaa !15
  %55 = zext i16 %54 to i32
  %56 = and i32 %55, 64
  %57 = icmp sgt i32 %56, 0
  br i1 %57, label %71, label %58

58:                                               ; preds = %51, %45
  %59 = load ptr, ptr %9, align 8, !tbaa !5
  %60 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %59, i32 0, i32 11
  %61 = load i8, ptr %60, align 1, !tbaa !11
  %62 = zext i8 %61 to i32
  %63 = icmp eq i32 %62, 3
  br i1 %63, label %64, label %94

64:                                               ; preds = %58
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %65, i32 0, i32 9
  %67 = load i16, ptr %66, align 1, !tbaa !15
  %68 = zext i16 %67 to i32
  %69 = and i32 %68, 2048
  %70 = icmp sgt i32 %69, 0
  br i1 %70, label %71, label %94

71:                                               ; preds = %64, %51
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #3
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %72, i32 0, i32 6
  %74 = load i32, ptr %73, align 4, !tbaa !16
  %75 = icmp ult i32 %74, 1101
  %76 = zext i1 %75 to i64
  %77 = select i1 %75, i32 121, i32 122
  %78 = trunc i32 %77 to i8
  store i8 %78, ptr %13, align 1, !tbaa !18
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  %80 = load i8, ptr %13, align 1, !tbaa !18
  %81 = load i32, ptr %11, align 4, !tbaa !9
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %82, i32 0, i32 103
  %84 = load i32, ptr %83, align 4, !tbaa !19
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %85, i32 0, i32 104
  %87 = load i32, ptr %86, align 4, !tbaa !21
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %88, i32 0, i32 105
  %90 = load i32, ptr %89, align 4, !tbaa !22
  %91 = load ptr, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %91, i32 0, i32 106
  %93 = load i32, ptr %92, align 4, !tbaa !23
  call void @libxsmm_generator_store_prng_state_avx_avx512(ptr noundef %79, i8 noundef zeroext %80, i32 noundef %81, i32 noundef %84, i32 noundef %87, i32 noundef %90, i32 noundef %93)
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #3
  br label %94

94:                                               ; preds = %71, %64, %58
  br label %95

95:                                               ; preds = %94, %39
  %96 = load ptr, ptr %9, align 8, !tbaa !5
  %97 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %96, i32 noundef 4)
  %98 = icmp eq i32 1, %97
  br i1 %98, label %103, label %99

99:                                               ; preds = %95
  %100 = load ptr, ptr %9, align 8, !tbaa !5
  %101 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %100, i32 noundef 0)
  %102 = icmp eq i32 1, %101
  br i1 %102, label %103, label %120

103:                                              ; preds = %99, %95
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %104, i32 noundef 3)
  %106 = icmp eq i32 4, %105
  br i1 %106, label %107, label %120

107:                                              ; preds = %103
  %108 = load ptr, ptr %7, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %108, i32 0, i32 6
  %110 = load i32, ptr %109, align 4, !tbaa !16
  %111 = icmp uge i32 %110, 1051
  br i1 %111, label %112, label %120

112:                                              ; preds = %107
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %113, i32 0, i32 6
  %115 = load i32, ptr %114, align 4, !tbaa !16
  %116 = icmp ule i32 %115, 1999
  br i1 %116, label %117, label %120

117:                                              ; preds = %112
  %118 = load ptr, ptr %7, align 8, !tbaa !5
  %119 = load i32, ptr %10, align 4, !tbaa !9
  call void @libxsmm_generator_vcvtneps2bf8_avx512_clean_stack(ptr noundef %118, i32 noundef %119)
  br label %177

120:                                              ; preds = %112, %107, %103, %99
  %121 = load ptr, ptr %9, align 8, !tbaa !5
  %122 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %121, i32 noundef 4)
  %123 = icmp eq i32 1, %122
  br i1 %123, label %124, label %142

124:                                              ; preds = %120
  %125 = load ptr, ptr %9, align 8, !tbaa !5
  %126 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %125, i32 noundef 0)
  %127 = icmp eq i32 5, %126
  br i1 %127, label %132, label %128

128:                                              ; preds = %124
  %129 = load ptr, ptr %9, align 8, !tbaa !5
  %130 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %129, i32 noundef 1)
  %131 = icmp eq i32 5, %130
  br i1 %131, label %132, label %142

132:                                              ; preds = %128, %124
  %133 = load ptr, ptr %7, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %133, i32 0, i32 6
  %135 = load i32, ptr %134, align 4, !tbaa !16
  %136 = icmp uge i32 %135, 1051
  br i1 %136, label %137, label %142

137:                                              ; preds = %132
  %138 = load ptr, ptr %7, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %138, i32 0, i32 6
  %140 = load i32, ptr %139, align 4, !tbaa !16
  %141 = icmp ule i32 %140, 1999
  br i1 %141, label %164, label %142

142:                                              ; preds = %137, %132, %128, %120
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %143, i32 noundef 4)
  %145 = icmp eq i32 1, %144
  br i1 %145, label %150, label %146

146:                                              ; preds = %142
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %147, i32 noundef 0)
  %149 = icmp eq i32 1, %148
  br i1 %149, label %150, label %167

150:                                              ; preds = %146, %142
  %151 = load ptr, ptr %9, align 8, !tbaa !5
  %152 = call i32 @libxsmm_meltw_getenum_precision(ptr noundef %151, i32 noundef 3)
  %153 = icmp eq i32 5, %152
  br i1 %153, label %154, label %167

154:                                              ; preds = %150
  %155 = load ptr, ptr %7, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %155, i32 0, i32 6
  %157 = load i32, ptr %156, align 4, !tbaa !16
  %158 = icmp uge i32 %157, 1051
  br i1 %158, label %159, label %167

159:                                              ; preds = %154
  %160 = load ptr, ptr %7, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %160, i32 0, i32 6
  %162 = load i32, ptr %161, align 4, !tbaa !16
  %163 = icmp ule i32 %162, 1999
  br i1 %163, label %164, label %167

164:                                              ; preds = %159, %137
  %165 = load ptr, ptr %7, align 8, !tbaa !5
  %166 = load i32, ptr %10, align 4, !tbaa !9
  call void @libxsmm_generator_vcvt_hf8_tofrom_f32_avx512_clean_stack(ptr noundef %165, i32 noundef %166)
  br label %176

167:                                              ; preds = %159, %154, %150, %146
  %168 = load ptr, ptr %8, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %168, i32 0, i32 20
  %170 = load i32, ptr %169, align 4, !tbaa !24
  %171 = icmp eq i32 %170, 1
  br i1 %171, label %172, label %175

172:                                              ; preds = %167
  %173 = load ptr, ptr %7, align 8, !tbaa !5
  %174 = load i32, ptr %10, align 4, !tbaa !9
  call void @libxsmm_generator_vcvtneps2bf16_avx512_clean_stack(ptr noundef %173, i32 noundef %174)
  br label %175

175:                                              ; preds = %172, %167
  br label %176

176:                                              ; preds = %175, %164
  br label %177

177:                                              ; preds = %176, %117
  ret void
}

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

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

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

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, !7, i64 31}
!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, !13, i64 29}
!15 = !{!12, !13, i64 27}
!16 = !{!17, !10, i64 28}
!17 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!18 = !{!7, !7, i64 0}
!19 = !{!20, !10, i64 412}
!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 416}
!22 = !{!20, !10, i64 420}
!23 = !{!20, !10, i64 424}
!24 = !{!20, !10, i64 80}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

declare i32 @libxsmm_meltw_getenum_precision(ptr noundef, i32 noundef) local_unnamed_addr #0

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

declare void @libxsmm_generator_store_prng_state_avx_avx512(ptr noundef, i8 noundef zeroext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_finalize_kernel_vregs_masks(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5) local_unnamed_addr #1 {
  %7 = getelementptr inbounds i8, ptr %2, i64 31
  %8 = load i8, ptr %7, align 1, !tbaa !5
  %9 = icmp eq i8 %8, 1
  br i1 %9, label %10, label %17

10:                                               ; preds = %6
  %11 = getelementptr inbounds i8, ptr %2, i64 29
  %12 = load i16, ptr %11, align 1, !tbaa !11
  %13 = zext i16 %12 to i32
  %14 = getelementptr inbounds i8, ptr %2, i64 27
  %15 = load i16, ptr %14, align 1, !tbaa !12
  %16 = zext i16 %15 to i32
  tail call void @libxsmm_finalize_unary_kernel_vregs_masks(ptr noundef %0, ptr noundef %1, i32 noundef %13, i32 noundef %16, i32 noundef %3, i32 noundef %4, i32 noundef %5)
  %.pr = load i8, ptr %7, align 1, !tbaa !5
  br label %17

17:                                               ; preds = %10, %6
  %18 = phi i8 [ %.pr, %10 ], [ %8, %6 ]
  %19 = and i8 %18, -2
  %switch = icmp eq i8 %19, 2
  br i1 %switch, label %20, label %41

20:                                               ; preds = %17
  %21 = icmp eq i8 %18, 2
  %22 = getelementptr inbounds i8, ptr %2, i64 27
  %23 = load i16, ptr %22, align 1, !tbaa !12
  br i1 %21, label %24, label %26

24:                                               ; preds = %20
  %25 = and i16 %23, 64
  %.not = icmp eq i16 %25, 0
  br i1 %.not, label %41, label %28

26:                                               ; preds = %20
  %27 = and i16 %23, 2048
  %.not46 = icmp eq i16 %27, 0
  br i1 %.not46, label %41, label %28

28:                                               ; preds = %26, %24
  %29 = getelementptr inbounds i8, ptr %0, i64 28
  %30 = load i32, ptr %29, align 4, !tbaa !13
  %31 = icmp ult i32 %30, 1101
  %32 = select i1 %31, i8 121, i8 122
  %33 = getelementptr inbounds i8, ptr %1, i64 412
  %34 = load i32, ptr %33, align 4, !tbaa !16
  %35 = getelementptr inbounds i8, ptr %1, i64 416
  %36 = load i32, ptr %35, align 4, !tbaa !18
  %37 = getelementptr inbounds i8, ptr %1, i64 420
  %38 = load i32, ptr %37, align 4, !tbaa !19
  %39 = getelementptr inbounds i8, ptr %1, i64 424
  %40 = load i32, ptr %39, align 4, !tbaa !20
  tail call void @libxsmm_generator_store_prng_state_avx_avx512(ptr noundef %0, i8 noundef zeroext %32, i32 noundef %4, i32 noundef %34, i32 noundef %36, i32 noundef %38, i32 noundef %40) #2
  br label %41

41:                                               ; preds = %24, %17, %26, %28
  %42 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %2, i32 noundef 4) #2
  %43 = icmp eq i32 %42, 1
  br i1 %43, label %47, label %44

44:                                               ; preds = %41
  %45 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %2, i32 noundef 0) #2
  %46 = icmp eq i32 %45, 1
  br i1 %46, label %47, label %55

47:                                               ; preds = %44, %41
  %48 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %2, i32 noundef 3) #2
  %49 = icmp eq i32 %48, 4
  br i1 %49, label %50, label %55

50:                                               ; preds = %47
  %51 = getelementptr inbounds i8, ptr %0, i64 28
  %52 = load i32, ptr %51, align 4, !tbaa !13
  %53 = add i32 %52, -1051
  %or.cond = icmp ult i32 %53, 949
  br i1 %or.cond, label %54, label %55

54:                                               ; preds = %50
  tail call void @libxsmm_generator_vcvtneps2bf8_avx512_clean_stack(ptr noundef nonnull %0, i32 noundef %3) #2
  br label %87

55:                                               ; preds = %50, %47, %44
  %56 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %2, i32 noundef 4) #2
  %57 = icmp eq i32 %56, 1
  br i1 %57, label %58, label %68

58:                                               ; preds = %55
  %59 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %2, i32 noundef 0) #2
  %60 = icmp eq i32 %59, 5
  br i1 %60, label %64, label %61

61:                                               ; preds = %58
  %62 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %2, i32 noundef 1) #2
  %63 = icmp eq i32 %62, 5
  br i1 %63, label %64, label %68

64:                                               ; preds = %61, %58
  %65 = getelementptr inbounds i8, ptr %0, i64 28
  %66 = load i32, ptr %65, align 4, !tbaa !13
  %67 = add i32 %66, -1051
  %or.cond47 = icmp ult i32 %67, 949
  br i1 %or.cond47, label %81, label %68

68:                                               ; preds = %64, %61, %55
  %69 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %2, i32 noundef 4) #2
  %70 = icmp eq i32 %69, 1
  br i1 %70, label %74, label %71

71:                                               ; preds = %68
  %72 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %2, i32 noundef 0) #2
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %74, label %82

74:                                               ; preds = %71, %68
  %75 = tail call i32 @libxsmm_meltw_getenum_precision(ptr noundef nonnull %2, i32 noundef 3) #2
  %76 = icmp eq i32 %75, 5
  br i1 %76, label %77, label %82

77:                                               ; preds = %74
  %78 = getelementptr inbounds i8, ptr %0, i64 28
  %79 = load i32, ptr %78, align 4, !tbaa !13
  %80 = add i32 %79, -1051
  %or.cond48 = icmp ult i32 %80, 949
  br i1 %or.cond48, label %81, label %82

81:                                               ; preds = %77, %64
  tail call void @libxsmm_generator_vcvt_hf8_tofrom_f32_avx512_clean_stack(ptr noundef nonnull %0, i32 noundef %3) #2
  br label %87

82:                                               ; preds = %77, %74, %71
  %83 = getelementptr inbounds i8, ptr %1, i64 80
  %84 = load i32, ptr %83, align 4, !tbaa !21
  %85 = icmp eq i32 %84, 1
  br i1 %85, label %86, label %87

86:                                               ; preds = %82
  tail call void @libxsmm_generator_vcvtneps2bf16_avx512_clean_stack(ptr noundef %0, i32 noundef %3) #2
  br label %87

87:                                               ; preds = %81, %86, %82, %54
  ret void
}

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

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

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !8, i64 31}
!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, !10, i64 29}
!12 = !{!6, !10, i64 27}
!13 = !{!14, !7, i64 28}
!14 = !{!"libxsmm_generated_code", !15, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!17, !7, i64 412}
!17 = !{!"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}
!18 = !{!17, !7, i64 416}
!19 = !{!17, !7, i64 420}
!20 = !{!17, !7, i64 424}
!21 = !{!17, !7, i64 80}


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