; LLVM IR from libxsmm/libxsmm :: src (generator_mateltwise_unary_binary_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_mateltwise_kernel_config_struct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8 }
%struct.libxsmm_meltw_descriptor = type <{ i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i8 }>
%struct.libxsmm_mateltwise_gp_reg_mapping_struct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_configure_microkernel_rv64_loops(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10, ptr noundef %11, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18, ptr noundef %19, ptr noundef %20) #1 {
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca ptr, align 8
  %32 = alloca ptr, align 8
  %33 = alloca ptr, align 8
  %34 = alloca ptr, align 8
  %35 = alloca ptr, align 8
  %36 = alloca ptr, align 8
  %37 = alloca ptr, align 8
  %38 = alloca ptr, align 8
  %39 = alloca ptr, align 8
  %40 = alloca ptr, align 8
  %41 = alloca ptr, align 8
  %42 = alloca ptr, align 8
  %43 = alloca i32, align 4
  %44 = alloca i32, align 4
  %45 = alloca i32, align 4
  %46 = alloca i32, align 4
  %47 = alloca i32, align 4
  %48 = alloca i32, align 4
  %49 = alloca i32, align 4
  %50 = alloca i32, align 4
  %51 = alloca i32, align 4
  %52 = alloca i32, align 4
  %53 = alloca i32, align 4
  %54 = alloca i32, align 4
  %55 = alloca i32, align 4
  %56 = alloca i32, align 4
  %57 = alloca i32, align 4
  %58 = alloca i32, align 4
  %59 = alloca i32, align 4
  %60 = alloca i32, align 4
  store ptr %0, ptr %22, align 8, !tbaa !5
  store ptr %1, ptr %23, align 8, !tbaa !5
  store ptr %2, ptr %24, align 8, !tbaa !5
  store ptr %3, ptr %25, align 8, !tbaa !5
  store i32 %4, ptr %26, align 4, !tbaa !9
  store i32 %5, ptr %27, align 4, !tbaa !9
  store i32 %6, ptr %28, align 4, !tbaa !9
  store ptr %7, ptr %29, align 8, !tbaa !5
  store ptr %8, ptr %30, align 8, !tbaa !5
  store ptr %9, ptr %31, align 8, !tbaa !5
  store ptr %10, ptr %32, align 8, !tbaa !5
  store ptr %11, ptr %33, align 8, !tbaa !5
  store ptr %12, ptr %34, align 8, !tbaa !5
  store ptr %13, ptr %35, align 8, !tbaa !5
  store ptr %14, ptr %36, align 8, !tbaa !5
  store ptr %15, ptr %37, align 8, !tbaa !5
  store ptr %16, ptr %38, align 8, !tbaa !5
  store ptr %17, ptr %39, align 8, !tbaa !5
  store ptr %18, ptr %40, align 8, !tbaa !5
  store ptr %19, ptr %41, align 8, !tbaa !5
  store ptr %20, ptr %42, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %44) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %45) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %47) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %48) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %49) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %50) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %51) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %52) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %53) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %54) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %55) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %56) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %57) #2
  store i32 32, ptr %57, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %58) #2
  %61 = load ptr, ptr %24, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %61, i32 0, i32 125
  %63 = load i32, ptr %62, align 4, !tbaa !11
  store i32 %63, ptr %58, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #2
  %64 = load ptr, ptr %24, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %64, i32 0, i32 18
  %66 = load i32, ptr %65, align 4, !tbaa !13
  store i32 %66, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #2
  %67 = load ptr, ptr %24, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %67, i32 0, i32 120
  %69 = load i32, ptr %68, align 4, !tbaa !14
  store i32 %69, ptr %60, align 4, !tbaa !9
  %70 = load ptr, ptr %25, align 8, !tbaa !5
  %71 = load ptr, ptr %22, align 8, !tbaa !5
  %72 = load i32, ptr %26, align 4, !tbaa !9
  %73 = load i32, ptr %60, align 4, !tbaa !9
  %74 = sub i32 %73, 1
  %75 = add i32 %72, %74
  %76 = load i32, ptr %60, align 4, !tbaa !9
  %77 = udiv i32 %75, %76
  store i32 %77, ptr %43, align 4, !tbaa !9
  %78 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %78, ptr %44, align 4, !tbaa !9
  %79 = load i32, ptr %57, align 4, !tbaa !9
  %80 = load i32, ptr %59, align 4, !tbaa !9
  %81 = sub i32 %79, %80
  store i32 %81, ptr %57, align 4, !tbaa !9
  %82 = load ptr, ptr %25, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %82, i32 0, i32 9
  %84 = load i16, ptr %83, align 1, !tbaa !15
  %85 = zext i16 %84 to i32
  %86 = and i32 %85, 1
  %87 = icmp sgt i32 %86, 0
  br i1 %87, label %88, label %93

88:                                               ; preds = %21
  %89 = load i32, ptr %60, align 4, !tbaa !9
  %90 = icmp eq i32 %89, 4
  br i1 %90, label %91, label %93

91:                                               ; preds = %88
  %92 = load i32, ptr %43, align 4, !tbaa !9
  store i32 %92, ptr %45, align 4, !tbaa !9
  br label %107

93:                                               ; preds = %88, %21
  %94 = load i32, ptr %28, align 4, !tbaa !9
  %95 = icmp ne i32 %94, 0
  br i1 %95, label %96, label %98

96:                                               ; preds = %93
  %97 = load i32, ptr %43, align 4, !tbaa !9
  store i32 %97, ptr %45, align 4, !tbaa !9
  br label %106

98:                                               ; preds = %93
  %99 = load i32, ptr %43, align 4, !tbaa !9
  %100 = icmp ult i32 %99, 16
  br i1 %100, label %101, label %103

101:                                              ; preds = %98
  %102 = load i32, ptr %43, align 4, !tbaa !9
  br label %104

103:                                              ; preds = %98
  br label %104

104:                                              ; preds = %103, %101
  %105 = phi i32 [ %102, %101 ], [ 16, %103 ]
  store i32 %105, ptr %45, align 4, !tbaa !9
  br label %106

106:                                              ; preds = %104, %96
  br label %107

107:                                              ; preds = %106, %91
  %108 = load i32, ptr %45, align 4, !tbaa !9
  %109 = load i32, ptr %57, align 4, !tbaa !9
  %110 = icmp ugt i32 %108, %109
  br i1 %110, label %111, label %113

111:                                              ; preds = %107
  %112 = load i32, ptr %57, align 4, !tbaa !9
  store i32 %112, ptr %45, align 4, !tbaa !9
  br label %113

113:                                              ; preds = %111, %107
  br label %114

114:                                              ; preds = %119, %113
  %115 = load i32, ptr %43, align 4, !tbaa !9
  %116 = load i32, ptr %45, align 4, !tbaa !9
  %117 = urem i32 %115, %116
  %118 = icmp ne i32 %117, 0
  br i1 %118, label %119, label %122

119:                                              ; preds = %114
  %120 = load i32, ptr %45, align 4, !tbaa !9
  %121 = add i32 %120, -1
  store i32 %121, ptr %45, align 4, !tbaa !9
  br label %114, !llvm.loop !18

122:                                              ; preds = %114
  %123 = load i32, ptr %44, align 4, !tbaa !9
  store i32 %123, ptr %46, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %130, %122
  %125 = load i32, ptr %45, align 4, !tbaa !9
  %126 = load i32, ptr %46, align 4, !tbaa !9
  %127 = mul i32 %125, %126
  %128 = load i32, ptr %57, align 4, !tbaa !9
  %129 = icmp ugt i32 %127, %128
  br i1 %129, label %130, label %133

130:                                              ; preds = %124
  %131 = load i32, ptr %46, align 4, !tbaa !9
  %132 = add i32 %131, -1
  store i32 %132, ptr %46, align 4, !tbaa !9
  br label %124, !llvm.loop !20

133:                                              ; preds = %124
  br label %134

134:                                              ; preds = %139, %133
  %135 = load i32, ptr %44, align 4, !tbaa !9
  %136 = load i32, ptr %46, align 4, !tbaa !9
  %137 = urem i32 %135, %136
  %138 = icmp ne i32 %137, 0
  br i1 %138, label %139, label %142

139:                                              ; preds = %134
  %140 = load i32, ptr %46, align 4, !tbaa !9
  %141 = add i32 %140, -1
  store i32 %141, ptr %46, align 4, !tbaa !9
  br label %134, !llvm.loop !21

142:                                              ; preds = %134
  %143 = load i32, ptr %43, align 4, !tbaa !9
  %144 = load i32, ptr %45, align 4, !tbaa !9
  %145 = udiv i32 %143, %144
  store i32 %145, ptr %47, align 4, !tbaa !9
  %146 = load i32, ptr %44, align 4, !tbaa !9
  %147 = load i32, ptr %46, align 4, !tbaa !9
  %148 = udiv i32 %146, %147
  store i32 %148, ptr %48, align 4, !tbaa !9
  %149 = load i32, ptr %58, align 4, !tbaa !9
  %150 = icmp eq i32 %149, 1
  br i1 %150, label %151, label %153

151:                                              ; preds = %142
  %152 = load i32, ptr %48, align 4, !tbaa !9
  br label %155

153:                                              ; preds = %142
  %154 = load i32, ptr %47, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %153, %151
  %156 = phi i32 [ %152, %151 ], [ %154, %153 ]
  store i32 %156, ptr %49, align 4, !tbaa !9
  %157 = load i32, ptr %58, align 4, !tbaa !9
  %158 = icmp eq i32 %157, 1
  br i1 %158, label %159, label %161

159:                                              ; preds = %155
  %160 = load i32, ptr %44, align 4, !tbaa !9
  br label %163

161:                                              ; preds = %155
  %162 = load i32, ptr %43, align 4, !tbaa !9
  br label %163

163:                                              ; preds = %161, %159
  %164 = phi i32 [ %160, %159 ], [ %162, %161 ]
  store i32 %164, ptr %51, align 4, !tbaa !9
  %165 = load i32, ptr %58, align 4, !tbaa !9
  %166 = icmp eq i32 %165, 1
  br i1 %166, label %167, label %171

167:                                              ; preds = %163
  %168 = load ptr, ptr %23, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %168, i32 0, i32 25
  %170 = load i32, ptr %169, align 4, !tbaa !22
  br label %175

171:                                              ; preds = %163
  %172 = load ptr, ptr %23, align 8, !tbaa !5
  %173 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %172, i32 0, i32 24
  %174 = load i32, ptr %173, align 4, !tbaa !24
  br label %175

175:                                              ; preds = %171, %167
  %176 = phi i32 [ %170, %167 ], [ %174, %171 ]
  store i32 %176, ptr %53, align 4, !tbaa !9
  %177 = load i32, ptr %58, align 4, !tbaa !9
  %178 = icmp eq i32 %177, 1
  br i1 %178, label %179, label %181

179:                                              ; preds = %175
  %180 = load i32, ptr %46, align 4, !tbaa !9
  br label %183

181:                                              ; preds = %175
  %182 = load i32, ptr %45, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %181, %179
  %184 = phi i32 [ %180, %179 ], [ %182, %181 ]
  store i32 %184, ptr %55, align 4, !tbaa !9
  %185 = load i32, ptr %58, align 4, !tbaa !9
  %186 = icmp eq i32 %185, 0
  br i1 %186, label %187, label %189

187:                                              ; preds = %183
  %188 = load i32, ptr %48, align 4, !tbaa !9
  br label %191

189:                                              ; preds = %183
  %190 = load i32, ptr %47, align 4, !tbaa !9
  br label %191

191:                                              ; preds = %189, %187
  %192 = phi i32 [ %188, %187 ], [ %190, %189 ]
  store i32 %192, ptr %50, align 4, !tbaa !9
  %193 = load i32, ptr %58, align 4, !tbaa !9
  %194 = icmp eq i32 %193, 0
  br i1 %194, label %195, label %197

195:                                              ; preds = %191
  %196 = load i32, ptr %44, align 4, !tbaa !9
  br label %199

197:                                              ; preds = %191
  %198 = load i32, ptr %43, align 4, !tbaa !9
  br label %199

199:                                              ; preds = %197, %195
  %200 = phi i32 [ %196, %195 ], [ %198, %197 ]
  store i32 %200, ptr %52, align 4, !tbaa !9
  %201 = load i32, ptr %58, align 4, !tbaa !9
  %202 = icmp eq i32 %201, 0
  br i1 %202, label %203, label %207

203:                                              ; preds = %199
  %204 = load ptr, ptr %23, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %204, i32 0, i32 25
  %206 = load i32, ptr %205, align 4, !tbaa !22
  br label %211

207:                                              ; preds = %199
  %208 = load ptr, ptr %23, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %208, i32 0, i32 24
  %210 = load i32, ptr %209, align 4, !tbaa !24
  br label %211

211:                                              ; preds = %207, %203
  %212 = phi i32 [ %206, %203 ], [ %210, %207 ]
  store i32 %212, ptr %54, align 4, !tbaa !9
  %213 = load i32, ptr %58, align 4, !tbaa !9
  %214 = icmp eq i32 %213, 0
  br i1 %214, label %215, label %217

215:                                              ; preds = %211
  %216 = load i32, ptr %46, align 4, !tbaa !9
  br label %219

217:                                              ; preds = %211
  %218 = load i32, ptr %45, align 4, !tbaa !9
  br label %219

219:                                              ; preds = %217, %215
  %220 = phi i32 [ %216, %215 ], [ %218, %217 ]
  store i32 %220, ptr %56, align 4, !tbaa !9
  %221 = load i32, ptr %43, align 4, !tbaa !9
  %222 = load ptr, ptr %29, align 8, !tbaa !5
  store i32 %221, ptr %222, align 4, !tbaa !9
  %223 = load i32, ptr %44, align 4, !tbaa !9
  %224 = load ptr, ptr %30, align 8, !tbaa !5
  store i32 %223, ptr %224, align 4, !tbaa !9
  %225 = load i32, ptr %45, align 4, !tbaa !9
  %226 = load ptr, ptr %31, align 8, !tbaa !5
  store i32 %225, ptr %226, align 4, !tbaa !9
  %227 = load i32, ptr %46, align 4, !tbaa !9
  %228 = load ptr, ptr %32, align 8, !tbaa !5
  store i32 %227, ptr %228, align 4, !tbaa !9
  %229 = load i32, ptr %47, align 4, !tbaa !9
  %230 = load ptr, ptr %33, align 8, !tbaa !5
  store i32 %229, ptr %230, align 4, !tbaa !9
  %231 = load i32, ptr %48, align 4, !tbaa !9
  %232 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 %231, ptr %232, align 4, !tbaa !9
  %233 = load i32, ptr %49, align 4, !tbaa !9
  %234 = load ptr, ptr %35, align 8, !tbaa !5
  store i32 %233, ptr %234, align 4, !tbaa !9
  %235 = load i32, ptr %50, align 4, !tbaa !9
  %236 = load ptr, ptr %36, align 8, !tbaa !5
  store i32 %235, ptr %236, align 4, !tbaa !9
  %237 = load i32, ptr %51, align 4, !tbaa !9
  %238 = load ptr, ptr %37, align 8, !tbaa !5
  store i32 %237, ptr %238, align 4, !tbaa !9
  %239 = load i32, ptr %52, align 4, !tbaa !9
  %240 = load ptr, ptr %38, align 8, !tbaa !5
  store i32 %239, ptr %240, align 4, !tbaa !9
  %241 = load i32, ptr %53, align 4, !tbaa !9
  %242 = load ptr, ptr %39, align 8, !tbaa !5
  store i32 %241, ptr %242, align 4, !tbaa !9
  %243 = load i32, ptr %54, align 4, !tbaa !9
  %244 = load ptr, ptr %40, align 8, !tbaa !5
  store i32 %243, ptr %244, align 4, !tbaa !9
  %245 = load i32, ptr %55, align 4, !tbaa !9
  %246 = load ptr, ptr %41, align 8, !tbaa !5
  store i32 %245, ptr %246, align 4, !tbaa !9
  %247 = load i32, ptr %56, align 4, !tbaa !9
  %248 = load ptr, ptr %42, align 8, !tbaa !5
  store i32 %247, ptr %248, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %60) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %59) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %58) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %57) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %56) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %55) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %54) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %53) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %52) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %51) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %50) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %49) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %48) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %47) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %45) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %44) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #2
  ret void
}

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


; 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: nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) uwtable
define dso_local void @libxsmm_configure_microkernel_rv64_loops(ptr nocapture noundef readnone %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, ptr nocapture noundef writeonly %7, ptr nocapture noundef writeonly %8, ptr nocapture noundef writeonly %9, ptr nocapture noundef writeonly %10, ptr nocapture noundef writeonly %11, ptr nocapture noundef writeonly %12, ptr nocapture noundef writeonly %13, ptr nocapture noundef writeonly %14, ptr nocapture noundef writeonly %15, ptr nocapture noundef writeonly %16, ptr nocapture noundef writeonly %17, ptr nocapture noundef writeonly %18, ptr nocapture noundef writeonly %19, ptr nocapture noundef writeonly %20) local_unnamed_addr #0 {
  %22 = getelementptr inbounds i8, ptr %2, i64 500
  %23 = load i32, ptr %22, align 4, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %2, i64 72
  %25 = load i32, ptr %24, align 4, !tbaa !10
  %26 = getelementptr inbounds i8, ptr %2, i64 480
  %27 = load i32, ptr %26, align 4, !tbaa !11
  %28 = add i32 %4, -1
  %29 = add i32 %28, %27
  %30 = udiv i32 %29, %27
  %31 = sub i32 32, %25
  %32 = getelementptr inbounds i8, ptr %3, i64 27
  %33 = load i16, ptr %32, align 1, !tbaa !12
  %34 = and i16 %33, 1
  %35 = icmp eq i16 %34, 0
  %36 = icmp ne i32 %27, 4
  %or.cond.not97 = or i1 %36, %35
  %.not = icmp eq i32 %6, 0
  %or.cond94 = and i1 %.not, %or.cond.not97
  %37 = tail call i32 @llvm.umin.i32(i32 %30, i32 16)
  %.0 = select i1 %or.cond94, i32 %37, i32 %30
  %spec.select = tail call i32 @llvm.umin.i32(i32 %.0, i32 %31)
  br label %38

