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

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

@libxsmm_generator_gemm_rv64_microkernel_rvv.fp_regid = external hidden global [20 x i32], align 16
@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [75 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_generator_gemm_rv64_microkernel_rvv = external hidden unnamed_addr constant [279 x i8], align 1
@__func__.libxsmm_generator_gemm_rv64_microkernel_rvv = external hidden unnamed_addr constant [44 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_rv64_microkernel_rvv(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) #0 {
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %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 i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca [2 x i32], align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i64, align 8
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca i32, align 4
  %39 = alloca i32, align 4
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store i32 %4, ptr %15, align 4, !tbaa !9
  store i32 %5, ptr %16, align 4, !tbaa !9
  store i32 %6, ptr %17, align 4, !tbaa !9
  store i32 %7, ptr %18, align 4, !tbaa !9
  store i32 %8, ptr %19, align 4, !tbaa !9
  store i32 %9, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  store i32 0, ptr %21, align 4, !tbaa !9
  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 8, ptr %23) #5
  call void @llvm.memset.p0.i64(ptr align 4 %23, i8 0, i64 8, i1 false)
  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 4, ptr %25) #5
  store i32 0, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #5
  store i32 0, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %45 = load ptr, ptr %14, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %45, i32 0, i32 4
  %47 = load i32, ptr %46, align 1, !tbaa !11
  store i32 %47, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #5
  store i32 0, ptr %28, align 4, !tbaa !9
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #5
  store i32 0, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #5
  store i32 0, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #5
  store i32 1, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #5
  store i32 9999, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #5
  store i32 9999, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #5
  store i32 9999, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #5
  store i32 805306455, ptr %38, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %39) #5
  store i32 9999, ptr %39, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #5
  store i32 1577078871, ptr %40, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #5
  store i32 9999, ptr %41, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #5
  store i32 1, ptr %42, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #5
  store i32 1, ptr %43, align 4, !tbaa !9
  %48 = load i32, ptr %42, align 4, !tbaa !9
  %49 = load i32, ptr %38, align 4, !tbaa !9
  %50 = load i32, ptr %39, align 4, !tbaa !9
  %51 = load i32, ptr %40, align 4, !tbaa !9
  %52 = load i32, ptr %33, align 4, !tbaa !9
  %53 = load i64, ptr %31, align 8, !tbaa !15
  %54 = load i32, ptr %28, align 4, !tbaa !9
  %55 = load i32, ptr %29, align 4, !tbaa !9
  %56 = load i32, ptr %35, align 4, !tbaa !9
  %57 = load i32, ptr %36, align 4, !tbaa !9
  %58 = load i32, ptr %37, align 4, !tbaa !9
  %59 = load i32, ptr %41, align 4, !tbaa !9
  %60 = load i32, ptr %25, align 4, !tbaa !9
  %61 = load ptr, ptr %13, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %61, i32 0, i32 3
  %63 = load i32, ptr %62, align 4, !tbaa !17
  %64 = icmp eq i32 %63, 8
  %65 = zext i1 %64 to i64
  %66 = select i1 %64, i32 28679, i32 24583
  store i32 %66, ptr %35, align 4, !tbaa !9
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %67, i32 0, i32 3
  %69 = load i32, ptr %68, align 4, !tbaa !17
  %70 = icmp eq i32 %69, 8
  %71 = zext i1 %70 to i64
  %72 = select i1 %70, i32 1652584455, i32 1652580359
  store i32 %72, ptr %36, align 4, !tbaa !9
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %73, i32 0, i32 3
  %75 = load i32, ptr %74, align 4, !tbaa !17
  %76 = icmp eq i32 %75, 8
  %77 = zext i1 %76 to i64
  %78 = select i1 %76, i32 -494899193, i32 -494903289
  store i32 %78, ptr %37, align 4, !tbaa !9
  %79 = load ptr, ptr %13, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %79, i32 0, i32 3
  %81 = load i32, ptr %80, align 4, !tbaa !17
  %82 = icmp eq i32 %81, 8
  %83 = zext i1 %82 to i64
  %84 = select i1 %82, i32 12295, i32 8199
  store i32 %84, ptr %39, align 4, !tbaa !9
  %85 = load i32, ptr %19, align 4, !tbaa !9
  %86 = icmp eq i32 %85, 1
  br i1 %86, label %87, label %101

87:                                               ; preds = %10
  %88 = load i32, ptr %17, align 4, !tbaa !9
  %89 = icmp eq i32 %88, 0
  br i1 %89, label %90, label %92

90:                                               ; preds = %87
  store i32 2, ptr %43, align 4, !tbaa !9
  %91 = load i32, ptr %17, align 4, !tbaa !9
  store i32 %91, ptr %29, align 4, !tbaa !9
  br label %100

92:                                               ; preds = %87
  %93 = load i32, ptr %17, align 4, !tbaa !9
  %94 = icmp eq i32 %93, -1
  br i1 %94, label %95, label %96

95:                                               ; preds = %92
  store i32 -1, ptr %43, align 4, !tbaa !9
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %99

96:                                               ; preds = %92
  store i32 1, ptr %43, align 4, !tbaa !9
  %97 = load i32, ptr %17, align 4, !tbaa !9
  %98 = add nsw i32 %97, 1
  store i32 %98, ptr %29, align 4, !tbaa !9
  br label %99

99:                                               ; preds = %96, %95
  br label %100

100:                                              ; preds = %99, %90
  br label %109

101:                                              ; preds = %10
  store i32 1, ptr %43, align 4, !tbaa !9
  %102 = load i32, ptr %17, align 4, !tbaa !9
  %103 = icmp slt i32 %102, 0
  br i1 %103, label %104, label %105

104:                                              ; preds = %101
  br label %107

105:                                              ; preds = %101
  %106 = load i32, ptr %17, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %105, %104
  %108 = phi i32 [ 0, %104 ], [ %106, %105 ]
  store i32 %108, ptr %29, align 4, !tbaa !9
  br label %109

109:                                              ; preds = %107, %100
  %110 = load i32, ptr %29, align 4, !tbaa !9
  %111 = icmp sge i32 %110, 0
  br i1 %111, label %112, label %113

112:                                              ; preds = %109
  br label %114

113:                                              ; preds = %109
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 109, ptr noundef @__PRETTY_FUNCTION__.libxsmm_generator_gemm_rv64_microkernel_rvv) #6
  unreachable

114:                                              ; preds = %112
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %115, i32 0, i32 8
  %117 = getelementptr inbounds [3 x i8], ptr %116, i64 0, i64 0
  %118 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %117)
  %119 = icmp eq i32 1, %118
  br i1 %119, label %120, label %126

120:                                              ; preds = %114
  %121 = load ptr, ptr %14, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %121, i32 0, i32 8
  %123 = getelementptr inbounds [3 x i8], ptr %122, i64 0, i64 0
  %124 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %123)
  %125 = icmp eq i32 1, %124
  br i1 %125, label %138, label %126

126:                                              ; preds = %120, %114
  %127 = load ptr, ptr %14, align 8, !tbaa !5
  %128 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %127, i32 0, i32 8
  %129 = getelementptr inbounds [3 x i8], ptr %128, i64 0, i64 0
  %130 = call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef %129)
  %131 = icmp eq i32 0, %130
  br i1 %131, label %132, label %139

132:                                              ; preds = %126
  %133 = load ptr, ptr %14, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %133, i32 0, i32 8
  %135 = getelementptr inbounds [3 x i8], ptr %134, i64 0, i64 0
  %136 = call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef %135)
  %137 = icmp eq i32 0, %136
  br i1 %137, label %138, label %139

138:                                              ; preds = %132, %120
  store i32 -1342156713, ptr %41, align 4, !tbaa !9
  store i32 1, ptr %42, align 4, !tbaa !9
  br label %148

139:                                              ; preds = %132, %126
  %140 = load ptr, ptr %11, align 8, !tbaa !5
  %141 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %142 = icmp ult i32 1, %141
  br i1 %142, label %143, label %145

143:                                              ; preds = %139
  %144 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %146

145:                                              ; preds = %139
  br label %146

146:                                              ; preds = %145, %143
  %147 = phi i32 [ %144, %143 ], [ 1, %145 ]
  call void @libxsmm_handle_error(ptr noundef %140, i32 noundef 90033, ptr noundef @__func__.libxsmm_generator_gemm_rv64_microkernel_rvv, ptr noundef @.str.1, i32 noundef 116, i32 noundef %147)
  store i32 1, ptr %44, align 4
  br label %532

148:                                              ; preds = %138
  %149 = load i32, ptr %15, align 4, !tbaa !9
  %150 = load ptr, ptr %13, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %150, i32 0, i32 2
  %152 = load i32, ptr %151, align 8, !tbaa !20
  %153 = udiv i32 %149, %152
  %154 = getelementptr inbounds [2 x i32], ptr %23, i64 0, i64 0
  store i32 %153, ptr %154, align 4, !tbaa !9
  %155 = load i32, ptr %15, align 4, !tbaa !9
  %156 = load ptr, ptr %13, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %156, i32 0, i32 2
  %158 = load i32, ptr %157, align 8, !tbaa !20
  %159 = urem i32 %155, %158
  store i32 %159, ptr %26, align 4, !tbaa !9
  %160 = load i32, ptr %26, align 4, !tbaa !9
  %161 = icmp ugt i32 %160, 0
  %162 = zext i1 %161 to i32
  %163 = getelementptr inbounds [2 x i32], ptr %23, i64 0, i64 1
  store i32 %162, ptr %163, align 4, !tbaa !9
  %164 = getelementptr inbounds [2 x i32], ptr %23, i64 0, i64 0
  %165 = load i32, ptr %164, align 4, !tbaa !9
  %166 = getelementptr inbounds [2 x i32], ptr %23, i64 0, i64 1
  %167 = load i32, ptr %166, align 4, !tbaa !9
  %168 = add i32 %165, %167
  store i32 %168, ptr %24, align 4, !tbaa !9
  %169 = load ptr, ptr %14, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %169, i32 0, i32 6
  %171 = load i32, ptr %170, align 1, !tbaa !21
  %172 = and i32 %171, 2
  %173 = icmp ugt i32 %172, 0
  br i1 %173, label %174, label %175

174:                                              ; preds = %148
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %174, %148
  %176 = load ptr, ptr %13, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %176, i32 0, i32 3
  %178 = load i32, ptr %177, align 4, !tbaa !17
  %179 = load i32, ptr %27, align 4, !tbaa !9
  %180 = mul i32 %179, %178
  store i32 %180, ptr %27, align 4, !tbaa !9
  %181 = load ptr, ptr %14, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %181, i32 0, i32 6
  %183 = load i32, ptr %182, align 1, !tbaa !21
  %184 = and i32 %183, 2
  %185 = icmp eq i32 %184, 0
  br i1 %185, label %186, label %201

186:                                              ; preds = %175
  %187 = load i32, ptr %16, align 4, !tbaa !9
  %188 = icmp eq i32 %187, 1
  br i1 %188, label %189, label %191

189:                                              ; preds = %186
  %190 = load i32, ptr %34, align 4, !tbaa !9
  store i32 %190, ptr %32, align 4, !tbaa !9
  store i32 51, ptr %33, align 4, !tbaa !9
  br label %200

191:                                              ; preds = %186
  %192 = load i32, ptr %16, align 4, !tbaa !9
  %193 = sub i32 %192, 1
  %194 = load ptr, ptr %14, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %194, i32 0, i32 4
  %196 = load i32, ptr %195, align 1, !tbaa !11
  %197 = mul i32 %193, %196
  %198 = load i32, ptr %34, align 4, !tbaa !9
  %199 = sub i32 %197, %198
  store i32 %199, ptr %32, align 4, !tbaa !9
  store i32 1073741875, ptr %33, align 4, !tbaa !9
  br label %200

200:                                              ; preds = %191, %189
  br label %208

201:                                              ; preds = %175
  %202 = load ptr, ptr %14, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %202, i32 0, i32 4
  %204 = load i32, ptr %203, align 1, !tbaa !11
  %205 = load i32, ptr %16, align 4, !tbaa !9
  %206 = sub i32 %205, 1
  %207 = sub i32 %204, %206
  store i32 %207, ptr %32, align 4, !tbaa !9
  store i32 51, ptr %33, align 4, !tbaa !9
  br label %208

208:                                              ; preds = %201, %200
  %209 = load ptr, ptr %13, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %209, i32 0, i32 3
  %211 = load i32, ptr %210, align 4, !tbaa !17
  %212 = load i32, ptr %32, align 4, !tbaa !9
  %213 = mul i32 %212, %211
  store i32 %213, ptr %32, align 4, !tbaa !9
  %214 = load ptr, ptr %13, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %214, i32 0, i32 1
  %216 = load i32, ptr %215, align 4, !tbaa !22
  %217 = load i32, ptr %16, align 4, !tbaa !9
  %218 = load i32, ptr %24, align 4, !tbaa !9
  %219 = mul i32 %217, %218
  %220 = sub i32 %216, %219
  store i32 %220, ptr %25, align 4, !tbaa !9
  store i32 0, ptr %30, align 4, !tbaa !9
  br label %221

221:                                              ; preds = %338, %208
  %222 = load i32, ptr %30, align 4, !tbaa !9
  %223 = load i32, ptr %43, align 4, !tbaa !9
  %224 = icmp slt i32 %222, %223
  br i1 %224, label %225, label %341

225:                                              ; preds = %221
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %226

226:                                              ; preds = %264, %225
  %227 = load i32, ptr %22, align 4, !tbaa !9
  %228 = getelementptr inbounds [2 x i32], ptr %23, i64 0, i64 0
  %229 = load i32, ptr %228, align 4, !tbaa !9
  %230 = icmp ult i32 %227, %229
  br i1 %230, label %231, label %268

231:                                              ; preds = %226
  %232 = load ptr, ptr %11, align 8, !tbaa !5
  %233 = load i32, ptr %35, align 4, !tbaa !9
  %234 = load ptr, ptr %12, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %234, i32 0, i32 1
  %236 = load i32, ptr %235, align 4, !tbaa !23
  %237 = load i32, ptr %29, align 4, !tbaa !9
  %238 = load i32, ptr %30, align 4, !tbaa !9
  %239 = add nsw i32 %237, %238
  %240 = srem i32 %239, 2
  %241 = getelementptr inbounds [2 x i32], ptr %23, i64 0, i64 0
  %242 = load i32, ptr %241, align 4, !tbaa !9
  %243 = mul i32 %240, %242
  %244 = load i32, ptr %22, align 4, !tbaa !9
  %245 = add i32 %243, %244
  call void @libxsmm_rv64_instruction_rvv_move(ptr noundef %232, i32 noundef %233, i32 noundef %236, i32 noundef 0, i32 noundef %245, i32 noundef 1)
  %246 = load ptr, ptr %11, align 8, !tbaa !5
  %247 = load ptr, ptr %12, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %247, i32 0, i32 1
  %249 = load i32, ptr %248, align 4, !tbaa !23
  %250 = load ptr, ptr %12, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %250, i32 0, i32 1
  %252 = load i32, ptr %251, align 4, !tbaa !23
  %253 = load ptr, ptr %13, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %253, i32 0, i32 2
  %255 = load i32, ptr %254, align 8, !tbaa !20
  %256 = load ptr, ptr %13, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %256, i32 0, i32 3
  %258 = load i32, ptr %257, align 4, !tbaa !17
  %259 = mul i32 %255, %258
  %260 = load i32, ptr %34, align 4, !tbaa !9
  %261 = mul i32 %259, %260
  %262 = load i32, ptr %20, align 4, !tbaa !9
  %263 = mul i32 %261, %262
  call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %246, i32 noundef 19, i32 noundef %249, i32 noundef %252, i32 noundef %263)
  br label %264

264:                                              ; preds = %231
  %265 = load i32, ptr %20, align 4, !tbaa !9
  %266 = load i32, ptr %22, align 4, !tbaa !9
  %267 = add i32 %266, %265
  store i32 %267, ptr %22, align 4, !tbaa !9
  br label %226, !llvm.loop !25

268:                                              ; preds = %226
  %269 = getelementptr inbounds [2 x i32], ptr %23, i64 0, i64 1
  %270 = load i32, ptr %269, align 4, !tbaa !9
  %271 = icmp ugt i32 %270, 0
  br i1 %271, label %272, label %304

272:                                              ; preds = %268
  %273 = load ptr, ptr %11, align 8, !tbaa !5
  %274 = load i32, ptr %35, align 4, !tbaa !9
  %275 = load ptr, ptr %12, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %275, i32 0, i32 1
  %277 = load i32, ptr %276, align 4, !tbaa !23
  %278 = load i32, ptr %29, align 4, !tbaa !9
  %279 = load i32, ptr %30, align 4, !tbaa !9
  %280 = add nsw i32 %278, %279
  %281 = srem i32 %280, 2
  %282 = load i32, ptr %22, align 4, !tbaa !9
  %283 = add i32 %281, %282
  call void @libxsmm_rv64_instruction_rvv_move(ptr noundef %273, i32 noundef %274, i32 noundef %277, i32 noundef 0, i32 noundef %283, i32 noundef 1)
  %284 = load ptr, ptr %11, align 8, !tbaa !5
  %285 = load ptr, ptr %12, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %285, i32 0, i32 1
  %287 = load i32, ptr %286, align 4, !tbaa !23
  %288 = load ptr, ptr %12, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %288, i32 0, i32 22
  %290 = load i32, ptr %289, align 4, !tbaa !27
  %291 = load ptr, ptr %12, align 8, !tbaa !5
  %292 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %291, i32 0, i32 1
  %293 = load i32, ptr %292, align 4, !tbaa !23
  %294 = load i32, ptr %26, align 4, !tbaa !9
  %295 = zext i32 %294 to i64
  %296 = load ptr, ptr %13, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %296, i32 0, i32 3
  %298 = load i32, ptr %297, align 4, !tbaa !17
  %299 = zext i32 %298 to i64
  %300 = mul nsw i64 %295, %299
  %301 = load i32, ptr %34, align 4, !tbaa !9
  %302 = zext i32 %301 to i64
  %303 = mul nsw i64 %300, %302
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %284, i32 noundef 51, i32 noundef %287, i32 noundef %290, i32 noundef %293, i64 noundef %303)
  br label %304

304:                                              ; preds = %272, %268
  %305 = load ptr, ptr %14, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %305, i32 0, i32 3
  %307 = load i32, ptr %306, align 1, !tbaa !28
  %308 = load i32, ptr %15, align 4, !tbaa !9
  %309 = icmp ugt i32 %307, %308
  br i1 %309, label %310, label %337

310:                                              ; preds = %304
  %311 = load ptr, ptr %11, align 8, !tbaa !5
  %312 = load ptr, ptr %12, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %312, i32 0, i32 22
  %314 = load i32, ptr %313, align 4, !tbaa !27
  %315 = load ptr, ptr %14, align 8, !tbaa !5
  %316 = getelementptr inbounds %struct.libxsmm_gemm_descriptor, ptr %315, i32 0, i32 3
  %317 = load i32, ptr %316, align 1, !tbaa !28
  %318 = zext i32 %317 to i64
  %319 = load i32, ptr %15, align 4, !tbaa !9
  %320 = zext i32 %319 to i64
  %321 = sub nsw i64 %318, %320
  %322 = load ptr, ptr %13, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.libxsmm_micro_kernel_config, ptr %322, i32 0, i32 3
  %324 = load i32, ptr %323, align 4, !tbaa !17
  %325 = zext i32 %324 to i64
  %326 = mul nsw i64 %321, %325
  call void @libxsmm_rv64_instruction_alu_set_imm64(ptr noundef %311, i32 noundef %314, i64 noundef %326)
  %327 = load ptr, ptr %11, align 8, !tbaa !5
  %328 = load ptr, ptr %12, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %328, i32 0, i32 1
  %330 = load i32, ptr %329, align 4, !tbaa !23
  %331 = load ptr, ptr %12, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %331, i32 0, i32 22
  %333 = load i32, ptr %332, align 4, !tbaa !27
  %334 = load ptr, ptr %12, align 8, !tbaa !5
  %335 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %334, i32 0, i32 1
  %336 = load i32, ptr %335, align 4, !tbaa !23
  call void @libxsmm_rv64_instruction_alu_compute(ptr noundef %327, i32 noundef 51, i32 noundef %330, i32 noundef %333, i32 noundef %336)
  br label %337

337:                                              ; preds = %310, %304
  br label %338

338:                                              ; preds = %337
  %339 = load i32, ptr %30, align 4, !tbaa !9
  %340 = add nsw i32 %339, 1
  store i32 %340, ptr %30, align 4, !tbaa !9
  br label %221, !llvm.loop !29

341:                                              ; preds = %221
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %342

342:                                              ; preds = %463, %341
  %343 = load i32, ptr %21, align 4, !tbaa !9
  %344 = load i32, ptr %16, align 4, !tbaa !9
  %345 = icmp ult i32 %343, %344
  br i1 %345, label %346, label %466

346:                                              ; preds = %342
  %347 = load ptr, ptr %11, align 8, !tbaa !5
  %348 = load i32, ptr %39, align 4, !tbaa !9
  %349 = load ptr, ptr %12, align 8, !tbaa !5
  %350 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %349, i32 0, i32 3
  %351 = load i32, ptr %350, align 4, !tbaa !30
  %352 = load i32, ptr %21, align 4, !tbaa !9
  %353 = urem i32 %352, 20
  %354 = zext i32 %353 to i64
  %355 = getelementptr inbounds [20 x i32], ptr @libxsmm_generator_gemm_rv64_microkernel_rvv.fp_regid, i64 0, i64 %354
  %356 = load i32, ptr %355, align 4, !tbaa !9
  %357 = load i32, ptr %28, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_alu_move(ptr noundef %347, i32 noundef %348, i32 noundef %351, i32 noundef %356, i32 noundef %357)
  %358 = load i32, ptr %21, align 4, !tbaa !9
  %359 = load i32, ptr %16, align 4, !tbaa !9
  %360 = sub i32 %359, 1
  %361 = icmp ne i32 %358, %360
  br i1 %361, label %362, label %398

362:                                              ; preds = %346
  %363 = load i32, ptr %27, align 4, !tbaa !9
  %364 = load i32, ptr %28, align 4, !tbaa !9
  %365 = add i32 %364, %363
  store i32 %365, ptr %28, align 4, !tbaa !9
  %366 = load i32, ptr %28, align 4, !tbaa !9
  %367 = icmp uge i32 %366, 2047
  br i1 %367, label %368, label %397

368:                                              ; preds = %362
  %369 = load i32, ptr %27, align 4, !tbaa !9
  %370 = icmp ugt i32 %369, 2047
  br i1 %370, label %371, label %384

371:                                              ; preds = %368
  %372 = load ptr, ptr %11, align 8, !tbaa !5
  %373 = load ptr, ptr %12, align 8, !tbaa !5
  %374 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %373, i32 0, i32 3
  %375 = load i32, ptr %374, align 4, !tbaa !30
  %376 = load ptr, ptr %12, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %376, i32 0, i32 22
  %378 = load i32, ptr %377, align 4, !tbaa !27
  %379 = load ptr, ptr %12, align 8, !tbaa !5
  %380 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %379, i32 0, i32 3
  %381 = load i32, ptr %380, align 4, !tbaa !30
  %382 = load i32, ptr %27, align 4, !tbaa !9
  %383 = zext i32 %382 to i64
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %372, i32 noundef 51, i32 noundef %375, i32 noundef %378, i32 noundef %381, i64 noundef %383)
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %396

384:                                              ; preds = %368
  %385 = load ptr, ptr %11, align 8, !tbaa !5
  %386 = load ptr, ptr %12, align 8, !tbaa !5
  %387 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %386, i32 0, i32 3
  %388 = load i32, ptr %387, align 4, !tbaa !30
  %389 = load ptr, ptr %12, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %389, i32 0, i32 3
  %391 = load i32, ptr %390, align 4, !tbaa !30
  %392 = load i32, ptr %28, align 4, !tbaa !9
  %393 = load i32, ptr %27, align 4, !tbaa !9
  %394 = sub i32 %392, %393
  call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %385, i32 noundef 19, i32 noundef %388, i32 noundef %391, i32 noundef %394)
  %395 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %395, ptr %28, align 4, !tbaa !9
  br label %396

396:                                              ; preds = %384, %371
  br label %397

397:                                              ; preds = %396, %362
  br label %462

398:                                              ; preds = %346
  %399 = load i32, ptr %33, align 4, !tbaa !9
  %400 = icmp eq i32 %399, 1073741875
  br i1 %400, label %401, label %435

401:                                              ; preds = %398
  %402 = load i32, ptr %28, align 4, !tbaa !9
  %403 = load i32, ptr %32, align 4, !tbaa !9
  %404 = icmp ugt i32 %402, %403
  br i1 %404, label %405, label %435

405:                                              ; preds = %401
  %406 = load i32, ptr %28, align 4, !tbaa !9
  %407 = load i32, ptr %32, align 4, !tbaa !9
  %408 = sub i32 %406, %407
  %409 = zext i32 %408 to i64
  store i64 %409, ptr %31, align 8, !tbaa !15
  %410 = load i64, ptr %31, align 8, !tbaa !15
  %411 = icmp ule i64 %410, 2047
  br i1 %411, label %412, label %422

412:                                              ; preds = %405
  %413 = load ptr, ptr %11, align 8, !tbaa !5
  %414 = load ptr, ptr %12, align 8, !tbaa !5
  %415 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %414, i32 0, i32 3
  %416 = load i32, ptr %415, align 4, !tbaa !30
  %417 = load ptr, ptr %12, align 8, !tbaa !5
  %418 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %417, i32 0, i32 3
  %419 = load i32, ptr %418, align 4, !tbaa !30
  %420 = load i64, ptr %31, align 8, !tbaa !15
  %421 = trunc i64 %420 to i32
  call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %413, i32 noundef 19, i32 noundef %416, i32 noundef %419, i32 noundef %421)
  br label %434

422:                                              ; preds = %405
  %423 = load ptr, ptr %11, align 8, !tbaa !5
  %424 = load ptr, ptr %12, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %424, i32 0, i32 3
  %426 = load i32, ptr %425, align 4, !tbaa !30
  %427 = load ptr, ptr %12, align 8, !tbaa !5
  %428 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %427, i32 0, i32 22
  %429 = load i32, ptr %428, align 4, !tbaa !27
  %430 = load ptr, ptr %12, align 8, !tbaa !5
  %431 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %430, i32 0, i32 3
  %432 = load i32, ptr %431, align 4, !tbaa !30
  %433 = load i64, ptr %31, align 8, !tbaa !15
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %423, i32 noundef 51, i32 noundef %426, i32 noundef %429, i32 noundef %432, i64 noundef %433)
  br label %434

434:                                              ; preds = %422, %412
  br label %461

435:                                              ; preds = %401, %398
  %436 = load ptr, ptr %11, align 8, !tbaa !5
  %437 = load ptr, ptr %12, align 8, !tbaa !5
  %438 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %437, i32 0, i32 3
  %439 = load i32, ptr %438, align 4, !tbaa !30
  %440 = load ptr, ptr %12, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %440, i32 0, i32 22
  %442 = load i32, ptr %441, align 4, !tbaa !27
  %443 = load ptr, ptr %12, align 8, !tbaa !5
  %444 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %443, i32 0, i32 3
  %445 = load i32, ptr %444, align 4, !tbaa !30
  %446 = load i32, ptr %28, align 4, !tbaa !9
  %447 = zext i32 %446 to i64
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %436, i32 noundef 51, i32 noundef %439, i32 noundef %442, i32 noundef %445, i64 noundef %447)
  %448 = load ptr, ptr %11, align 8, !tbaa !5
  %449 = load i32, ptr %33, align 4, !tbaa !9
  %450 = load ptr, ptr %12, align 8, !tbaa !5
  %451 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %450, i32 0, i32 3
  %452 = load i32, ptr %451, align 4, !tbaa !30
  %453 = load ptr, ptr %12, align 8, !tbaa !5
  %454 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %453, i32 0, i32 22
  %455 = load i32, ptr %454, align 4, !tbaa !27
  %456 = load ptr, ptr %12, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.libxsmm_gp_reg_mapping_struct, ptr %456, i32 0, i32 3
  %458 = load i32, ptr %457, align 4, !tbaa !30
  %459 = load i32, ptr %32, align 4, !tbaa !9
  %460 = zext i32 %459 to i64
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %448, i32 noundef %449, i32 noundef %452, i32 noundef %455, i32 noundef %458, i64 noundef %460)
  br label %461

461:                                              ; preds = %435, %434
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %462

462:                                              ; preds = %461, %397
  br label %463

463:                                              ; preds = %462
  %464 = load i32, ptr %21, align 4, !tbaa !9
  %465 = add i32 %464, 1
  store i32 %465, ptr %21, align 4, !tbaa !9
  br label %342, !llvm.loop !31

466:                                              ; preds = %342
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %467

467:                                              ; preds = %528, %466
  %468 = load i32, ptr %21, align 4, !tbaa !9
  %469 = load i32, ptr %16, align 4, !tbaa !9
  %470 = icmp ult i32 %468, %469
  br i1 %470, label %471, label %531

471:                                              ; preds = %467
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %472

472:                                              ; preds = %499, %471
  %473 = load i32, ptr %22, align 4, !tbaa !9
  %474 = getelementptr inbounds [2 x i32], ptr %23, i64 0, i64 0
  %475 = load i32, ptr %474, align 4, !tbaa !9
  %476 = icmp ult i32 %473, %475
  br i1 %476, label %477, label %503

477:                                              ; preds = %472
  %478 = load ptr, ptr %11, align 8, !tbaa !5
  %479 = load i32, ptr %41, align 4, !tbaa !9
  %480 = load i32, ptr %21, align 4, !tbaa !9
  %481 = urem i32 %480, 20
  %482 = zext i32 %481 to i64
  %483 = getelementptr inbounds [20 x i32], ptr @libxsmm_generator_gemm_rv64_microkernel_rvv.fp_regid, i64 0, i64 %482
  %484 = load i32, ptr %483, align 4, !tbaa !9
  %485 = load i32, ptr %18, align 4, !tbaa !9
  %486 = srem i32 %485, 2
  %487 = getelementptr inbounds [2 x i32], ptr %23, i64 0, i64 0
  %488 = load i32, ptr %487, align 4, !tbaa !9
  %489 = mul i32 %486, %488
  %490 = load i32, ptr %22, align 4, !tbaa !9
  %491 = add i32 %489, %490
  %492 = load i32, ptr %25, align 4, !tbaa !9
  %493 = load i32, ptr %22, align 4, !tbaa !9
  %494 = add i32 %492, %493
  %495 = load i32, ptr %24, align 4, !tbaa !9
  %496 = load i32, ptr %21, align 4, !tbaa !9
  %497 = mul i32 %495, %496
  %498 = add i32 %494, %497
  call void @libxsmm_rv64_instruction_rvv_compute(ptr noundef %478, i32 noundef %479, i32 noundef %484, i32 noundef %491, i32 noundef %498, i32 noundef 1)
  br label %499

499:                                              ; preds = %477
  %500 = load i32, ptr %20, align 4, !tbaa !9
  %501 = load i32, ptr %22, align 4, !tbaa !9
  %502 = add i32 %501, %500
  store i32 %502, ptr %22, align 4, !tbaa !9
  br label %472, !llvm.loop !32

503:                                              ; preds = %472
  %504 = getelementptr inbounds [2 x i32], ptr %23, i64 0, i64 1
  %505 = load i32, ptr %504, align 4, !tbaa !9
  %506 = icmp ugt i32 %505, 0
  br i1 %506, label %507, label %527

507:                                              ; preds = %503
  %508 = load ptr, ptr %11, align 8, !tbaa !5
  %509 = load i32, ptr %41, align 4, !tbaa !9
  %510 = load i32, ptr %21, align 4, !tbaa !9
  %511 = urem i32 %510, 20
  %512 = zext i32 %511 to i64
  %513 = getelementptr inbounds [20 x i32], ptr @libxsmm_generator_gemm_rv64_microkernel_rvv.fp_regid, i64 0, i64 %512
  %514 = load i32, ptr %513, align 4, !tbaa !9
  %515 = load i32, ptr %18, align 4, !tbaa !9
  %516 = srem i32 %515, 2
  %517 = load i32, ptr %22, align 4, !tbaa !9
  %518 = add i32 %516, %517
  %519 = load i32, ptr %25, align 4, !tbaa !9
  %520 = load i32, ptr %24, align 4, !tbaa !9
  %521 = load i32, ptr %21, align 4, !tbaa !9
  %522 = mul i32 %520, %521
  %523 = add i32 %519, %522
  %524 = getelementptr inbounds [2 x i32], ptr %23, i64 0, i64 0
  %525 = load i32, ptr %524, align 4, !tbaa !9
  %526 = add i32 %523, %525
  call void @libxsmm_rv64_instruction_rvv_compute(ptr noundef %508, i32 noundef %509, i32 noundef %514, i32 noundef %518, i32 noundef %526, i32 noundef 1)
  br label %527

527:                                              ; preds = %507, %503
  br label %528

528:                                              ; preds = %527
  %529 = load i32, ptr %21, align 4, !tbaa !9
  %530 = add i32 %529, 1
  store i32 %530, ptr %21, align 4, !tbaa !9
  br label %467, !llvm.loop !33

531:                                              ; preds = %467
  store i32 0, ptr %44, align 4
  br label %532

532:                                              ; preds = %531, %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %39) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #5
  call void @llvm.lifetime.end.p0(i64 8, 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 4, ptr %28) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  %533 = load i32, ptr %44, align 4
  switch i32 %533, label %535 [
    i32 0, label %534
    i32 1, label %534
  ]

534:                                              ; preds = %532, %532
  ret void

535:                                              ; preds = %532
  unreachable
}

; 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 nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #2

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

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) #4

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) #4

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

declare void @libxsmm_rv64_instruction_rvv_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i64 noundef) #4

declare void @libxsmm_rv64_instruction_alu_set_imm64(ptr noundef, i32 noundef, i64 noundef) #4

declare void @libxsmm_rv64_instruction_alu_compute(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare void @libxsmm_rv64_instruction_alu_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare void @libxsmm_rv64_instruction_rvv_compute(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { "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 #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 = !{!12, !10, i64 16}
!12 = !{!"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, !13, i64 33, !13, i64 41, !7, i64 49, !10, i64 50, !10, i64 54, !10, i64 58, !14, i64 62, !14, i64 64, !7, i64 66, !7, i64 67, !7, i64 68, !7, i64 69, !14, i64 70, !14, i64 72, !14, i64 74, !14, i64 76, !14, i64 78, !14, i64 80, !10, i64 82, !10, i64 86, !10, i64 90, !7, i64 94}
!13 = !{!"long long", !7, i64 0}
!14 = !{!"short", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"long", !7, i64 0}
!17 = !{!18, !10, i64 12}
!18 = !{!"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, !19, 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}
!19 = !{!"libxsmm_tile_config", !7, i64 0, !14, i64 2, !7, i64 4, !14, i64 6, !7, i64 8, !14, i64 10, !7, i64 12, !14, i64 14, !7, i64 16, !14, i64 18, !7, i64 20, !14, i64 22, !7, i64 24, !14, i64 26, !7, i64 28, !14, i64 30, !7, i64 32}
!20 = !{!18, !10, i64 8}
!21 = !{!12, !10, i64 24}
!22 = !{!18, !10, i64 4}
!23 = !{!24, !10, i64 4}
!24 = !{!"libxsmm_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}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!24, !10, i64 88}
!28 = !{!12, !10, i64 12}
!29 = distinct !{!29, !26}
!30 = !{!24, !10, i64 12}
!31 = distinct !{!31, !26}
!32 = distinct !{!32, !26}
!33 = distinct !{!33, !26}


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

@libxsmm_generator_gemm_rv64_microkernel_rvv.fp_regid = external hidden local_unnamed_addr global [20 x i32], align 16
@.str = external hidden unnamed_addr constant [24 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [75 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_generator_gemm_rv64_microkernel_rvv = external hidden unnamed_addr constant [279 x i8], align 1
@__func__.libxsmm_generator_gemm_rv64_microkernel_rvv = external hidden unnamed_addr constant [44 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_gemm_rv64_microkernel_rvv(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) local_unnamed_addr #0 {
  %11 = getelementptr inbounds i8, ptr %3, i64 16
  %12 = load i32, ptr %11, align 1, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %2, i64 12
  %14 = load i32, ptr %13, align 4, !tbaa !12
  %15 = icmp eq i32 %14, 8
  %16 = select i1 %15, i32 28679, i32 24583
  %17 = select i1 %15, i32 12295, i32 8199
  %18 = icmp eq i32 %8, 1
  br i1 %18, label %19, label %21

19:                                               ; preds = %10
  switch i32 %6, label %23 [
    i32 0, label %.thread
    i32 -1, label %20
  ]

20:                                               ; preds = %19
  br label %.thread

21:                                               ; preds = %10
  %22 = tail call i32 @llvm.smax.i32(i32 %6, i32 0)
  br label %.thread

23:                                               ; preds = %19
  %24 = add nuw nsw i32 %6, 1
  %25 = icmp sgt i32 %6, -2
  br i1 %25, label %.thread, label %26

26:                                               ; preds = %23
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 109, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_generator_gemm_rv64_microkernel_rvv) #4
  unreachable

.thread:                                          ; preds = %19, %21, %20, %23
  %27 = phi i1 [ true, %23 ], [ true, %19 ], [ true, %21 ], [ false, %20 ]
  %.0209 = phi i32 [ 1, %23 ], [ 2, %19 ], [ 1, %21 ], [ -1, %20 ]
  %.0186208 = phi i32 [ %24, %23 ], [ %6, %19 ], [ %22, %21 ], [ 0, %20 ]
  %28 = getelementptr inbounds i8, ptr %3, i64 29
  %29 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %28) #5
  %30 = icmp eq i32 %29, 1
  br i1 %30, label %31, label %34

31:                                               ; preds = %.thread
  %32 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %28) #5
  %33 = icmp eq i32 %32, 1
  br i1 %33, label %40, label %34

34:                                               ; preds = %31, %.thread
  %35 = tail call i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef nonnull %28) #5
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %53

37:                                               ; preds = %34
  %38 = tail call i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef nonnull %28) #5
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %53

40:                                               ; preds = %37, %31
  %41 = getelementptr inbounds i8, ptr %2, i64 8
  %42 = load i32, ptr %41, align 8, !tbaa !16
  %.fr = freeze i32 %42
  %43 = udiv i32 %4, %.fr
  %44 = urem i32 %4, %.fr
  %45 = icmp ne i32 %44, 0
  %46 = zext i1 %45 to i32
  %47 = add i32 %43, %46
  %48 = getelementptr inbounds i8, ptr %3, i64 24
  %49 = load i32, ptr %48, align 1, !tbaa !17
  %50 = and i32 %49, 2
  %.not = icmp eq i32 %50, 0
  %spec.select = select i1 %.not, i32 %12, i32 1
  %51 = load i32, ptr %13, align 4, !tbaa !12
  %52 = mul i32 %spec.select, %51
  br i1 %.not, label %58, label %65

53:                                               ; preds = %37, %34
  %54 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !18
  %55 = icmp ugt i32 %54, 1
  %56 = load i32, ptr @libxsmm_verbosity, align 4
  %57 = select i1 %55, i32 %56, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90033, ptr noundef nonnull @__func__.libxsmm_generator_gemm_rv64_microkernel_rvv, ptr noundef nonnull @.str.1, i32 noundef 116, i32 noundef %57) #5
  br label %.loopexit

58:                                               ; preds = %40
  %59 = icmp eq i32 %5, 1
  br i1 %59, label %68, label %60

60:                                               ; preds = %58
  %61 = add i32 %5, -1
  %62 = load i32, ptr %11, align 1, !tbaa !5
  %63 = mul i32 %62, %61
  %64 = add i32 %63, -1
  br label %68

65:                                               ; preds = %40
  %66 = load i32, ptr %11, align 1, !tbaa !5
  %reass.sub = sub i32 %66, %5
  %67 = add i32 %reass.sub, 1
  br label %68

68:                                               ; preds = %58, %60, %65
  %.0184 = phi i32 [ %64, %60 ], [ %67, %65 ], [ 1, %58 ]
  %69 = phi i1 [ true, %60 ], [ false, %65 ], [ false, %58 ]
  %.0183 = phi i32 [ 1073741875, %60 ], [ 51, %65 ], [ 51, %58 ]
  %70 = mul i32 %.0184, %51
  %71 = getelementptr inbounds i8, ptr %2, i64 4
  %72 = load i32, ptr %71, align 4, !tbaa !19
  %73 = mul i32 %47, %5
  %74 = sub i32 %72, %73
  br i1 %27, label %.preheader213.lr.ph, label %.preheader212

.preheader213.lr.ph:                              ; preds = %68
  %.not226 = icmp ugt i32 %.fr, %4
  %75 = getelementptr inbounds i8, ptr %1, i64 4
  %76 = getelementptr inbounds i8, ptr %1, i64 88
  %77 = zext i32 %44 to i64
  %78 = getelementptr inbounds i8, ptr %3, i64 12
  %79 = zext i32 %4 to i64
  %smax = tail call i32 @llvm.smax.i32(i32 %.0209, i32 1)
  br label %.preheader213

.preheader213:                                    ; preds = %.preheader213.lr.ph, %121
  %.0185215 = phi i32 [ 0, %.preheader213.lr.ph ], [ %122, %121 ]
  br i1 %.not226, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader213
  %80 = add nuw nsw i32 %.0185215, %.0186208
  %81 = trunc i32 %80 to i1
  %82 = select i1 %81, i32 %43, i32 0
  br label %89

.preheader212:                                    ; preds = %121, %68
  %.not227 = icmp eq i32 %5, 0
  br i1 %.not227, label %.loopexit, label %.lr.ph218

.lr.ph218:                                        ; preds = %.preheader212
  %83 = getelementptr inbounds i8, ptr %1, i64 12
  %84 = add i32 %5, -1
  %85 = icmp ugt i32 %52, 2047
  %86 = getelementptr inbounds i8, ptr %1, i64 88
  %87 = zext i32 %52 to i64
  %88 = zext i32 %70 to i64
  br label %160

89:                                               ; preds = %.lr.ph, %89
  %.0181214 = phi i32 [ 0, %.lr.ph ], [ %97, %89 ]
  %90 = load i32, ptr %75, align 4, !tbaa !20
  %91 = add i32 %.0181214, %82
  tail call void @libxsmm_rv64_instruction_rvv_move(ptr noundef %0, i32 noundef %16, i32 noundef %90, i32 noundef 0, i32 noundef %91, i32 noundef 1) #5
  %92 = load i32, ptr %75, align 4, !tbaa !20
  %93 = load i32, ptr %41, align 8, !tbaa !16
  %94 = load i32, ptr %13, align 4, !tbaa !12
  %95 = mul i32 %93, %9
  %96 = mul i32 %95, %94
  tail call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 19, i32 noundef %92, i32 noundef %92, i32 noundef %96) #5
  %97 = add i32 %.0181214, %9
  %98 = icmp ult i32 %97, %43
  br i1 %98, label %89, label %._crit_edge, !llvm.loop !22

._crit_edge:                                      ; preds = %89, %.preheader213
  %.0181.lcssa = phi i32 [ 0, %.preheader213 ], [ %97, %89 ]
  br i1 %45, label %99, label %109

99:                                               ; preds = %._crit_edge
  %100 = load i32, ptr %75, align 4, !tbaa !20
  %101 = add nuw nsw i32 %.0185215, %.0186208
  %102 = and i32 %101, 1
  %103 = add i32 %.0181.lcssa, %102
  tail call void @libxsmm_rv64_instruction_rvv_move(ptr noundef %0, i32 noundef %16, i32 noundef %100, i32 noundef 0, i32 noundef %103, i32 noundef 1) #5
  %104 = load i32, ptr %75, align 4, !tbaa !20
  %105 = load i32, ptr %76, align 4, !tbaa !24
  %106 = load i32, ptr %13, align 4, !tbaa !12
  %107 = zext i32 %106 to i64
  %108 = mul nuw nsw i64 %107, %77
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 51, i32 noundef %104, i32 noundef %105, i32 noundef %104, i64 noundef %108) #5
  br label %109

109:                                              ; preds = %99, %._crit_edge
  %110 = load i32, ptr %78, align 1, !tbaa !25
  %111 = icmp ugt i32 %110, %4
  br i1 %111, label %112, label %121

112:                                              ; preds = %109
  %113 = load i32, ptr %76, align 4, !tbaa !24
  %114 = zext i32 %110 to i64
  %115 = sub nsw i64 %114, %79
  %116 = load i32, ptr %13, align 4, !tbaa !12
  %117 = zext i32 %116 to i64
  %118 = mul nsw i64 %115, %117
  tail call void @libxsmm_rv64_instruction_alu_set_imm64(ptr noundef %0, i32 noundef %113, i64 noundef %118) #5
  %119 = load i32, ptr %75, align 4, !tbaa !20
  %120 = load i32, ptr %76, align 4, !tbaa !24
  tail call void @libxsmm_rv64_instruction_alu_compute(ptr noundef %0, i32 noundef 51, i32 noundef %119, i32 noundef %120, i32 noundef %119) #5
  br label %121

121:                                              ; preds = %109, %112
  %122 = add nuw nsw i32 %.0185215, 1
  %exitcond.not = icmp eq i32 %122, %smax
  br i1 %exitcond.not, label %.preheader212, label %.preheader213, !llvm.loop !26

.preheader.lr.ph:                                 ; preds = %191
  %.not229 = icmp ugt i32 %.fr, %4
  %123 = srem i32 %7, 2
  %124 = mul i32 %43, %123
  %125 = add i32 %74, %43
  br i1 %.not229, label %.preheader.lr.ph.split, label %.preheader.lr.ph.split.us

.preheader.lr.ph.split.us:                        ; preds = %.preheader.lr.ph
  br i1 %45, label %.preheader.us.us, label %.preheader.us

.preheader.us.us:                                 ; preds = %.preheader.lr.ph.split.us, %._crit_edge221.us.us
  %.1223.us.us = phi i32 [ %140, %._crit_edge221.us.us ], [ 0, %.preheader.lr.ph.split.us ]
  %126 = urem i32 %.1223.us.us, 20
  %127 = zext nneg i32 %126 to i64
  %128 = getelementptr inbounds [20 x i32], ptr @libxsmm_generator_gemm_rv64_microkernel_rvv.fp_regid, i64 0, i64 %127
  %129 = mul i32 %.1223.us.us, %47
  %130 = add i32 %129, %74
  br label %131

131:                                              ; preds = %131, %.preheader.us.us
  %.1182219.us.us = phi i32 [ 0, %.preheader.us.us ], [ %135, %131 ]
  %132 = load i32, ptr %128, align 4, !tbaa !18
  %133 = add i32 %.1182219.us.us, %124
  %134 = add i32 %130, %.1182219.us.us
  tail call void @libxsmm_rv64_instruction_rvv_compute(ptr noundef %0, i32 noundef -1342156713, i32 noundef %132, i32 noundef %133, i32 noundef %134, i32 noundef 1) #5
  %135 = add i32 %.1182219.us.us, %9
  %136 = icmp ult i32 %135, %43
  br i1 %136, label %131, label %._crit_edge221.us.us, !llvm.loop !27

._crit_edge221.us.us:                             ; preds = %131
  %137 = load i32, ptr %128, align 4, !tbaa !18
  %138 = add i32 %135, %123
  %139 = add i32 %125, %129
  tail call void @libxsmm_rv64_instruction_rvv_compute(ptr noundef %0, i32 noundef -1342156713, i32 noundef %137, i32 noundef %138, i32 noundef %139, i32 noundef 1) #5
  %140 = add nuw i32 %.1223.us.us, 1
  %exitcond237.not = icmp eq i32 %140, %5
  br i1 %exitcond237.not, label %.loopexit, label %.preheader.us.us, !llvm.loop !28

.preheader.us:                                    ; preds = %.preheader.lr.ph.split.us, %._crit_edge221.us
  %.1223.us = phi i32 [ %152, %._crit_edge221.us ], [ 0, %.preheader.lr.ph.split.us ]
  %141 = urem i32 %.1223.us, 20
  %142 = zext nneg i32 %141 to i64
  %143 = getelementptr inbounds [20 x i32], ptr @libxsmm_generator_gemm_rv64_microkernel_rvv.fp_regid, i64 0, i64 %142
  %144 = mul i32 %.1223.us, %47
  %145 = add i32 %144, %74
  br label %146

146:                                              ; preds = %.preheader.us, %146
  %.1182219.us = phi i32 [ 0, %.preheader.us ], [ %150, %146 ]
  %147 = load i32, ptr %143, align 4, !tbaa !18
  %148 = add i32 %.1182219.us, %124
  %149 = add i32 %145, %.1182219.us
  tail call void @libxsmm_rv64_instruction_rvv_compute(ptr noundef %0, i32 noundef -1342156713, i32 noundef %147, i32 noundef %148, i32 noundef %149, i32 noundef 1) #5
  %150 = add i32 %.1182219.us, %9
  %151 = icmp ult i32 %150, %43
  br i1 %151, label %146, label %._crit_edge221.us, !llvm.loop !27

._crit_edge221.us:                                ; preds = %146
  %152 = add nuw i32 %.1223.us, 1
  %exitcond236.not = icmp eq i32 %152, %5
  br i1 %exitcond236.not, label %.loopexit, label %.preheader.us, !llvm.loop !28

.preheader.lr.ph.split:                           ; preds = %.preheader.lr.ph
  br i1 %45, label %.preheader.us224, label %.loopexit

.preheader.us224:                                 ; preds = %.preheader.lr.ph.split, %.preheader.us224
  %.1223.us225 = phi i32 [ %159, %.preheader.us224 ], [ 0, %.preheader.lr.ph.split ]
  %153 = urem i32 %.1223.us225, 20
  %154 = zext nneg i32 %153 to i64
  %155 = getelementptr inbounds [20 x i32], ptr @libxsmm_generator_gemm_rv64_microkernel_rvv.fp_regid, i64 0, i64 %154
  %156 = load i32, ptr %155, align 4, !tbaa !18
  %157 = mul i32 %.1223.us225, %47
  %158 = add i32 %125, %157
  tail call void @libxsmm_rv64_instruction_rvv_compute(ptr noundef %0, i32 noundef -1342156713, i32 noundef %156, i32 noundef %123, i32 noundef %158, i32 noundef 1) #5
  %159 = add nuw i32 %.1223.us225, 1
  %exitcond238.not = icmp eq i32 %159, %5
  br i1 %exitcond238.not, label %.loopexit, label %.preheader.us224, !llvm.loop !28

160:                                              ; preds = %.lr.ph218, %191
  %.0180217 = phi i32 [ 0, %.lr.ph218 ], [ %192, %191 ]
  %.0187216 = phi i32 [ 0, %.lr.ph218 ], [ %.1188, %191 ]
  %161 = load i32, ptr %83, align 4, !tbaa !29
  %162 = urem i32 %.0180217, 20
  %163 = zext nneg i32 %162 to i64
  %164 = getelementptr inbounds [20 x i32], ptr @libxsmm_generator_gemm_rv64_microkernel_rvv.fp_regid, i64 0, i64 %163
  %165 = load i32, ptr %164, align 4, !tbaa !18
  tail call void @libxsmm_rv64_instruction_alu_move(ptr noundef %0, i32 noundef %17, i32 noundef %161, i32 noundef %165, i32 noundef %.0187216) #5
  %.not205 = icmp eq i32 %.0180217, %84
  br i1 %.not205, label %174, label %166

166:                                              ; preds = %160
  %167 = add i32 %.0187216, %52
  %168 = icmp ugt i32 %167, 2046
  br i1 %168, label %169, label %191

169:                                              ; preds = %166
  %170 = load i32, ptr %83, align 4, !tbaa !29
  br i1 %85, label %171, label %173

171:                                              ; preds = %169
  %172 = load i32, ptr %86, align 4, !tbaa !24
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 51, i32 noundef %170, i32 noundef %172, i32 noundef %170, i64 noundef %87) #5
  br label %191

173:                                              ; preds = %169
  tail call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 19, i32 noundef %170, i32 noundef %170, i32 noundef %.0187216) #5
  br label %191

174:                                              ; preds = %160
  %175 = icmp ugt i32 %.0187216, %70
  %or.cond = select i1 %69, i1 %175, i1 false
  br i1 %or.cond, label %176, label %185

176:                                              ; preds = %174
  %177 = sub nsw i32 %.0187216, %70
  %178 = icmp ult i32 %177, 2048
  br i1 %178, label %179, label %181

179:                                              ; preds = %176
  %180 = load i32, ptr %83, align 4, !tbaa !29
  tail call void @libxsmm_rv64_instruction_alu_compute_imm12(ptr noundef %0, i32 noundef 19, i32 noundef %180, i32 noundef %180, i32 noundef %177) #5
  br label %191

181:                                              ; preds = %176
  %182 = zext i32 %177 to i64
  %183 = load i32, ptr %83, align 4, !tbaa !29
  %184 = load i32, ptr %86, align 4, !tbaa !24
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 51, i32 noundef %183, i32 noundef %184, i32 noundef %183, i64 noundef %182) #5
  br label %191

185:                                              ; preds = %174
  %186 = load i32, ptr %83, align 4, !tbaa !29
  %187 = load i32, ptr %86, align 4, !tbaa !24
  %188 = zext nneg i32 %.0187216 to i64
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 51, i32 noundef %186, i32 noundef %187, i32 noundef %186, i64 noundef %188) #5
  %189 = load i32, ptr %83, align 4, !tbaa !29
  %190 = load i32, ptr %86, align 4, !tbaa !24
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef %.0183, i32 noundef %189, i32 noundef %190, i32 noundef %189, i64 noundef %88) #5
  br label %191

191:                                              ; preds = %185, %181, %179, %171, %173, %166
  %.1188 = phi i32 [ 0, %171 ], [ %52, %173 ], [ %167, %166 ], [ 0, %179 ], [ 0, %181 ], [ 0, %185 ]
  %192 = add nuw i32 %.0180217, 1
  %exitcond235.not = icmp eq i32 %192, %5
  br i1 %exitcond235.not, label %.preheader.lr.ph, label %160, !llvm.loop !30

.loopexit:                                        ; preds = %._crit_edge221.us, %._crit_edge221.us.us, %.preheader.us224, %.preheader212, %.preheader.lr.ph.split, %53
  ret void
}

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

declare i32 @LIBXSMM_GEMM_GETENUM_AB_COMMON_PREC(ptr noundef) local_unnamed_addr #2

declare i32 @LIBXSMM_GEMM_GETENUM_C_PREC(ptr noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { noreturn nounwind }
attributes #5 = { 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 16}
!6 = !{!"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, !10, i64 33, !10, 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}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"long long", !8, i64 0}
!11 = !{!"short", !8, i64 0}
!12 = !{!13, !7, i64 12}
!13 = !{!"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, !14, 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, !15, i64 592, !7, i64 600, !7, i64 604, !7, i64 608, !7, i64 612, !15, 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}
!14 = !{!"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}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!13, !7, i64 8}
!17 = !{!6, !7, i64 24}
!18 = !{!7, !7, i64 0}
!19 = !{!13, !7, i64 4}
!20 = !{!21, !7, i64 4}
!21 = !{!"libxsmm_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}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!21, !7, i64 88}
!25 = !{!6, !7, i64 12}
!26 = distinct !{!26, !23}
!27 = distinct !{!27, !23}
!28 = distinct !{!28, !23}
!29 = !{!21, !7, i64 12}
!30 = distinct !{!30, !23}


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