; 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_meltw_descriptor = type <{ i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i8 }>
%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_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

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_compute_binary_rv64_2d_reg_block(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, i32 noundef %10) #2 {
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %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 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 i32, align 4
  %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
  store ptr %0, ptr %12, align 8, !tbaa !5
  store ptr %1, ptr %13, align 8, !tbaa !5
  store ptr %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !5
  store i32 %4, ptr %16, align 4, !tbaa !9
  store i32 %5, ptr %17, align 4, !tbaa !9
  store i32 %6, ptr %18, align 4, !tbaa !9
  store i32 %7, ptr %19, align 4, !tbaa !9
  store i32 %8, ptr %20, align 4, !tbaa !9
  store i32 %9, ptr %21, align 4, !tbaa !9
  store i32 %10, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  store i32 0, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  %39 = load ptr, ptr %15, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %39, i32 0, i32 9
  %41 = load i16, ptr %40, align 1, !tbaa !11
  %42 = zext i16 %41 to i32
  %43 = and i32 %42, 2
  %44 = icmp sgt i32 %43, 0
  %45 = zext i1 %44 to i64
  %46 = select i1 %44, i32 1, i32 0
  store i32 %46, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  %47 = load ptr, ptr %15, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %47, i32 0, i32 9
  %49 = load i16, ptr %48, align 1, !tbaa !11
  %50 = zext i16 %49 to i32
  %51 = and i32 %50, 8
  %52 = icmp sgt i32 %51, 0
  %53 = zext i1 %52 to i64
  %54 = select i1 %52, i32 1, i32 0
  store i32 %54, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  %55 = load ptr, ptr %15, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %55, i32 0, i32 9
  %57 = load i16, ptr %56, align 1, !tbaa !11
  %58 = zext i16 %57 to i32
  %59 = and i32 %58, 32
  %60 = icmp sgt i32 %59, 0
  %61 = zext i1 %60 to i64
  %62 = select i1 %60, i32 1, i32 0
  store i32 %62, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  %63 = load i32, ptr %27, align 4, !tbaa !9
  %64 = icmp eq i32 %63, 1
  br i1 %64, label %71, label %65

65:                                               ; preds = %11
  %66 = load i32, ptr %28, align 4, !tbaa !9
  %67 = icmp eq i32 %66, 1
  br i1 %67, label %71, label %68

68:                                               ; preds = %65
  %69 = load i32, ptr %29, align 4, !tbaa !9
  %70 = icmp eq i32 %69, 1
  br label %71

71:                                               ; preds = %68, %65, %11
  %72 = phi i1 [ true, %65 ], [ true, %11 ], [ %70, %68 ]
  %73 = zext i1 %72 to i64
  %74 = select i1 %72, i32 1, i32 0
  store i32 %74, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  %75 = load ptr, ptr %15, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %75, i32 0, i32 3
  %77 = load i32, ptr %76, align 1, !tbaa !14
  %78 = load ptr, ptr %14, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %78, i32 0, i32 5
  %80 = load i32, ptr %79, align 4, !tbaa !15
  %81 = mul i32 %77, %80
  store i32 %81, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #3
  %82 = load ptr, ptr %15, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %82, i32 0, i32 4
  %84 = load i32, ptr %83, align 1, !tbaa !17
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %85, i32 0, i32 3
  %87 = load i32, ptr %86, align 4, !tbaa !18
  %88 = mul i32 %84, %87
  store i32 %88, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #3
  %89 = load i32, ptr %21, align 4, !tbaa !9
  %90 = icmp eq i32 %89, 0
  br i1 %90, label %91, label %99

91:                                               ; preds = %71
  %92 = load ptr, ptr %14, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %92, i32 0, i32 5
  %94 = load i32, ptr %93, align 4, !tbaa !15
  %95 = load i32, ptr %16, align 4, !tbaa !9
  %96 = mul i32 %94, %95
  %97 = load i32, ptr %19, align 4, !tbaa !9
  %98 = mul i32 %96, %97
  br label %110

99:                                               ; preds = %71
  %100 = load ptr, ptr %14, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %100, i32 0, i32 5
  %102 = load i32, ptr %101, align 4, !tbaa !15
  %103 = load i32, ptr %16, align 4, !tbaa !9
  %104 = load i32, ptr %19, align 4, !tbaa !9
  %105 = sub i32 %104, 1
  %106 = mul i32 %103, %105
  %107 = load i32, ptr %21, align 4, !tbaa !9
  %108 = add i32 %106, %107
  %109 = mul i32 %102, %108
  br label %110

110:                                              ; preds = %99, %91
  %111 = phi i32 [ %98, %91 ], [ %109, %99 ]
  store i32 %111, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #3
  %112 = load i32, ptr %21, align 4, !tbaa !9
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %122

114:                                              ; preds = %110
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %115, i32 0, i32 3
  %117 = load i32, ptr %116, align 4, !tbaa !18
  %118 = load i32, ptr %16, align 4, !tbaa !9
  %119 = mul i32 %117, %118
  %120 = load i32, ptr %19, align 4, !tbaa !9
  %121 = mul i32 %119, %120
  br label %133

122:                                              ; preds = %110
  %123 = load ptr, ptr %14, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %123, i32 0, i32 3
  %125 = load i32, ptr %124, align 4, !tbaa !18
  %126 = load i32, ptr %16, align 4, !tbaa !9
  %127 = load i32, ptr %19, align 4, !tbaa !9
  %128 = sub i32 %127, 1
  %129 = mul i32 %126, %128
  %130 = load i32, ptr %21, align 4, !tbaa !9
  %131 = add i32 %129, %130
  %132 = mul i32 %125, %131
  br label %133