38:                                               ; preds = %38, %21
  %.2 = phi i32 [ %spec.select, %21 ], [ %41, %38 ]
  %39 = urem i32 %30, %.2
  %40 = udiv i32 %30, %.2
  %.not91 = icmp eq i32 %39, 0
  %41 = add i32 %.2, -1
  br i1 %.not91, label %.preheader98, label %38, !llvm.loop !15

.preheader98:                                     ; preds = %38, %.preheader98
  %.088 = phi i32 [ %44, %.preheader98 ], [ %5, %38 ]
  %42 = mul i32 %.088, %.2
  %43 = icmp ugt i32 %42, %31
  %44 = add i32 %.088, -1
  br i1 %43, label %.preheader98, label %.preheader, !llvm.loop !17

.preheader:                                       ; preds = %.preheader98, %.preheader
  %.189 = phi i32 [ %47, %.preheader ], [ %.088, %.preheader98 ]
  %45 = urem i32 %5, %.189
  %46 = udiv i32 %5, %.189
  %.not92 = icmp eq i32 %45, 0
  %47 = add i32 %.189, -1
  br i1 %.not92, label %48, label %.preheader, !llvm.loop !18

48:                                               ; preds = %.preheader
  %49 = icmp eq i32 %23, 1
  %50 = getelementptr inbounds i8, ptr %1, i64 100
  %51 = getelementptr inbounds i8, ptr %1, i64 96
  %.in = select i1 %49, ptr %50, ptr %51
  %52 = load i32, ptr %.in, align 4, !tbaa !19
  %53 = icmp eq i32 %23, 0
  br i1 %53, label %55, label %54

54:                                               ; preds = %48
  br label %55

55:                                               ; preds = %48, %54
  %56 = phi i32 [ %.2, %54 ], [ %.189, %48 ]
  %57 = phi i32 [ %30, %54 ], [ %5, %48 ]
  %58 = phi i32 [ %40, %54 ], [ %46, %48 ]
  %.in93 = phi ptr [ %51, %54 ], [ %50, %48 ]
  %59 = load i32, ptr %.in93, align 4, !tbaa !19
  %60 = select i1 %49, i32 %.189, i32 %.2
  %61 = select i1 %49, i32 %5, i32 %30
  %62 = select i1 %49, i32 %46, i32 %40
  store i32 %30, ptr %7, align 4, !tbaa !19
  store i32 %5, ptr %8, align 4, !tbaa !19
  store i32 %.2, ptr %9, align 4, !tbaa !19
  store i32 %.189, ptr %10, align 4, !tbaa !19
  store i32 %40, ptr %11, align 4, !tbaa !19
  store i32 %46, ptr %12, align 4, !tbaa !19
  store i32 %62, ptr %13, align 4, !tbaa !19
  store i32 %58, ptr %14, align 4, !tbaa !19
  store i32 %61, ptr %15, align 4, !tbaa !19
  store i32 %57, ptr %16, align 4, !tbaa !19
  store i32 %52, ptr %17, align 4, !tbaa !19
  store i32 %59, ptr %18, align 4, !tbaa !19
  store i32 %60, ptr %19, align 4, !tbaa !19
  store i32 %56, ptr %20, align 4, !tbaa !19
  ret void
}

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

attributes #0 = { nofree norecurse nosync nounwind memory(read, argmem: readwrite, inaccessiblemem: none) 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 speculatable willreturn memory(none) }

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


; Effective O3 passes: DivRemPairsPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass