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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.libxsmm_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_aarch64_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
  %61 = 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
  %62 = load ptr, ptr %24, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %62, i32 0, i32 125
  %64 = load i32, ptr %63, align 4, !tbaa !11
  store i32 %64, ptr %58, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %59) #2
  %65 = load ptr, ptr %24, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %65, i32 0, i32 18
  %67 = load i32, ptr %66, align 4, !tbaa !13
  store i32 %67, ptr %59, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %60) #2
  %68 = load ptr, ptr %24, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %68, i32 0, i32 120
  %70 = load i32, ptr %69, align 4, !tbaa !14
  store i32 %70, ptr %60, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %61) #2
  %71 = load ptr, ptr %25, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %71, i32 0, i32 9
  %73 = load i16, ptr %72, align 1, !tbaa !15
  %74 = zext i16 %73 to i32
  %75 = and i32 %74, 1
  %76 = icmp sgt i32 %75, 0
  br i1 %76, label %91, label %77

77:                                               ; preds = %21
  %78 = load ptr, ptr %25, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %78, i32 0, i32 9
  %80 = load i16, ptr %79, align 1, !tbaa !15
  %81 = zext i16 %80 to i32
  %82 = and i32 %81, 128
  %83 = icmp sgt i32 %82, 0
  br i1 %83, label %91, label %84

84:                                               ; preds = %77
  %85 = load ptr, ptr %25, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %85, i32 0, i32 9
  %87 = load i16, ptr %86, align 1, !tbaa !15
  %88 = zext i16 %87 to i32
  %89 = and i32 %88, 1024
  %90 = icmp sgt i32 %89, 0
  br label %91

91:                                               ; preds = %84, %77, %21
  %92 = phi i1 [ true, %77 ], [ true, %21 ], [ %90, %84 ]
  %93 = zext i1 %92 to i64
  %94 = select i1 %92, i32 1, i32 0
  store i32 %94, ptr %61, align 4, !tbaa !9
  %95 = load ptr, ptr %25, align 8, !tbaa !5
  %96 = load ptr, ptr %22, align 8, !tbaa !5
  %97 = load i32, ptr %26, align 4, !tbaa !9
  %98 = load i32, ptr %60, align 4, !tbaa !9
  %99 = sub i32 %98, 1
  %100 = add i32 %97, %99
  %101 = load i32, ptr %60, align 4, !tbaa !9
  %102 = udiv i32 %100, %101
  store i32 %102, ptr %43, align 4, !tbaa !9
  %103 = load i32, ptr %27, align 4, !tbaa !9
  store i32 %103, ptr %44, align 4, !tbaa !9
  %104 = load i32, ptr %57, align 4, !tbaa !9
  %105 = load i32, ptr %59, align 4, !tbaa !9
  %106 = sub i32 %104, %105
  store i32 %106, ptr %57, align 4, !tbaa !9
  %107 = load i32, ptr %61, align 4, !tbaa !9
  %108 = icmp ugt i32 %107, 0
  br i1 %108, label %109, label %114

109:                                              ; preds = %91
  %110 = load i32, ptr %60, align 4, !tbaa !9
  %111 = icmp eq i32 %110, 4
  br i1 %111, label %112, label %114

112:                                              ; preds = %109
  %113 = load i32, ptr %43, align 4, !tbaa !9
  store i32 %113, ptr %45, align 4, !tbaa !9
  br label %128

114:                                              ; preds = %109, %91
  %115 = load i32, ptr %28, align 4, !tbaa !9
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %119

117:                                              ; preds = %114
  %118 = load i32, ptr %43, align 4, !tbaa !9
  store i32 %118, ptr %45, align 4, !tbaa !9
  br label %127

119:                                              ; preds = %114
  %120 = load i32, ptr %43, align 4, !tbaa !9
  %121 = icmp ult i32 %120, 16
  br i1 %121, label %122, label %124

122:                                              ; preds = %119
  %123 = load i32, ptr %43, align 4, !tbaa !9
  br label %125

124:                                              ; preds = %119
  br label %125

125:                                              ; preds = %124, %122
  %126 = phi i32 [ %123, %122 ], [ 16, %124 ]
  store i32 %126, ptr %45, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %125, %117
  br label %128

128:                                              ; preds = %127, %112
  %129 = load i32, ptr %45, align 4, !tbaa !9
  %130 = load i32, ptr %57, align 4, !tbaa !9
  %131 = icmp ugt i32 %129, %130
  br i1 %131, label %132, label %134

132:                                              ; preds = %128
  %133 = load i32, ptr %57, align 4, !tbaa !9
  store i32 %133, ptr %45, align 4, !tbaa !9
  br label %134

134:                                              ; preds = %132, %128
  br label %135

135:                                              ; preds = %140, %134
  %136 = load i32, ptr %43, align 4, !tbaa !9
  %137 = load i32, ptr %45, align 4, !tbaa !9
  %138 = urem i32 %136, %137
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %143

140:                                              ; preds = %135
  %141 = load i32, ptr %45, align 4, !tbaa !9
  %142 = add i32 %141, -1
  store i32 %142, ptr %45, align 4, !tbaa !9
  br label %135, !llvm.loop !18

143:                                              ; preds = %135
  %144 = load i32, ptr %44, align 4, !tbaa !9
  store i32 %144, ptr %46, align 4, !tbaa !9
  br label %145

145:                                              ; preds = %151, %143
  %146 = load i32, ptr %45, align 4, !tbaa !9
  %147 = load i32, ptr %46, align 4, !tbaa !9
  %148 = mul i32 %146, %147
  %149 = load i32, ptr %57, align 4, !tbaa !9
  %150 = icmp ugt i32 %148, %149
  br i1 %150, label %151, label %154

151:                                              ; preds = %145
  %152 = load i32, ptr %46, align 4, !tbaa !9
  %153 = add i32 %152, -1
  store i32 %153, ptr %46, align 4, !tbaa !9
  br label %145, !llvm.loop !20

154:                                              ; preds = %145
  br label %155

155:                                              ; preds = %160, %154
  %156 = load i32, ptr %44, align 4, !tbaa !9
  %157 = load i32, ptr %46, align 4, !tbaa !9
  %158 = urem i32 %156, %157
  %159 = icmp ne i32 %158, 0
  br i1 %159, label %160, label %163

160:                                              ; preds = %155
  %161 = load i32, ptr %46, align 4, !tbaa !9
  %162 = add i32 %161, -1
  store i32 %162, ptr %46, align 4, !tbaa !9
  br label %155, !llvm.loop !21

163:                                              ; preds = %155
  %164 = load i32, ptr %43, align 4, !tbaa !9
  %165 = load i32, ptr %45, align 4, !tbaa !9
  %166 = udiv i32 %164, %165
  store i32 %166, ptr %47, align 4, !tbaa !9
  %167 = load i32, ptr %44, align 4, !tbaa !9
  %168 = load i32, ptr %46, align 4, !tbaa !9
  %169 = udiv i32 %167, %168
  store i32 %169, ptr %48, align 4, !tbaa !9
  %170 = load i32, ptr %58, align 4, !tbaa !9
  %171 = icmp eq i32 %170, 1
  br i1 %171, label %172, label %174

172:                                              ; preds = %163
  %173 = load i32, ptr %48, align 4, !tbaa !9
  br label %176

174:                                              ; preds = %163
  %175 = load i32, ptr %47, align 4, !tbaa !9
  br label %176

176:                                              ; preds = %174, %172
  %177 = phi i32 [ %173, %172 ], [ %175, %174 ]
  store i32 %177, ptr %49, align 4, !tbaa !9
  %178 = load i32, ptr %58, align 4, !tbaa !9
  %179 = icmp eq i32 %178, 1
  br i1 %179, label %180, label %182

180:                                              ; preds = %176
  %181 = load i32, ptr %44, align 4, !tbaa !9
  br label %184

182:                                              ; preds = %176
  %183 = load i32, ptr %43, align 4, !tbaa !9
  br label %184

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

188:                                              ; preds = %184
  %189 = load ptr, ptr %23, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %189, i32 0, i32 25
  %191 = load i32, ptr %190, align 4, !tbaa !22
  br label %196

192:                                              ; preds = %184
  %193 = load ptr, ptr %23, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %193, i32 0, i32 24
  %195 = load i32, ptr %194, align 4, !tbaa !24
  br label %196

196:                                              ; preds = %192, %188
  %197 = phi i32 [ %191, %188 ], [ %195, %192 ]
  store i32 %197, ptr %53, align 4, !tbaa !9
  %198 = load i32, ptr %58, align 4, !tbaa !9
  %199 = icmp eq i32 %198, 1
  br i1 %199, label %200, label %202

200:                                              ; preds = %196
  %201 = load i32, ptr %46, align 4, !tbaa !9
  br label %204

202:                                              ; preds = %196
  %203 = load i32, ptr %45, align 4, !tbaa !9
  br label %204

204:                                              ; preds = %202, %200
  %205 = phi i32 [ %201, %200 ], [ %203, %202 ]
  store i32 %205, ptr %55, align 4, !tbaa !9
  %206 = load i32, ptr %58, align 4, !tbaa !9
  %207 = icmp eq i32 %206, 0
  br i1 %207, label %208, label %210

208:                                              ; preds = %204
  %209 = load i32, ptr %48, align 4, !tbaa !9
  br label %212

210:                                              ; preds = %204
  %211 = load i32, ptr %47, align 4, !tbaa !9
  br label %212

212:                                              ; preds = %210, %208
  %213 = phi i32 [ %209, %208 ], [ %211, %210 ]
  store i32 %213, ptr %50, align 4, !tbaa !9
  %214 = load i32, ptr %58, align 4, !tbaa !9
  %215 = icmp eq i32 %214, 0
  br i1 %215, label %216, label %218

216:                                              ; preds = %212
  %217 = load i32, ptr %44, align 4, !tbaa !9
  br label %220

218:                                              ; preds = %212
  %219 = load i32, ptr %43, align 4, !tbaa !9
  br label %220

220:                                              ; preds = %218, %216
  %221 = phi i32 [ %217, %216 ], [ %219, %218 ]
  store i32 %221, ptr %52, align 4, !tbaa !9
  %222 = load i32, ptr %58, align 4, !tbaa !9
  %223 = icmp eq i32 %222, 0
  br i1 %223, label %224, label %228

224:                                              ; preds = %220
  %225 = load ptr, ptr %23, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %225, i32 0, i32 25
  %227 = load i32, ptr %226, align 4, !tbaa !22
  br label %232

228:                                              ; preds = %220
  %229 = load ptr, ptr %23, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %229, i32 0, i32 24
  %231 = load i32, ptr %230, align 4, !tbaa !24
  br label %232

232:                                              ; preds = %228, %224
  %233 = phi i32 [ %227, %224 ], [ %231, %228 ]
  store i32 %233, ptr %54, align 4, !tbaa !9
  %234 = load i32, ptr %58, align 4, !tbaa !9
  %235 = icmp eq i32 %234, 0
  br i1 %235, label %236, label %238

236:                                              ; preds = %232
  %237 = load i32, ptr %46, align 4, !tbaa !9
  br label %240

238:                                              ; preds = %232
  %239 = load i32, ptr %45, align 4, !tbaa !9
  br label %240

240:                                              ; preds = %238, %236
  %241 = phi i32 [ %237, %236 ], [ %239, %238 ]
  store i32 %241, ptr %56, align 4, !tbaa !9
  %242 = load i32, ptr %43, align 4, !tbaa !9
  %243 = load ptr, ptr %29, align 8, !tbaa !5
  store i32 %242, ptr %243, align 4, !tbaa !9
  %244 = load i32, ptr %44, align 4, !tbaa !9
  %245 = load ptr, ptr %30, align 8, !tbaa !5
  store i32 %244, ptr %245, align 4, !tbaa !9
  %246 = load i32, ptr %45, align 4, !tbaa !9
  %247 = load ptr, ptr %31, align 8, !tbaa !5
  store i32 %246, ptr %247, align 4, !tbaa !9
  %248 = load i32, ptr %46, align 4, !tbaa !9
  %249 = load ptr, ptr %32, align 8, !tbaa !5
  store i32 %248, ptr %249, align 4, !tbaa !9
  %250 = load i32, ptr %47, align 4, !tbaa !9
  %251 = load ptr, ptr %33, align 8, !tbaa !5
  store i32 %250, ptr %251, align 4, !tbaa !9
  %252 = load i32, ptr %48, align 4, !tbaa !9
  %253 = load ptr, ptr %34, align 8, !tbaa !5
  store i32 %252, ptr %253, align 4, !tbaa !9
  %254 = load i32, ptr %49, align 4, !tbaa !9
  %255 = load ptr, ptr %35, align 8, !tbaa !5
  store i32 %254, ptr %255, align 4, !tbaa !9
  %256 = load i32, ptr %50, align 4, !tbaa !9
  %257 = load ptr, ptr %36, align 8, !tbaa !5
  store i32 %256, ptr %257, align 4, !tbaa !9
  %258 = load i32, ptr %51, align 4, !tbaa !9
  %259 = load ptr, ptr %37, align 8, !tbaa !5
  store i32 %258, ptr %259, align 4, !tbaa !9
  %260 = load i32, ptr %52, align 4, !tbaa !9
  %261 = load ptr, ptr %38, align 8, !tbaa !5
  store i32 %260, ptr %261, align 4, !tbaa !9
  %262 = load i32, ptr %53, align 4, !tbaa !9
  %263 = load ptr, ptr %39, align 8, !tbaa !5
  store i32 %262, ptr %263, align 4, !tbaa !9
  %264 = load i32, ptr %54, align 4, !tbaa !9
  %265 = load ptr, ptr %40, align 8, !tbaa !5
  store i32 %264, ptr %265, align 4, !tbaa !9
  %266 = load i32, ptr %55, align 4, !tbaa !9
  %267 = load ptr, ptr %41, align 8, !tbaa !5
  store i32 %266, ptr %267, align 4, !tbaa !9
  %268 = load i32, ptr %56, align 4, !tbaa !9
  %269 = load ptr, ptr %42, align 8, !tbaa !5
  store i32 %268, ptr %269, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %61) #2
  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_aarch64_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 = getelementptr inbounds i8, ptr %3, i64 27
  %29 = load i16, ptr %28, align 1, !tbaa !12
  %30 = and i16 %29, 1153
  %not. = icmp eq i16 %30, 0
  %31 = add i32 %4, -1
  %32 = add i32 %31, %27
  %33 = udiv i32 %32, %27
  %34 = sub i32 32, %25
  %35 = icmp ne i32 %27, 4
  %or.cond = or i1 %not., %35
  %.not95 = icmp eq i32 %6, 0
  %or.cond100 = and i1 %.not95, %or.cond
  %36 = tail call i32 @llvm.umin.i32(i32 %33, i32 16)
  %.0 = select i1 %or.cond100, i32 %36, i32 %33
  %spec.select = tail call i32 @llvm.umin.i32(i32 %.0, i32 %34)
  br label %37

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

.preheader101:                                    ; preds = %37, %.preheader101
  %.091 = phi i32 [ %43, %.preheader101 ], [ %5, %37 ]
  %41 = mul i32 %.091, %.2
  %42 = icmp ugt i32 %41, %34
  %43 = add i32 %.091, -1
  br i1 %42, label %.preheader101, label %.preheader, !llvm.loop !17

.preheader:                                       ; preds = %.preheader101, %.preheader
  %.192 = phi i32 [ %46, %.preheader ], [ %.091, %.preheader101 ]
  %44 = urem i32 %5, %.192
  %45 = udiv i32 %5, %.192
  %.not97 = icmp eq i32 %44, 0
  %46 = add i32 %.192, -1
  br i1 %.not97, label %47, label %.preheader, !llvm.loop !18

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

53:                                               ; preds = %47
  br label %54

54:                                               ; preds = %47, %53
  %55 = phi i32 [ %.2, %53 ], [ %.192, %47 ]
  %56 = phi i32 [ %33, %53 ], [ %5, %47 ]
  %57 = phi i32 [ %39, %53 ], [ %45, %47 ]
  %.in98 = phi ptr [ %50, %53 ], [ %49, %47 ]
  %58 = load i32, ptr %.in98, align 4, !tbaa !19
  %59 = select i1 %48, i32 %.192, i32 %.2
  %60 = select i1 %48, i32 %5, i32 %33
  %61 = select i1 %48, i32 %45, i32 %39
  store i32 %33, 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 %.192, ptr %10, align 4, !tbaa !19
  store i32 %39, ptr %11, align 4, !tbaa !19
  store i32 %45, ptr %12, align 4, !tbaa !19
  store i32 %61, ptr %13, align 4, !tbaa !19
  store i32 %57, ptr %14, align 4, !tbaa !19
  store i32 %60, ptr %15, align 4, !tbaa !19
  store i32 %56, ptr %16, align 4, !tbaa !19
  store i32 %51, ptr %17, align 4, !tbaa !19
  store i32 %58, ptr %18, align 4, !tbaa !19
  store i32 %59, ptr %19, align 4, !tbaa !19
  store i32 %55, 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