133:                                              ; preds = %122, %114
  %134 = phi i32 [ %121, %114 ], [ %132, %122 ]
  store i32 %134, ptr %34, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #3
  store i32 0, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #3
  %135 = load i32, ptr %28, align 4, !tbaa !9
  %136 = icmp eq i32 %135, 1
  br i1 %136, label %137, label %138

137:                                              ; preds = %133
  br label %140

138:                                              ; preds = %133
  %139 = load i32, ptr %20, align 4, !tbaa !9
  br label %140

140:                                              ; preds = %138, %137
  %141 = phi i32 [ 1, %137 ], [ %139, %138 ]
  store i32 %141, ptr %36, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #3
  %142 = load ptr, ptr %14, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %142, i32 0, i32 2
  %144 = load i32, ptr %143, align 4, !tbaa !19
  %145 = icmp eq i32 %144, 8
  %146 = zext i1 %145 to i64
  %147 = select i1 %145, i32 28679, i32 24583
  store i32 %147, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #3
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %148, i32 0, i32 2
  %150 = load i32, ptr %149, align 4, !tbaa !19
  %151 = icmp eq i32 %150, 8
  br i1 %151, label %152, label %153

152:                                              ; preds = %140
  br label %168

153:                                              ; preds = %140
  %154 = load ptr, ptr %14, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %154, i32 0, i32 2
  %156 = load i32, ptr %155, align 4, !tbaa !19
  %157 = icmp eq i32 %156, 4
  br i1 %157, label %158, label %159

158:                                              ; preds = %153
  br label %166

159:                                              ; preds = %153
  %160 = load ptr, ptr %14, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %160, i32 0, i32 2
  %162 = load i32, ptr %161, align 4, !tbaa !19
  %163 = icmp eq i32 %162, 2
  %164 = zext i1 %163 to i64
  %165 = select i1 %163, i32 1, i32 0
  br label %166

166:                                              ; preds = %159, %158
  %167 = phi i32 [ 2, %158 ], [ %165, %159 ]
  br label %168

168:                                              ; preds = %166, %152
  %169 = phi i32 [ 3, %152 ], [ %167, %166 ]
  store i32 %169, ptr %38, align 4, !tbaa !9
  %170 = load ptr, ptr %15, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %170, i32 0, i32 10
  %172 = load i16, ptr %171, align 1, !tbaa !20
  %173 = zext i16 %172 to i32
  switch i32 %173, label %181 [
    i32 1, label %174
    i32 2, label %175
    i32 3, label %176
    i32 4, label %177
    i32 5, label %178
    i32 9, label %179
    i32 10, label %180
  ]

174:                                              ; preds = %168
  store i32 4183, ptr %26, align 4, !tbaa !9
  br label %182

175:                                              ; preds = %168
  store i32 -1879044009, ptr %26, align 4, !tbaa !9
  br label %182

176:                                              ; preds = %168
  store i32 134221911, ptr %26, align 4, !tbaa !9
  br label %182

177:                                              ; preds = %168
  store i32 -2147479465, ptr %26, align 4, !tbaa !9
  br label %182

178:                                              ; preds = %168
  store i32 -1342173097, ptr %26, align 4, !tbaa !9
  br label %182

179:                                              ; preds = %168
  store i32 402657367, ptr %26, align 4, !tbaa !9
  br label %182

180:                                              ; preds = %168
  store i32 268439639, ptr %26, align 4, !tbaa !9
  br label %182

181:                                              ; preds = %168
  br label %182

182:                                              ; preds = %181, %180, %179, %178, %177, %176, %175, %174
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %445, %182
  %184 = load i32, ptr %24, align 4, !tbaa !9
  %185 = load i32, ptr %20, align 4, !tbaa !9
  %186 = icmp ult i32 %184, %185
  br i1 %186, label %187, label %448

187:                                              ; preds = %183
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %188

188:                                              ; preds = %341, %187
  %189 = load i32, ptr %23, align 4, !tbaa !9
  %190 = load i32, ptr %19, align 4, !tbaa !9
  %191 = icmp ult i32 %189, %190
  br i1 %191, label %192, label %344

192:                                              ; preds = %188
  %193 = load i32, ptr %18, align 4, !tbaa !9
  %194 = load i32, ptr %24, align 4, !tbaa !9
  %195 = load i32, ptr %19, align 4, !tbaa !9
  %196 = mul i32 %194, %195
  %197 = add i32 %193, %196
  %198 = load i32, ptr %23, align 4, !tbaa !9
  %199 = add i32 %197, %198
  store i32 %199, ptr %25, align 4, !tbaa !9
  %200 = load i32, ptr %27, align 4, !tbaa !9
  %201 = icmp eq i32 %200, 1
  br i1 %201, label %205, label %202

202:                                              ; preds = %192
  %203 = load i32, ptr %29, align 4, !tbaa !9
  %204 = icmp eq i32 %203, 1
  br i1 %204, label %205, label %246

205:                                              ; preds = %202, %192
  %206 = load i32, ptr %29, align 4, !tbaa !9
  %207 = icmp eq i32 %206, 1
  br i1 %207, label %208, label %209

208:                                              ; preds = %205
  br label %219

209:                                              ; preds = %205
  %210 = load ptr, ptr %14, align 8, !tbaa !5
  %211 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %210, i32 0, i32 3
  %212 = load i32, ptr %211, align 4, !tbaa !18
  %213 = load ptr, ptr %15, align 8, !tbaa !5
  %214 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %213, i32 0, i32 4
  %215 = load i32, ptr %214, align 1, !tbaa !17
  %216 = mul i32 %212, %215
  %217 = load i32, ptr %20, align 4, !tbaa !9
  %218 = mul i32 %216, %217
  br label %219

219:                                              ; preds = %209, %208
  %220 = phi i32 [ 0, %208 ], [ %218, %209 ]
  store i32 %220, ptr %35, align 4, !tbaa !9
  %221 = load ptr, ptr %12, align 8, !tbaa !5
  %222 = load ptr, ptr %13, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %222, i32 0, i32 2
  %224 = load i32, ptr %223, align 4, !tbaa !21
  %225 = load ptr, ptr %13, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %225, i32 0, i32 36
  %227 = load i32, ptr %226, align 4, !tbaa !23
  %228 = load ptr, ptr %14, align 8, !tbaa !5
  %229 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %228, i32 0, i32 29
  %230 = load i32, ptr %229, align 4, !tbaa !24
  %231 = load ptr, ptr %14, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %231, i32 0, i32 3
  %233 = load i32, ptr %232, align 4, !tbaa !18
  %234 = load i32, ptr %23, align 4, !tbaa !9
  %235 = load i32, ptr %19, align 4, !tbaa !9
  %236 = sub i32 %235, 1
  %237 = icmp eq i32 %234, %236
  %238 = zext i1 %237 to i64
  %239 = select i1 %237, i32 1, i32 0
  %240 = load i32, ptr %16, align 4, !tbaa !9
  %241 = load i32, ptr %17, align 4, !tbaa !9
  %242 = load i32, ptr %29, align 4, !tbaa !9
  %243 = icmp eq i32 %242, 1
  %244 = zext i1 %243 to i64
  %245 = select i1 %243, i32 1, i32 0
  call void @libxsmm_generator_bcastload_masked_vreg_rv64(ptr noundef %221, i32 noundef %224, i32 noundef %227, i32 noundef %230, i32 noundef %233, i32 noundef %239, i32 noundef %240, i32 noundef %241, i32 noundef %245)
  br label %246

246:                                              ; preds = %219, %202
  %247 = load i32, ptr %30, align 4, !tbaa !9
  %248 = icmp eq i32 %247, 0
  br i1 %248, label %252, label %249

249:                                              ; preds = %246
  %250 = load i32, ptr %28, align 4, !tbaa !9
  %251 = icmp eq i32 %250, 1
  br i1 %251, label %252, label %333

252:                                              ; preds = %249, %246
  %253 = load i32, ptr %28, align 4, !tbaa !9
  %254 = icmp eq i32 %253, 1
  br i1 %254, label %255, label %257

255:                                              ; preds = %252
  %256 = load i32, ptr %34, align 4, !tbaa !9
  br label %261

257:                                              ; preds = %252
  %258 = load i32, ptr %32, align 4, !tbaa !9
  %259 = load i32, ptr %36, align 4, !tbaa !9
  %260 = mul i32 %258, %259
  br label %261

261:                                              ; preds = %257, %255
  %262 = phi i32 [ %256, %255 ], [ %260, %257 ]
  store i32 %262, ptr %35, align 4, !tbaa !9
  %263 = load i32, ptr %23, align 4, !tbaa !9
  %264 = load i32, ptr %19, align 4, !tbaa !9
  %265 = sub i32 %264, 1
  %266 = icmp eq i32 %263, %265
  br i1 %266, label %267, label %277

267:                                              ; preds = %261
  %268 = load i32, ptr %21, align 4, !tbaa !9
  %269 = icmp ne i32 %268, 0
  br i1 %269, label %270, label %277

270:                                              ; preds = %267
  %271 = load ptr, ptr %12, align 8, !tbaa !5
  %272 = load i32, ptr %17, align 4, !tbaa !9
  %273 = load ptr, ptr %13, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %273, i32 0, i32 35
  %275 = load i32, ptr %274, align 4, !tbaa !25
  %276 = load i32, ptr %38, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_rvv_setvli(ptr noundef %271, i32 noundef %272, i32 noundef %275, i32 noundef %276, i32 noundef 0)
  br label %277

277:                                              ; preds = %270, %267, %261
  %278 = load ptr, ptr %12, align 8, !tbaa !5
  %279 = load i32, ptr %37, align 4, !tbaa !9
  %280 = load ptr, ptr %13, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %280, i32 0, i32 2
  %282 = load i32, ptr %281, align 4, !tbaa !21
  %283 = load ptr, ptr %13, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %283, i32 0, i32 36
  %285 = load i32, ptr %284, align 4, !tbaa !23
  %286 = load ptr, ptr %14, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %286, i32 0, i32 29
  %288 = load i32, ptr %287, align 4, !tbaa !24
  call void @libxsmm_rv64_instruction_rvv_move(ptr noundef %278, i32 noundef %279, i32 noundef %282, i32 noundef %285, i32 noundef %288, i32 noundef 1)
  %289 = load i32, ptr %23, align 4, !tbaa !9
  %290 = load i32, ptr %19, align 4, !tbaa !9
  %291 = sub i32 %290, 1
  %292 = icmp eq i32 %289, %291
  br i1 %292, label %293, label %314

293:                                              ; preds = %277
  %294 = load i32, ptr %21, align 4, !tbaa !9
  %295 = icmp ne i32 %294, 0
  br i1 %295, label %296, label %314

296:                                              ; preds = %293
  %297 = load ptr, ptr %12, align 8, !tbaa !5
  %298 = load ptr, ptr %13, align 8, !tbaa !5
  %299 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %298, i32 0, i32 2
  %300 = load i32, ptr %299, align 4, !tbaa !21
  %301 = load ptr, ptr %13, align 8, !tbaa !5
  %302 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %301, i32 0, i32 36
  %303 = load i32, ptr %302, align 4, !tbaa !23
  %304 = load ptr, ptr %13, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %304, i32 0, i32 2
  %306 = load i32, ptr %305, align 4, !tbaa !21
  %307 = load i32, ptr %21, align 4, !tbaa !9
  %308 = zext i32 %307 to i64
  %309 = load ptr, ptr %14, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %309, i32 0, i32 2
  %311 = load i32, ptr %310, align 4, !tbaa !19
  %312 = zext i32 %311 to i64
  %313 = mul i64 %308, %312
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %297, i32 noundef 51, i32 noundef %300, i32 noundef %303, i32 noundef %306, i64 noundef %313)
  br label %332

314:                                              ; preds = %293, %277
  %315 = load ptr, ptr %12, align 8, !tbaa !5
  %316 = load ptr, ptr %13, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %316, i32 0, i32 2
  %318 = load i32, ptr %317, align 4, !tbaa !21
  %319 = load ptr, ptr %13, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %319, i32 0, i32 36
  %321 = load i32, ptr %320, align 4, !tbaa !23
  %322 = load ptr, ptr %13, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %322, i32 0, i32 2
  %324 = load i32, ptr %323, align 4, !tbaa !21
  %325 = load i32, ptr %16, align 4, !tbaa !9
  %326 = zext i32 %325 to i64
  %327 = load ptr, ptr %14, align 8, !tbaa !5
  %328 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %327, i32 0, i32 2
  %329 = load i32, ptr %328, align 4, !tbaa !19
  %330 = zext i32 %329 to i64
  %331 = mul i64 %326, %330
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %315, i32 noundef 51, i32 noundef %318, i32 noundef %321, i32 noundef %324, i64 noundef %331)
  br label %332

332:                                              ; preds = %314, %296
  br label %333

333:                                              ; preds = %332, %249
  %334 = load ptr, ptr %12, align 8, !tbaa !5
  %335 = load i32, ptr %26, align 4, !tbaa !9
  %336 = load i32, ptr %25, align 4, !tbaa !9
  %337 = load ptr, ptr %14, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %337, i32 0, i32 29
  %339 = load i32, ptr %338, align 4, !tbaa !24
  %340 = load i32, ptr %25, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_rvv_compute(ptr noundef %334, i32 noundef %335, i32 noundef %336, i32 noundef %339, i32 noundef %340, i32 noundef 1)
  br label %341

341:                                              ; preds = %333
  %342 = load i32, ptr %23, align 4, !tbaa !9
  %343 = add i32 %342, 1
  store i32 %343, ptr %23, align 4, !tbaa !9
  br label %188, !llvm.loop !26

344:                                              ; preds = %188
  %345 = load ptr, ptr %12, align 8, !tbaa !5
  %346 = load i32, ptr %16, align 4, !tbaa !9
  %347 = load ptr, ptr %13, align 8, !tbaa !5
  %348 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %347, i32 0, i32 35
  %349 = load i32, ptr %348, align 4, !tbaa !25
  %350 = load i32, ptr %38, align 4, !tbaa !9
  call void @libxsmm_rv64_instruction_rvv_setivli(ptr noundef %345, i32 noundef %346, i32 noundef %349, i32 noundef %350, i32 noundef 0)
  %351 = load i32, ptr %31, align 4, !tbaa !9
  %352 = load i32, ptr %33, align 4, !tbaa !9
  %353 = icmp ne i32 %351, %352
  br i1 %353, label %354, label %376

354:                                              ; preds = %344
  %355 = load ptr, ptr %15, align 8, !tbaa !5
  %356 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %355, i32 0, i32 10
  %357 = load i16, ptr %356, align 1, !tbaa !20
  %358 = zext i16 %357 to i32
  %359 = icmp eq i32 %358, 5
  br i1 %359, label %360, label %376

360:                                              ; preds = %354
  %361 = load ptr, ptr %12, align 8, !tbaa !5
  %362 = load ptr, ptr %13, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %362, i32 0, i32 6
  %364 = load i32, ptr %363, align 4, !tbaa !28
  %365 = load ptr, ptr %13, align 8, !tbaa !5
  %366 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %365, i32 0, i32 35
  %367 = load i32, ptr %366, align 4, !tbaa !25
  %368 = load ptr, ptr %13, align 8, !tbaa !5
  %369 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %368, i32 0, i32 6
  %370 = load i32, ptr %369, align 4, !tbaa !28
  %371 = load i32, ptr %31, align 4, !tbaa !9
  %372 = zext i32 %371 to i64
  %373 = load i32, ptr %33, align 4, !tbaa !9
  %374 = zext i32 %373 to i64
  %375 = sub nsw i64 %372, %374
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %361, i32 noundef 51, i32 noundef %364, i32 noundef %367, i32 noundef %370, i64 noundef %375)
  br label %376

376:                                              ; preds = %360, %354, %344
  %377 = load i32, ptr %30, align 4, !tbaa !9
  %378 = icmp eq i32 %377, 0
  br i1 %378, label %379, label %400

379:                                              ; preds = %376
  %380 = load i32, ptr %32, align 4, !tbaa !9
  %381 = load i32, ptr %34, align 4, !tbaa !9
  %382 = icmp ne i32 %380, %381
  br i1 %382, label %383, label %399

383:                                              ; preds = %379
  %384 = load ptr, ptr %12, align 8, !tbaa !5
  %385 = load ptr, ptr %13, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %385, i32 0, i32 2
  %387 = load i32, ptr %386, align 4, !tbaa !21
  %388 = load ptr, ptr %13, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %388, i32 0, i32 35
  %390 = load i32, ptr %389, align 4, !tbaa !25
  %391 = load ptr, ptr %13, align 8, !tbaa !5
  %392 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %391, i32 0, i32 2
  %393 = load i32, ptr %392, align 4, !tbaa !21
  %394 = load i32, ptr %32, align 4, !tbaa !9
  %395 = zext i32 %394 to i64
  %396 = load i32, ptr %34, align 4, !tbaa !9
  %397 = zext i32 %396 to i64
  %398 = sub nsw i64 %395, %397
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %384, i32 noundef 51, i32 noundef %387, i32 noundef %390, i32 noundef %393, i64 noundef %398)
  br label %399

399:                                              ; preds = %383, %379
  br label %400

400:                                              ; preds = %399, %376
  %401 = load i32, ptr %28, align 4, !tbaa !9
  %402 = icmp eq i32 %401, 1
  br i1 %402, label %403, label %421

403:                                              ; preds = %400
  %404 = load i32, ptr %24, align 4, !tbaa !9
  %405 = load i32, ptr %20, align 4, !tbaa !9
  %406 = sub i32 %405, 1
  %407 = icmp ult i32 %404, %406
  br i1 %407, label %408, label %421

408:                                              ; preds = %403
  %409 = load ptr, ptr %12, align 8, !tbaa !5
  %410 = load ptr, ptr %13, align 8, !tbaa !5
  %411 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %410, i32 0, i32 2
  %412 = load i32, ptr %411, align 4, !tbaa !21
  %413 = load ptr, ptr %13, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %413, i32 0, i32 35
  %415 = load i32, ptr %414, align 4, !tbaa !25
  %416 = load ptr, ptr %13, align 8, !tbaa !5
  %417 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %416, i32 0, i32 2
  %418 = load i32, ptr %417, align 4, !tbaa !21
  %419 = load i32, ptr %35, align 4, !tbaa !9
  %420 = zext i32 %419 to i64
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %409, i32 noundef 1073741875, i32 noundef %412, i32 noundef %415, i32 noundef %418, i64 noundef %420)
  br label %421

421:                                              ; preds = %408, %403, %400
  %422 = load i32, ptr %27, align 4, !tbaa !9
  %423 = icmp eq i32 %422, 1
  br i1 %423, label %424, label %444

424:                                              ; preds = %421
  %425 = load ptr, ptr %12, align 8, !tbaa !5
  %426 = load ptr, ptr %13, align 8, !tbaa !5
  %427 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %426, i32 0, i32 2
  %428 = load i32, ptr %427, align 4, !tbaa !21
  %429 = load ptr, ptr %13, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %429, i32 0, i32 35
  %431 = load i32, ptr %430, align 4, !tbaa !25
  %432 = load ptr, ptr %13, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %432, i32 0, i32 2
  %434 = load i32, ptr %433, align 4, !tbaa !21
  %435 = load ptr, ptr %15, align 8, !tbaa !5
  %436 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %435, i32 0, i32 4
  %437 = load i32, ptr %436, align 1, !tbaa !17
  %438 = zext i32 %437 to i64
  %439 = load ptr, ptr %14, align 8, !tbaa !5
  %440 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %439, i32 0, i32 3
  %441 = load i32, ptr %440, align 4, !tbaa !18
  %442 = zext i32 %441 to i64
  %443 = mul nsw i64 %438, %442
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %425, i32 noundef 51, i32 noundef %428, i32 noundef %431, i32 noundef %434, i64 noundef %443)
  br label %444

444:                                              ; preds = %424, %421
  br label %445

445:                                              ; preds = %444
  %446 = load i32, ptr %24, align 4, !tbaa !9
  %447 = add i32 %446, 1
  store i32 %447, ptr %24, align 4, !tbaa !9
  br label %183, !llvm.loop !29

448:                                              ; preds = %183
  %449 = load ptr, ptr %12, align 8, !tbaa !5
  %450 = load ptr, ptr %13, align 8, !tbaa !5
  %451 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %450, i32 0, i32 2
  %452 = load i32, ptr %451, align 4, !tbaa !21
  %453 = load ptr, ptr %13, align 8, !tbaa !5
  %454 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %453, i32 0, i32 35
  %455 = load i32, ptr %454, align 4, !tbaa !25
  %456 = load ptr, ptr %13, align 8, !tbaa !5
  %457 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %456, i32 0, i32 2
  %458 = load i32, ptr %457, align 4, !tbaa !21
  %459 = load i32, ptr %35, align 4, !tbaa !9
  %460 = zext i32 %459 to i64
  call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %449, i32 noundef 1073741875, i32 noundef %452, i32 noundef %455, i32 noundef %458, i64 noundef %460)
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 27}
!12 = !{!"libxsmm_meltw_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !13, i64 27, !13, i64 29, !7, i64 31}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !10, i64 12}
!15 = !{!16, !10, i64 20}
!16 = !{!"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}
!17 = !{!12, !10, i64 16}
!18 = !{!16, !10, i64 12}
!19 = !{!16, !10, i64 8}
!20 = !{!12, !13, i64 29}
!21 = !{!22, !10, i64 8}
!22 = !{!"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}
!23 = !{!22, !10, i64 144}
!24 = !{!16, !10, i64 116}
!25 = !{!22, !10, i64 140}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!22, !10, i64 24}
!29 = distinct !{!29, !27}


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

@switch.table.libxsmm_compute_binary_rv64_2d_reg_block = private unnamed_addr constant [10 x i32] [i32 4183, i32 -1879044009, i32 134221911, i32 -2147479465, i32 -1342173097, i32 0, i32 0, i32 0, i32 402657367, i32 268439639], align 4

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_compute_binary_rv64_2d_reg_block(ptr noundef %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, i32 noundef %7, i32 noundef %8, i32 noundef %9, i32 noundef %10) local_unnamed_addr #1 {
  %12 = getelementptr inbounds i8, ptr %3, i64 27
  %13 = load i16, ptr %12, align 1, !tbaa !5
  %14 = zext i16 %13 to i32
  %15 = and i32 %14, 2
  %.not161 = icmp eq i32 %15, 0
  %16 = and i32 %14, 8
  %17 = icmp eq i32 %16, 0
  %18 = and i32 %14, 32
  %.not166 = icmp eq i32 %18, 0
  %.lobit = lshr exact i32 %18, 5
  %19 = and i32 %14, 42
  %spec.select = icmp ne i32 %19, 0
  %20 = getelementptr inbounds i8, ptr %3, i64 12
  %21 = load i32, ptr %20, align 1, !tbaa !11
  %22 = getelementptr inbounds i8, ptr %2, i64 20
  %23 = load i32, ptr %22, align 4, !tbaa !12
  %24 = mul i32 %23, %21
  %25 = getelementptr inbounds i8, ptr %3, i64 16
  %26 = load i32, ptr %25, align 1, !tbaa !14
  %27 = getelementptr inbounds i8, ptr %2, i64 12
  %28 = load i32, ptr %27, align 4, !tbaa !15
  %29 = mul i32 %28, %26
  %30 = icmp eq i32 %9, 0
  br i1 %30, label %31, label %35

31:                                               ; preds = %11
  %32 = mul i32 %7, %4
  %33 = mul i32 %32, %23
  %34 = mul i32 %32, %28
  br label %41

35:                                               ; preds = %11
  %36 = add i32 %7, -1
  %37 = mul i32 %36, %4
  %38 = add i32 %37, %9
  %39 = mul i32 %23, %38
  %40 = mul i32 %28, %38
  br label %41

41:                                               ; preds = %35, %31
  %42 = phi i32 [ %33, %31 ], [ %39, %35 ]
  %43 = phi i32 [ %34, %31 ], [ %40, %35 ]
  %44 = getelementptr inbounds i8, ptr %2, i64 8
  %45 = load i32, ptr %44, align 4, !tbaa !16
  %46 = icmp eq i32 %45, 8
  %47 = select i1 %46, i32 28679, i32 24583
  br i1 %46, label %53, label %48

48:                                               ; preds = %41
  %49 = icmp eq i32 %45, 4
  br i1 %49, label %53, label %50

50:                                               ; preds = %48
  %51 = icmp eq i32 %45, 2
  %52 = zext i1 %51 to i32
  br label %53

53:                                               ; preds = %50, %48, %41
  %54 = phi i32 [ 3, %41 ], [ %52, %50 ], [ 2, %48 ]
  %55 = getelementptr inbounds i8, ptr %3, i64 29
  %56 = load i16, ptr %55, align 1, !tbaa !17
  %switch.tableidx = add i16 %56, -1
  %57 = icmp ult i16 %switch.tableidx, 10
  br i1 %57, label %switch.lookup, label %59

switch.lookup:                                    ; preds = %53
  %58 = zext nneg i16 %switch.tableidx to i64
  %switch.gep = getelementptr inbounds [10 x i32], ptr @switch.table.libxsmm_compute_binary_rv64_2d_reg_block, i64 0, i64 %58
  %switch.load = load i32, ptr %switch.gep, align 4
  br label %59

59:                                               ; preds = %switch.lookup, %53
  %.0148 = phi i32 [ 0, %53 ], [ %switch.load, %switch.lookup ]
  %.not174 = icmp eq i32 %8, 0
  br i1 %.not174, label %._crit_edge173, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %59
  %.not175 = icmp eq i32 %7, 0
  %60 = and i32 %14, 34
  %or.cond3.not = icmp eq i32 %60, 0
  %61 = getelementptr inbounds i8, ptr %1, i64 8
  %62 = getelementptr inbounds i8, ptr %1, i64 144
  %63 = getelementptr inbounds i8, ptr %2, i64 116
  %64 = add i32 %7, -1
  %or.cond5.not = and i1 %17, %spec.select
  %65 = mul i32 %29, %8
  %66 = select i1 %17, i32 %65, i32 %43
  %67 = icmp ne i32 %9, 0
  %68 = getelementptr inbounds i8, ptr %1, i64 140
  %or.cond5.not.fr = freeze i1 %or.cond5.not
  %.not = icmp eq i32 %24, %42
  %69 = getelementptr inbounds i8, ptr %1, i64 24
  %70 = zext i32 %24 to i64
  %71 = zext i32 %42 to i64
  %72 = sub nsw i64 %70, %71
  %.not160 = icmp eq i32 %29, %43
  %or.cond = select i1 %spec.select, i1 true, i1 %.not160
  %73 = zext i32 %29 to i64
  %74 = zext i32 %43 to i64
  %75 = sub nsw i64 %73, %74
  %76 = add i32 %8, -1
  br label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %144
  %.0147172 = phi i32 [ 0, %.preheader.lr.ph ], [ %145, %144 ]
  %.0149171 = phi i32 [ 0, %.preheader.lr.ph ], [ %.1.lcssa, %144 ]
  br i1 %.not175, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %77 = mul i32 %.0147172, %7
  %78 = add i32 %77, %6
  br i1 %or.cond5.not.fr, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  br i1 %or.cond3.not, label %.lr.ph.split.us.split.us, label %.lr.ph.split.us.split

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us, %.lr.ph.split.us.split.us
  %.0169.us.us = phi i32 [ %81, %.lr.ph.split.us.split.us ], [ 0, %.lr.ph.split.us ]
  %79 = add i32 %78, %.0169.us.us
  %80 = load i32, ptr %63, align 4, !tbaa !18
  tail call void @libxsmm_rv64_instruction_rvv_compute(ptr noundef %0, i32 noundef %.0148, i32 noundef %79, i32 noundef %80, i32 noundef %79, i32 noundef 1) #2
  %81 = add nuw i32 %.0169.us.us, 1
  %exitcond179.not = icmp eq i32 %81, %7
  br i1 %exitcond179.not, label %._crit_edge, label %.lr.ph.split.us.split.us, !llvm.loop !19

.lr.ph.split.us.split:                            ; preds = %.lr.ph.split.us, %87
  %.0169.us = phi i32 [ %95, %87 ], [ 0, %.lr.ph.split.us ]
  %82 = add i32 %78, %.0169.us
  %.pre = load i32, ptr %27, align 4, !tbaa !15
  br i1 %.not166, label %83, label %87

83:                                               ; preds = %.lr.ph.split.us.split
  %84 = load i32, ptr %25, align 1, !tbaa !14
  %85 = mul i32 %.pre, %8
  %86 = mul i32 %85, %84
  br label %87

87:                                               ; preds = %83, %.lr.ph.split.us.split
  %88 = phi i32 [ %86, %83 ], [ 0, %.lr.ph.split.us.split ]
  %89 = load i32, ptr %61, align 4, !tbaa !21
  %90 = load i32, ptr %62, align 4, !tbaa !23
  %91 = load i32, ptr %63, align 4, !tbaa !18
  %92 = icmp eq i32 %.0169.us, %64
  %93 = zext i1 %92 to i32
  tail call void @libxsmm_generator_bcastload_masked_vreg_rv64(ptr noundef %0, i32 noundef %89, i32 noundef %90, i32 noundef %91, i32 noundef %.pre, i32 noundef %93, i32 noundef %4, i32 noundef %5, i32 noundef %.lobit) #2
  %94 = load i32, ptr %63, align 4, !tbaa !18
  tail call void @libxsmm_rv64_instruction_rvv_compute(ptr noundef %0, i32 noundef %.0148, i32 noundef %82, i32 noundef %94, i32 noundef %82, i32 noundef 1) #2
  %95 = add nuw i32 %.0169.us, 1
  %exitcond178.not = icmp eq i32 %95, %7
  br i1 %exitcond178.not, label %._crit_edge, label %.lr.ph.split.us.split, !llvm.loop !19

.lr.ph.split:                                     ; preds = %.lr.ph, %.critedge
  %.0169 = phi i32 [ %117, %.critedge ], [ 0, %.lr.ph ]
  %96 = add i32 %78, %.0169
  br i1 %or.cond3.not, label %104, label %97

97:                                               ; preds = %.lr.ph.split
  %98 = load i32, ptr %61, align 4, !tbaa !21
  %99 = load i32, ptr %62, align 4, !tbaa !23
  %100 = load i32, ptr %63, align 4, !tbaa !18
  %101 = load i32, ptr %27, align 4, !tbaa !15
  %102 = icmp eq i32 %.0169, %64
  %103 = zext i1 %102 to i32
  tail call void @libxsmm_generator_bcastload_masked_vreg_rv64(ptr noundef %0, i32 noundef %98, i32 noundef %99, i32 noundef %100, i32 noundef %101, i32 noundef %103, i32 noundef %4, i32 noundef %5, i32 noundef %.lobit) #2
  br label %104

104:                                              ; preds = %.lr.ph.split, %97
  %105 = icmp eq i32 %.0169, %64
  %or.cond7 = and i1 %67, %105
  br i1 %or.cond7, label %106, label %.critedge

106:                                              ; preds = %104
  %107 = load i32, ptr %68, align 4, !tbaa !24
  tail call void @libxsmm_rv64_instruction_rvv_setvli(ptr noundef %0, i32 noundef %5, i32 noundef %107, i32 noundef %54, i32 noundef 0) #2
  br label %.critedge

.critedge:                                        ; preds = %104, %106
  %.sink187.in = phi i32 [ %9, %106 ], [ %4, %104 ]
  %.sink187 = zext i32 %.sink187.in to i64
  %108 = load i32, ptr %61, align 4, !tbaa !21
  %109 = load i32, ptr %62, align 4, !tbaa !23
  %110 = load i32, ptr %63, align 4, !tbaa !18
  tail call void @libxsmm_rv64_instruction_rvv_move(ptr noundef %0, i32 noundef %47, i32 noundef %108, i32 noundef %109, i32 noundef %110, i32 noundef 1) #2
  %111 = load i32, ptr %61, align 4, !tbaa !21
  %112 = load i32, ptr %62, align 4, !tbaa !23
  %113 = load i32, ptr %44, align 4, !tbaa !16
  %114 = zext i32 %113 to i64
  %115 = mul nuw i64 %114, %.sink187
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 51, i32 noundef %111, i32 noundef %112, i32 noundef %111, i64 noundef %115) #2
  %116 = load i32, ptr %63, align 4, !tbaa !18
  tail call void @libxsmm_rv64_instruction_rvv_compute(ptr noundef %0, i32 noundef %.0148, i32 noundef %96, i32 noundef %116, i32 noundef %96, i32 noundef 1) #2
  %117 = add nuw i32 %.0169, 1
  %exitcond.not = icmp eq i32 %117, %7
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph.split, !llvm.loop !19

._crit_edge:                                      ; preds = %.critedge, %87, %.lr.ph.split.us.split.us, %.preheader
  %.1.lcssa = phi i32 [ %.0149171, %.preheader ], [ %.0149171, %.lr.ph.split.us.split.us ], [ %88, %87 ], [ %66, %.critedge ]
  %118 = load i32, ptr %68, align 4, !tbaa !24
  tail call void @libxsmm_rv64_instruction_rvv_setivli(ptr noundef %0, i32 noundef %4, i32 noundef %118, i32 noundef %54, i32 noundef 0) #2
  br i1 %.not, label %125, label %119

119:                                              ; preds = %._crit_edge
  %120 = load i16, ptr %55, align 1, !tbaa !17
  %121 = icmp eq i16 %120, 5
  br i1 %121, label %122, label %125

122:                                              ; preds = %119
  %123 = load i32, ptr %69, align 4, !tbaa !25
  %124 = load i32, ptr %68, align 4, !tbaa !24
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 51, i32 noundef %123, i32 noundef %124, i32 noundef %123, i64 noundef %72) #2
  br label %125

125:                                              ; preds = %122, %119, %._crit_edge
  br i1 %or.cond, label %129, label %126

126:                                              ; preds = %125
  %127 = load i32, ptr %61, align 4, !tbaa !21
  %128 = load i32, ptr %68, align 4, !tbaa !24
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 51, i32 noundef %127, i32 noundef %128, i32 noundef %127, i64 noundef %75) #2
  br label %129

129:                                              ; preds = %126, %125
  %130 = icmp uge i32 %.0147172, %76
  %or.cond165.not = or i1 %17, %130
  br i1 %or.cond165.not, label %135, label %131

131:                                              ; preds = %129
  %132 = load i32, ptr %61, align 4, !tbaa !21
  %133 = load i32, ptr %68, align 4, !tbaa !24
  %134 = zext i32 %.1.lcssa to i64
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 1073741875, i32 noundef %132, i32 noundef %133, i32 noundef %132, i64 noundef %134) #2
  br label %135

135:                                              ; preds = %131, %129
  br i1 %.not161, label %144, label %136

136:                                              ; preds = %135
  %137 = load i32, ptr %61, align 4, !tbaa !21
  %138 = load i32, ptr %68, align 4, !tbaa !24
  %139 = load i32, ptr %25, align 1, !tbaa !14
  %140 = zext i32 %139 to i64
  %141 = load i32, ptr %27, align 4, !tbaa !15
  %142 = zext i32 %141 to i64
  %143 = mul nuw nsw i64 %142, %140
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 51, i32 noundef %137, i32 noundef %138, i32 noundef %137, i64 noundef %143) #2
  br label %144

144:                                              ; preds = %135, %136
  %145 = add nuw i32 %.0147172, 1
  %exitcond180.not = icmp eq i32 %145, %8
  br i1 %exitcond180.not, label %._crit_edge173.loopexit, label %.preheader, !llvm.loop !26

._crit_edge173.loopexit:                          ; preds = %144
  %146 = zext i32 %.1.lcssa to i64
  br label %._crit_edge173

._crit_edge173:                                   ; preds = %._crit_edge173.loopexit, %59
  %.0149.lcssa = phi i64 [ 0, %59 ], [ %146, %._crit_edge173.loopexit ]
  %147 = getelementptr inbounds i8, ptr %1, i64 8
  %148 = load i32, ptr %147, align 4, !tbaa !21
  %149 = getelementptr inbounds i8, ptr %1, i64 140
  %150 = load i32, ptr %149, align 4, !tbaa !24
  tail call void @libxsmm_rv64_instruction_alu_compute_imm64(ptr noundef %0, i32 noundef 1073741875, i32 noundef %148, i32 noundef %150, i32 noundef %148, i64 noundef %.0149.lcssa) #2
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !10, i64 27}
!6 = !{!"libxsmm_meltw_descriptor", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !8, i64 24, !8, i64 25, !8, i64 26, !10, i64 27, !10, i64 29, !8, i64 31}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!6, !7, i64 12}
!12 = !{!13, !7, i64 20}
!13 = !{!"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}
!14 = !{!6, !7, i64 16}
!15 = !{!13, !7, i64 12}
!16 = !{!13, !7, i64 8}
!17 = !{!6, !10, i64 29}
!18 = !{!13, !7, i64 116}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!22, !7, i64 8}
!22 = !{!"libxsmm_mateltwise_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, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144}
!23 = !{!22, !7, i64 144}
!24 = !{!22, !7, i64 140}
!25 = !{!22, !7, i64 24}
!26 = distinct !{!26, !20}


; 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