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

; 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_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 }
%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 }>

@.str.1 = external hidden unnamed_addr constant [85 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [281 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_generator_gemm_apply_relu_fusion_2dregblock_aarch64_sve = external hidden unnamed_addr constant [279 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [306 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [316 x i8], align 1

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

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

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

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

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

65:                                               ; preds = %9
  %66 = load ptr, ptr %10, align 8, !tbaa !5
  %67 = load i32, ptr %31, align 4, !tbaa !9
  call void @libxsmm_generator_gemm_getval_stack_var_aarch64(ptr noundef %66, i32 noundef 8, i32 noundef %67)
  br label %68

68:                                               ; preds = %65, %9
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = load i32, ptr %30, align 4, !tbaa !9
  %71 = load i32, ptr %30, align 4, !tbaa !9
  %72 = load i32, ptr %30, align 4, !tbaa !9
  %73 = load i8, ptr %25, align 1, !tbaa !11
  %74 = zext i8 %73 to i32
  %75 = load i32, ptr %32, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %69, i32 noundef 77606915, i32 noundef %70, i32 noundef %71, i8 noundef zeroext 0, i32 noundef %72, i32 noundef %74, i32 noundef %75)
  store i32 0, ptr %19, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %236, %68
  %77 = load i32, ptr %19, align 4, !tbaa !9
  %78 = load i32, ptr %18, align 4, !tbaa !9
  %79 = icmp ult i32 %77, %78
  br i1 %79, label %80, label %239

80:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  store i32 0, ptr %33, align 4, !tbaa !9
  store i32 0, ptr %20, align 4, !tbaa !9
  br label %81

81:                                               ; preds = %213, %80
  %82 = load i32, ptr %20, align 4, !tbaa !9
  %83 = load i32, ptr %22, align 4, !tbaa !9
  %84 = icmp ult i32 %82, %83
  br i1 %84, label %85, label %216

85:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  %86 = load i32, ptr %23, align 4, !tbaa !9
  %87 = load i32, ptr %22, align 4, !tbaa !9
  %88 = load i32, ptr %19, align 4, !tbaa !9
  %89 = mul i32 %87, %88
  %90 = add i32 %86, %89
  %91 = load i32, ptr %20, align 4, !tbaa !9
  %92 = add i32 %90, %91
  store i32 %92, ptr %34, align 4, !tbaa !9
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %93, i32 0, i32 31
  %95 = load i32, ptr %94, align 4, !tbaa !12
  %96 = icmp eq i32 %95, 0
  br i1 %96, label %97, label %205

97:                                               ; preds = %85
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = load i32, ptr %34, align 4, !tbaa !9
  %100 = load i8, ptr %26, align 1, !tbaa !11
  %101 = zext i8 %100 to i32
  %102 = load i8, ptr %25, align 1, !tbaa !11
  %103 = zext i8 %102 to i32
  %104 = load i32, ptr %32, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %98, i32 noundef 1695555730, i32 noundef %99, i32 noundef 127, i8 noundef zeroext 0, i32 noundef %101, i32 noundef %103, i32 noundef %104)
  %105 = load ptr, ptr %10, align 8, !tbaa !5
  %106 = load i32, ptr %17, align 4, !tbaa !9
  %107 = load i32, ptr %20, align 4, !tbaa !9
  %108 = load i32, ptr %22, align 4, !tbaa !9
  %109 = load i32, ptr %29, align 4, !tbaa !9
  %110 = trunc i32 %109 to i8
  %111 = zext i8 %110 to i32
  %112 = icmp eq i32 0, %111
  br i1 %112, label %118, label %113

113:                                              ; preds = %97
  %114 = load i32, ptr %29, align 4, !tbaa !9
  %115 = trunc i32 %114 to i8
  %116 = zext i8 %115 to i32
  %117 = icmp slt i32 0, %116
  br i1 %117, label %118, label %136

118:                                              ; preds = %113, %97
  %119 = load i32, ptr %29, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = mul i64 1, %120
  %122 = icmp ult i64 %121, 255
  br i1 %122, label %123, label %127

123:                                              ; preds = %118
  %124 = load i32, ptr %29, align 4, !tbaa !9
  %125 = zext i32 %124 to i64
  %126 = mul i64 1, %125
  br label %128

127:                                              ; preds = %118
  br label %128

128:                                              ; preds = %127, %123
  %129 = phi i64 [ %126, %123 ], [ 255, %127 ]
  %130 = icmp ule i64 %129, 255
  br i1 %130, label %131, label %136

131:                                              ; preds = %128
  %132 = load i32, ptr %29, align 4, !tbaa !9
  %133 = uitofp i32 %132 to double
  %134 = fcmp ole double 0.000000e+00, %133
  br i1 %134, label %135, label %136

135:                                              ; preds = %131
  br label %137

136:                                              ; preds = %131, %128, %113
  call void @__assert_fail(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 657, ptr noundef @__PRETTY_FUNCTION__.libxsmm_generator_gemm_apply_relu_fusion_2dregblock_aarch64_sve) #6
  unreachable

137:                                              ; preds = %135
  %138 = load i32, ptr %29, align 4, !tbaa !9
  %139 = trunc i32 %138 to i8
  %140 = load i32, ptr %31, align 4, !tbaa !9
  %141 = trunc i32 %140 to i8
  %142 = zext i8 %141 to i32
  %143 = icmp eq i32 0, %142
  br i1 %143, label %149, label %144

144:                                              ; preds = %137
  %145 = load i32, ptr %31, align 4, !tbaa !9
  %146 = trunc i32 %145 to i8
  %147 = zext i8 %146 to i32
  %148 = icmp slt i32 0, %147
  br i1 %148, label %149, label %167

149:                                              ; preds = %144, %137
  %150 = load i32, ptr %31, align 4, !tbaa !9
  %151 = zext i32 %150 to i64
  %152 = mul i64 1, %151
  %153 = icmp ult i64 %152, 255
  br i1 %153, label %154, label %158

154:                                              ; preds = %149
  %155 = load i32, ptr %31, align 4, !tbaa !9
  %156 = zext i32 %155 to i64
  %157 = mul i64 1, %156
  br label %159

158:                                              ; preds = %149
  br label %159

159:                                              ; preds = %158, %154
  %160 = phi i64 [ %157, %154 ], [ 255, %158 ]
  %161 = icmp ule i64 %160, 255
  br i1 %161, label %162, label %167

162:                                              ; preds = %159
  %163 = load i32, ptr %31, align 4, !tbaa !9
  %164 = uitofp i32 %163 to double
  %165 = fcmp ole double 0.000000e+00, %164
  br i1 %165, label %166, label %167

166:                                              ; preds = %162
  br label %168

167:                                              ; preds = %162, %159, %144
  call void @__assert_fail(ptr noundef @.str.7, ptr noundef @.str.1, i32 noundef 657, ptr noundef @__PRETTY_FUNCTION__.libxsmm_generator_gemm_apply_relu_fusion_2dregblock_aarch64_sve) #6
  unreachable

168:                                              ; preds = %166
  %169 = load i32, ptr %31, align 4, !tbaa !9
  %170 = trunc i32 %169 to i8
  %171 = load i8, ptr %26, align 1, !tbaa !11
  %172 = load i8, ptr %27, align 1, !tbaa !11
  %173 = load i8, ptr %28, align 1, !tbaa !11
  %174 = load i32, ptr %14, align 4, !tbaa !9
  %175 = trunc i32 %174 to i8
  %176 = zext i8 %175 to i32
  %177 = icmp eq i32 0, %176
  br i1 %177, label %183, label %178

178:                                              ; preds = %168
  %179 = load i32, ptr %14, align 4, !tbaa !9
  %180 = trunc i32 %179 to i8
  %181 = zext i8 %180 to i32
  %182 = icmp slt i32 0, %181
  br i1 %182, label %183, label %201

183:                                              ; preds = %178, %168
  %184 = load i32, ptr %14, align 4, !tbaa !9
  %185 = zext i32 %184 to i64
  %186 = mul i64 1, %185
  %187 = icmp ult i64 %186, 255
  br i1 %187, label %188, label %192

188:                                              ; preds = %183
  %189 = load i32, ptr %14, align 4, !tbaa !9
  %190 = zext i32 %189 to i64
  %191 = mul i64 1, %190
  br label %193

192:                                              ; preds = %183
  br label %193

193:                                              ; preds = %192, %188
  %194 = phi i64 [ %191, %188 ], [ 255, %192 ]
  %195 = icmp ule i64 %194, 255
  br i1 %195, label %196, label %201

196:                                              ; preds = %193
  %197 = load i32, ptr %14, align 4, !tbaa !9
  %198 = uitofp i32 %197 to double
  %199 = fcmp ole double 0.000000e+00, %198
  br i1 %199, label %200, label %201

200:                                              ; preds = %196
  br label %202

201:                                              ; preds = %196, %193, %178
  call void @__assert_fail(ptr noundef @.str.8, ptr noundef @.str.1, i32 noundef 658, ptr noundef @__PRETTY_FUNCTION__.libxsmm_generator_gemm_apply_relu_fusion_2dregblock_aarch64_sve) #6
  unreachable

202:                                              ; preds = %200
  %203 = load i32, ptr %14, align 4, !tbaa !9
  %204 = trunc i32 %203 to i8
  call void @libxsmm_generator_unary_binary_aarch64_store_bitmask_2bytemult_sve(ptr noundef %105, i32 noundef %106, i32 noundef %107, i32 noundef %108, i8 noundef zeroext %139, i8 noundef zeroext %170, i8 noundef zeroext %171, i8 noundef zeroext %172, i8 noundef zeroext %173, i8 noundef zeroext %204, ptr noundef %33)
  br label %205

205:                                              ; preds = %202, %85
  %206 = load ptr, ptr %10, align 8, !tbaa !5
  %207 = load i32, ptr %34, align 4, !tbaa !9
  %208 = load i32, ptr %30, align 4, !tbaa !9
  %209 = load i32, ptr %34, align 4, !tbaa !9
  %210 = load i8, ptr %25, align 1, !tbaa !11
  %211 = zext i8 %210 to i32
  %212 = load i32, ptr %32, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %206, i32 noundef 1694924962, i32 noundef %207, i32 noundef %208, i8 noundef zeroext 0, i32 noundef %209, i32 noundef %211, i32 noundef %212)
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  br label %213

213:                                              ; preds = %205
  %214 = load i32, ptr %20, align 4, !tbaa !9
  %215 = add i32 %214, 1
  store i32 %215, ptr %20, align 4, !tbaa !9
  br label %81, !llvm.loop !16

216:                                              ; preds = %81
  %217 = load ptr, ptr %12, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %217, i32 0, i32 31
  %219 = load i32, ptr %218, align 4, !tbaa !12
  %220 = icmp eq i32 %219, 0
  br i1 %220, label %221, label %235

221:                                              ; preds = %216
  %222 = load ptr, ptr %10, align 8, !tbaa !5
  %223 = load i32, ptr %31, align 4, !tbaa !9
  %224 = load i32, ptr %14, align 4, !tbaa !9
  %225 = load i32, ptr %31, align 4, !tbaa !9
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  %227 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %226, i32 0, i32 30
  %228 = load i32, ptr %227, align 1, !tbaa !18
  %229 = zext i32 %228 to i64
  %230 = load i32, ptr %33, align 4, !tbaa !9
  %231 = zext i32 %230 to i64
  %232 = mul nsw i64 %231, 8
  %233 = sub nsw i64 %229, %232
  %234 = sdiv i64 %233, 8
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %222, i32 noundef 4096, i32 noundef %223, i32 noundef %224, i32 noundef %225, i64 noundef %234)
  br label %235

235:                                              ; preds = %221, %216
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  br label %236

236:                                              ; preds = %235
  %237 = load i32, ptr %19, align 4, !tbaa !9
  %238 = add i32 %237, 1
  store i32 %238, ptr %19, align 4, !tbaa !9
  br label %76, !llvm.loop !21

239:                                              ; preds = %76
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  ret void
}

declare void @libxsmm_aarch64_instruction_sve_compute(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext, i32 noundef, i32 noundef, i32 noundef) #2

declare void @libxsmm_generator_unary_binary_aarch64_store_bitmask_2bytemult_sve(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 = { noreturn nounwind "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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 124}
!13 = !{!"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, !14, 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}
!14 = !{!"libxsmm_tile_config", !7, i64 0, !15, i64 2, !7, i64 4, !15, i64 6, !7, i64 8, !15, i64 10, !7, i64 12, !15, i64 14, !7, i64 16, !15, i64 18, !7, i64 20, !15, i64 22, !7, i64 24, !15, i64 26, !7, i64 28, !15, i64 30, !7, i64 32}
!15 = !{!"short", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !10, i64 90}
!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, !15, i64 62, !15, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !15, i64 70, !15, i64 72, !15, i64 74, !15, i64 76, !15, i64 78, !15, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !7, i64 94}
!20 = !{!"long long", !7, i64 0}
!21 = distinct !{!21, !17}


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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_apply_relu_fusion_2dregblock_aarch64_sve(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8) local_unnamed_addr #1 {
  %10 = alloca i32, align 4
  %11 = udiv i32 %7, %5
  %12 = urem i32 %7, %5
  %13 = icmp ne i32 %12, 0
  %14 = zext i1 %13 to i32
  %15 = add i32 %11, %14
  %16 = mul i32 %15, %8
  %17 = sub i32 %6, %16
  %18 = add i32 %17, -2
  %19 = getelementptr inbounds i8, ptr %2, i64 124
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %23

22:                                               ; preds = %9
  tail call void @libxsmm_generator_gemm_getval_stack_var_aarch64(ptr noundef %0, i32 noundef 8, i32 noundef %3)
  br label %23

23:                                               ; preds = %22, %9
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %0, i32 noundef 77606915, i32 noundef %18, i32 noundef %18, i8 noundef zeroext 0, i32 noundef %18, i32 noundef 0, i32 noundef 2) #3
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %._crit_edge78, label %.lr.ph77

.lr.ph77:                                         ; preds = %23
  %.not80 = icmp eq i32 %15, 0
  %24 = trunc i32 %17 to i8
  %25 = add i8 %24, -1
  %26 = trunc i32 %3 to i8
  %27 = trunc i32 %4 to i8
  %28 = getelementptr inbounds i8, ptr %1, i64 90
  br i1 %.not80, label %.lr.ph77.split, label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph77, %39
  %.075.us = phi i32 [ %40, %39 ], [ 0, %.lr.ph77 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  store i32 0, ptr %10, align 4, !tbaa !13
  %29 = mul i32 %.075.us, %15
  %30 = add i32 %29, %17
  br label %41

31:                                               ; preds = %._crit_edge.us
  %32 = load i32, ptr %28, align 1, !tbaa !14
  %33 = zext i32 %32 to i64
  %34 = load i32, ptr %10, align 4, !tbaa !13
  %35 = zext i32 %34 to i64
  %36 = shl nuw nsw i64 %35, 3
  %37 = sub nsw i64 %33, %36
  %38 = sdiv i64 %37, 8
  call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4096, i32 noundef %3, i32 noundef %4, i32 noundef %3, i64 noundef %38) #3
  br label %39

39:                                               ; preds = %31, %._crit_edge.us
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  %40 = add nuw i32 %.075.us, 1
  %exitcond.not = icmp eq i32 %40, %8
  br i1 %exitcond.not, label %._crit_edge78, label %.lr.ph.us, !llvm.loop !17

41:                                               ; preds = %.lr.ph.us, %46
  %.07274.us = phi i32 [ 0, %.lr.ph.us ], [ %47, %46 ]
  %42 = add i32 %30, %.07274.us
  %43 = load i32, ptr %19, align 4, !tbaa !5
  %44 = icmp eq i32 %43, 0
  br i1 %44, label %45, label %46

45:                                               ; preds = %41
  call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %0, i32 noundef 1695555730, i32 noundef %42, i32 noundef 127, i8 noundef zeroext 0, i32 noundef 6, i32 noundef 0, i32 noundef 2) #3
  call void @libxsmm_generator_unary_binary_aarch64_store_bitmask_2bytemult_sve(ptr noundef %0, i32 noundef %7, i32 noundef %.07274.us, i32 noundef %15, i8 noundef zeroext %25, i8 noundef zeroext %26, i8 noundef zeroext 6, i8 noundef zeroext 5, i8 noundef zeroext 7, i8 noundef zeroext %27, ptr noundef nonnull %10) #3
  br label %46

46:                                               ; preds = %45, %41
  call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %0, i32 noundef 1694924962, i32 noundef %42, i32 noundef %18, i8 noundef zeroext 0, i32 noundef %42, i32 noundef 0, i32 noundef 2) #3
  %47 = add nuw i32 %.07274.us, 1
  %48 = icmp ult i32 %47, %15
  br i1 %48, label %41, label %._crit_edge.us, !llvm.loop !19

._crit_edge.us:                                   ; preds = %46
  %49 = load i32, ptr %19, align 4, !tbaa !5
  %50 = icmp eq i32 %49, 0
  br i1 %50, label %31, label %39

.lr.ph77.split:                                   ; preds = %.lr.ph77
  %51 = load i32, ptr %19, align 4, !tbaa !5
  %52 = icmp eq i32 %51, 0
  br i1 %52, label %.lr.ph77.split.split, label %._crit_edge78

.lr.ph77.split.splitthread-pre-split:             ; preds = %59
  %.pr = load i32, ptr %19, align 4, !tbaa !5
  br label %.lr.ph77.split.split

.lr.ph77.split.split:                             ; preds = %.lr.ph77.split, %.lr.ph77.split.splitthread-pre-split
  %53 = phi i32 [ %.pr, %.lr.ph77.split.splitthread-pre-split ], [ 0, %.lr.ph77.split ]
  %.075 = phi i32 [ %60, %.lr.ph77.split.splitthread-pre-split ], [ 0, %.lr.ph77.split ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #3
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %59

55:                                               ; preds = %.lr.ph77.split.split
  %56 = load i32, ptr %28, align 1, !tbaa !14
  %57 = lshr i32 %56, 3
  %58 = zext nneg i32 %57 to i64
  tail call void @libxsmm_aarch64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 4096, i32 noundef %3, i32 noundef %4, i32 noundef %3, i64 noundef %58) #3
  br label %59

59:                                               ; preds = %55, %.lr.ph77.split.split
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #3
  %60 = add nuw i32 %.075, 1
  %exitcond84.not = icmp eq i32 %60, %8
  br i1 %exitcond84.not, label %._crit_edge78, label %.lr.ph77.split.splitthread-pre-split, !llvm.loop !20

._crit_edge78:                                    ; preds = %39, %59, %.lr.ph77.split, %23
  ret void
}

declare void @libxsmm_aarch64_instruction_sve_compute(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @libxsmm_generator_unary_binary_aarch64_store_bitmask_2bytemult_sve(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, i8 noundef zeroext, ptr noundef) local_unnamed_addr #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { "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 124}
!6 = !{!"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, !10, 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, !12, i64 592, !7, i64 600, !7, i64 604, !7, i64 608, !7, i64 612, !12, 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}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"libxsmm_tile_config", !8, i64 0, !11, i64 2, !8, i64 4, !11, i64 6, !8, i64 8, !11, i64 10, !8, i64 12, !11, i64 14, !8, i64 16, !11, i64 18, !8, i64 20, !11, i64 22, !8, i64 24, !11, i64 26, !8, i64 28, !11, i64 30, !8, i64 32}
!11 = !{!"short", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !7, i64 90}
!15 = !{!"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, !16, i64 33, !16, i64 41, !8, i64 49, !7, i64 50, !7, i64 54, !7, i64 58, !11, i64 62, !11, i64 64, !8, i64 66, !8, i64 67, !8, i64 68, !8, i64 69, !11, i64 70, !11, i64 72, !11, i64 74, !11, i64 76, !11, i64 78, !11, i64 80, !7, i64 82, !7, i64 86, !7, i64 90, !8, i64 94}
!16 = !{!"long long", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18, !21}
!21 = !{!"llvm.loop.unswitch.partial.disable"}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass