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

; 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_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@stderr = external global ptr, align 8
@.str.22 = external hidden unnamed_addr constant [95 x i8], align 1
@__func__.libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [163 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [163 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [197 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [121 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_instruction_vec_is_hybrid(i32 noundef) #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_instruction_vec_is_regonly(i32 noundef) #0

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_x86_instruction_evex_compute_3reg(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext) #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

declare void @libxsmm_get_x86_instr_name(i32 noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind
declare i32 @snprintf(ptr noundef, i64 noundef, ptr noundef, ...) #3

declare void @libxsmm_append_code_as_string(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %0, i32 noundef %1, i8 noundef signext %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i8 noundef zeroext %8, i32 noundef %9) #0 {
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i8, align 1
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i8, align 1
  %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 ptr, align 8
  %31 = alloca [512 x i8], align 16
  %32 = alloca i32, align 4
  %33 = alloca i32, align 4
  %34 = alloca [16 x i8], align 16
  %35 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store i32 %1, ptr %12, align 4, !tbaa !9
  store i8 %2, ptr %13, align 1, !tbaa !11
  store i32 %3, ptr %14, align 4, !tbaa !9
  store i32 %4, ptr %15, align 4, !tbaa !9
  store i32 %5, ptr %16, align 4, !tbaa !9
  store i32 %6, ptr %17, align 4, !tbaa !9
  store i32 %7, ptr %18, align 4, !tbaa !9
  store i8 %8, ptr %19, align 1, !tbaa !11
  store i32 %9, ptr %20, align 4, !tbaa !9
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = call i32 @libxsmm_x86_instruction_vec_is_hybrid(i32 noundef %36)
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %55

39:                                               ; preds = %10
  %40 = load i32, ptr %12, align 4, !tbaa !9
  %41 = call i32 @libxsmm_x86_instruction_vec_is_regonly(i32 noundef %40)
  %42 = icmp eq i32 %41, 0
  br i1 %42, label %43, label %55

43:                                               ; preds = %39
  %44 = load ptr, ptr @stderr, align 8, !tbaa !5
  %45 = load i32, ptr %12, align 4, !tbaa !9
  %46 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %44, ptr noundef @.str.22, i32 noundef %45) #4
  %47 = load ptr, ptr %11, align 8, !tbaa !5
  %48 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %49 = icmp ult i32 1, %48
  br i1 %49, label %50, label %52

50:                                               ; preds = %43
  %51 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %53

52:                                               ; preds = %43
  br label %53

53:                                               ; preds = %52, %50
  %54 = phi i32 [ %51, %50 ], [ 1, %52 ]
  call void @libxsmm_handle_error(ptr noundef %47, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8, ptr noundef @.str, i32 noundef 1930, i32 noundef %54)
  br label %478

55:                                               ; preds = %39, %10
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %56, i32 0, i32 6
  %58 = load i32, ptr %57, align 4, !tbaa !12
  %59 = icmp ult i32 %58, 1041
  br i1 %59, label %60, label %74

60:                                               ; preds = %55
  %61 = load i32, ptr %17, align 4, !tbaa !9
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %74

63:                                               ; preds = %60
  %64 = load ptr, ptr @stderr, align 8, !tbaa !5
  %65 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %64, ptr noundef @.str.23) #4
  %66 = load ptr, ptr %11, align 8, !tbaa !5
  %67 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %68 = icmp ult i32 1, %67
  br i1 %68, label %69, label %71

69:                                               ; preds = %63
  %70 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %72

71:                                               ; preds = %63
  br label %72

72:                                               ; preds = %71, %69
  %73 = phi i32 [ %70, %69 ], [ 1, %71 ]
  call void @libxsmm_handle_error(ptr noundef %66, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8, ptr noundef @.str, i32 noundef 1937, i32 noundef %73)
  br label %478

74:                                               ; preds = %60, %55
  %75 = load ptr, ptr %11, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %75, i32 0, i32 3
  %77 = load i32, ptr %76, align 8, !tbaa !14
  %78 = icmp ugt i32 %77, 1
  br i1 %78, label %79, label %312

79:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  store i32 2, ptr %22, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = lshr i32 %80, 30
  %82 = and i32 %81, 3
  store i32 %82, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #4
  store i32 0, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  store i32 0, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  store i32 0, ptr %26, align 4, !tbaa !9
  %83 = load ptr, ptr %11, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %83, i32 0, i32 6
  %85 = load i32, ptr %84, align 4, !tbaa !12
  %86 = icmp ult i32 %85, 1005
  br i1 %86, label %87, label %88

87:                                               ; preds = %79
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %95

88:                                               ; preds = %79
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %89, i32 0, i32 6
  %91 = load i32, ptr %90, align 4, !tbaa !12
  %92 = icmp ult i32 %91, 1041
  br i1 %92, label %93, label %94

93:                                               ; preds = %88
  store i32 1, ptr %22, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %93, %88
  br label %95

95:                                               ; preds = %94, %87
  %96 = load i32, ptr %22, align 4, !tbaa !9
  %97 = icmp eq i32 %96, 2
  br i1 %97, label %98, label %105

98:                                               ; preds = %95
  %99 = load i32, ptr %23, align 4, !tbaa !9
  %100 = icmp eq i32 %99, 3
  br i1 %100, label %104, label %101

101:                                              ; preds = %98
  %102 = load i32, ptr %23, align 4, !tbaa !9
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %105

104:                                              ; preds = %101, %98
  store i32 2, ptr %21, align 4, !tbaa !9
  br label %117

105:                                              ; preds = %101, %95
  %106 = load i32, ptr %22, align 4, !tbaa !9
  %107 = icmp uge i32 %106, 1
  br i1 %107, label %108, label %115

108:                                              ; preds = %105
  %109 = load i32, ptr %23, align 4, !tbaa !9
  %110 = icmp eq i32 %109, 1
  br i1 %110, label %114, label %111

111:                                              ; preds = %108
  %112 = load i32, ptr %23, align 4, !tbaa !9
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %111, %108
  store i32 1, ptr %21, align 4, !tbaa !9
  br label %116

115:                                              ; preds = %111, %105
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %116

116:                                              ; preds = %115, %114
  br label %117

117:                                              ; preds = %116, %104
  %118 = load i32, ptr %12, align 4, !tbaa !9
  %119 = lshr i32 %118, 28
  %120 = and i32 %119, 3
  %121 = icmp eq i32 %120, 2
  br i1 %121, label %122, label %151

122:                                              ; preds = %117
  %123 = load i32, ptr %21, align 4, !tbaa !9
  %124 = icmp ne i32 %123, 0
  br i1 %124, label %125, label %128

125:                                              ; preds = %122
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = icmp ne i32 %126, 255
  br i1 %127, label %138, label %128

128:                                              ; preds = %125, %122
  %129 = load i32, ptr %21, align 4, !tbaa !9
  %130 = icmp eq i32 %129, 0
  br i1 %130, label %131, label %150

131:                                              ; preds = %128
  %132 = load i32, ptr %15, align 4, !tbaa !9
  %133 = load i32, ptr %16, align 4, !tbaa !9
  %134 = icmp ne i32 %132, %133
  br i1 %134, label %135, label %150

135:                                              ; preds = %131
  %136 = load i32, ptr %15, align 4, !tbaa !9
  %137 = icmp ne i32 %136, 255
  br i1 %137, label %138, label %150

138:                                              ; preds = %135, %125
  %139 = load ptr, ptr @stderr, align 8, !tbaa !5
  %140 = load i32, ptr %12, align 4, !tbaa !9
  %141 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %139, ptr noundef @.str.24, i32 noundef %140) #4
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %144 = icmp ult i32 1, %143
  br i1 %144, label %145, label %147

145:                                              ; preds = %138
  %146 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %148

147:                                              ; preds = %138
  br label %148

148:                                              ; preds = %147, %145
  %149 = phi i32 [ %146, %145 ], [ 1, %147 ]
  call void @libxsmm_handle_error(ptr noundef %142, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8, ptr noundef @.str, i32 noundef 1969, i32 noundef %149)
  store i32 1, ptr %27, align 4
  br label %309

150:                                              ; preds = %135, %131, %128
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %175

151:                                              ; preds = %117
  %152 = load i32, ptr %12, align 4, !tbaa !9
  %153 = lshr i32 %152, 28
  %154 = and i32 %153, 3
  %155 = icmp eq i32 %154, 1
  br i1 %155, label %156, label %172

156:                                              ; preds = %151
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = icmp ne i32 %157, 255
  br i1 %158, label %159, label %171

159:                                              ; preds = %156
  %160 = load ptr, ptr @stderr, align 8, !tbaa !5
  %161 = load i32, ptr %12, align 4, !tbaa !9
  %162 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %160, ptr noundef @.str.25, i32 noundef %161) #4
  %163 = load ptr, ptr %11, align 8, !tbaa !5
  %164 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %165 = icmp ult i32 1, %164
  br i1 %165, label %166, label %168

166:                                              ; preds = %159
  %167 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %169

168:                                              ; preds = %159
  br label %169

169:                                              ; preds = %168, %166
  %170 = phi i32 [ %167, %166 ], [ 1, %168 ]
  call void @libxsmm_handle_error(ptr noundef %163, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8, ptr noundef @.str, i32 noundef 1976, i32 noundef %170)
  store i32 1, ptr %27, align 4
  br label %309

171:                                              ; preds = %156
  store i32 0, ptr %24, align 4, !tbaa !9
  br label %174

172:                                              ; preds = %151
  %173 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %173, ptr %25, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %172, %171
  br label %175

175:                                              ; preds = %174, %150
  %176 = load i32, ptr %12, align 4, !tbaa !9
  %177 = lshr i32 %176, 24
  %178 = and i32 %177, 8
  %179 = icmp eq i32 %178, 8
  br i1 %179, label %180, label %183

180:                                              ; preds = %175
  %181 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %181, ptr %26, align 4, !tbaa !9
  %182 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %182, ptr %24, align 4, !tbaa !9
  br label %186

183:                                              ; preds = %175
  %184 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %184, ptr %26, align 4, !tbaa !9
  %185 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %185, ptr %24, align 4, !tbaa !9
  br label %186

186:                                              ; preds = %183, %180
  %187 = load i32, ptr %12, align 4, !tbaa !9
  %188 = lshr i32 %187, 24
  %189 = and i32 %188, 4
  %190 = icmp eq i32 %189, 4
  br i1 %190, label %191, label %225

191:                                              ; preds = %186
  %192 = load i32, ptr %12, align 4, !tbaa !9
  %193 = lshr i32 %192, 28
  %194 = and i32 %193, 3
  %195 = icmp eq i32 %194, 2
  br i1 %195, label %196, label %201

196:                                              ; preds = %191
  %197 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %197, ptr %25, align 4, !tbaa !9
  %198 = load i32, ptr %12, align 4, !tbaa !9
  %199 = lshr i32 %198, 20
  %200 = and i32 %199, 7
  store i32 %200, ptr %26, align 4, !tbaa !9
  br label %224

201:                                              ; preds = %191
  %202 = load i32, ptr %12, align 4, !tbaa !9
  %203 = lshr i32 %202, 28
  %204 = and i32 %203, 3
  %205 = icmp eq i32 %204, 1
  br i1 %205, label %206, label %211

206:                                              ; preds = %201
  %207 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %207, ptr %24, align 4, !tbaa !9
  %208 = load i32, ptr %12, align 4, !tbaa !9
  %209 = lshr i32 %208, 20
  %210 = and i32 %209, 7
  store i32 %210, ptr %26, align 4, !tbaa !9
  br label %223

211:                                              ; preds = %201
  %212 = load ptr, ptr @stderr, align 8, !tbaa !5
  %213 = load i32, ptr %12, align 4, !tbaa !9
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %212, ptr noundef @.str.26, i32 noundef %213) #4
  %215 = load ptr, ptr %11, align 8, !tbaa !5
  %216 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %217 = icmp ult i32 1, %216
  br i1 %217, label %218, label %220

218:                                              ; preds = %211
  %219 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %221

220:                                              ; preds = %211
  br label %221

221:                                              ; preds = %220, %218
  %222 = phi i32 [ %219, %218 ], [ 1, %220 ]
  call void @libxsmm_handle_error(ptr noundef %215, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8, ptr noundef @.str, i32 noundef 2003, i32 noundef %222)
  store i32 1, ptr %27, align 4
  br label %309

223:                                              ; preds = %206
  br label %224

224:                                              ; preds = %223, %196
  br label %225

225:                                              ; preds = %224, %186
  %226 = load i32, ptr %21, align 4, !tbaa !9
  %227 = icmp eq i32 %226, 2
  br i1 %227, label %228, label %249

228:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 0, ptr %28, align 4, !tbaa !9
  %229 = load i8, ptr %13, align 1, !tbaa !11
  %230 = sext i8 %229 to i32
  switch i32 %230, label %234 [
    i32 120, label %231
    i32 121, label %232
    i32 122, label %233
  ]

231:                                              ; preds = %228
  store i32 0, ptr %28, align 4, !tbaa !9
  br label %239

232:                                              ; preds = %228
  store i32 1, ptr %28, align 4, !tbaa !9
  br label %239

233:                                              ; preds = %228
  store i32 2, ptr %28, align 4, !tbaa !9
  br label %239

234:                                              ; preds = %228
  %235 = load ptr, ptr @stderr, align 8, !tbaa !5
  %236 = load i8, ptr %13, align 1, !tbaa !11
  %237 = sext i8 %236 to i32
  %238 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %235, ptr noundef @.str.27, i32 noundef %237) #4
  br label %239

239:                                              ; preds = %234, %233, %232, %231
  %240 = load ptr, ptr %11, align 8, !tbaa !5
  %241 = load i32, ptr %12, align 4, !tbaa !9
  %242 = load i32, ptr %28, align 4, !tbaa !9
  %243 = load i32, ptr %24, align 4, !tbaa !9
  %244 = load i32, ptr %25, align 4, !tbaa !9
  %245 = load i32, ptr %26, align 4, !tbaa !9
  %246 = load i32, ptr %17, align 4, !tbaa !9
  %247 = load i32, ptr %18, align 4, !tbaa !9
  %248 = load i8, ptr %19, align 1, !tbaa !11
  call void @libxsmm_x86_instruction_evex_compute_3reg(ptr noundef %240, i32 noundef %241, i32 noundef %242, i32 noundef %243, i32 noundef %244, i32 noundef %245, i32 noundef %246, i32 noundef %247, i8 noundef zeroext %248)
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  br label %275

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

252:                                              ; preds = %249
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #4
  store i32 0, ptr %29, align 4, !tbaa !9
  %253 = load i8, ptr %13, align 1, !tbaa !11
  %254 = sext i8 %253 to i32
  switch i32 %254, label %257 [
    i32 120, label %255
    i32 121, label %256
  ]

255:                                              ; preds = %252
  store i32 0, ptr %29, align 4, !tbaa !9
  br label %262

256:                                              ; preds = %252
  store i32 1, ptr %29, align 4, !tbaa !9
  br label %262

257:                                              ; preds = %252
  %258 = load ptr, ptr @stderr, align 8, !tbaa !5
  %259 = load i8, ptr %13, align 1, !tbaa !11
  %260 = sext i8 %259 to i32
  %261 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %258, ptr noundef @.str.27, i32 noundef %260) #4
  br label %262

262:                                              ; preds = %257, %256, %255
  %263 = load ptr, ptr %11, align 8, !tbaa !5
  %264 = load i32, ptr %12, align 4, !tbaa !9
  %265 = load i32, ptr %29, align 4, !tbaa !9
  %266 = load i32, ptr %24, align 4, !tbaa !9
  %267 = load i32, ptr %25, align 4, !tbaa !9
  %268 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vex_compute_3reg(ptr noundef %263, i32 noundef %264, i32 noundef %265, i32 noundef %266, i32 noundef %267, i32 noundef %268)
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #4
  br label %274

269:                                              ; preds = %249
  %270 = load ptr, ptr %11, align 8, !tbaa !5
  %271 = load i32, ptr %12, align 4, !tbaa !9
  %272 = load i32, ptr %24, align 4, !tbaa !9
  %273 = load i32, ptr %26, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_rex_compute_2reg(ptr noundef %270, i32 noundef %271, i32 noundef %272, i32 noundef %273)
  br label %274

274:                                              ; preds = %269, %262
  br label %275

275:                                              ; preds = %274, %239
  %276 = load i32, ptr %12, align 4, !tbaa !9
  %277 = lshr i32 %276, 16
  %278 = and i32 %277, 8
  %279 = icmp eq i32 %278, 8
  br i1 %279, label %280, label %308

280:                                              ; preds = %275
  %281 = load i32, ptr %20, align 4, !tbaa !9
  %282 = icmp ne i32 %281, 1024
  br i1 %282, label %283, label %296

283:                                              ; preds = %280
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %284 = load ptr, ptr %11, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %284, i32 0, i32 0
  %286 = load ptr, ptr %285, align 8, !tbaa !15
  store ptr %286, ptr %30, align 8, !tbaa !5
  %287 = load i32, ptr %20, align 4, !tbaa !9
  %288 = trunc i32 %287 to i8
  %289 = load ptr, ptr %30, align 8, !tbaa !5
  %290 = load ptr, ptr %11, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %290, i32 0, i32 2
  %292 = load i32, ptr %291, align 4, !tbaa !16
  %293 = add i32 %292, 1
  store i32 %293, ptr %291, align 4, !tbaa !16
  %294 = zext i32 %292 to i64
  %295 = getelementptr inbounds i8, ptr %289, i64 %294
  store i8 %288, ptr %295, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  br label %307

296:                                              ; preds = %280
  %297 = load ptr, ptr @stderr, align 8, !tbaa !5
  %298 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %297, ptr noundef @.str.28) #4
  %299 = load ptr, ptr %11, align 8, !tbaa !5
  %300 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %301 = icmp ult i32 1, %300
  br i1 %301, label %302, label %304

302:                                              ; preds = %296
  %303 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %305

304:                                              ; preds = %296
  br label %305

305:                                              ; preds = %304, %302
  %306 = phi i32 [ %303, %302 ], [ 1, %304 ]
  call void @libxsmm_handle_error(ptr noundef %299, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8, ptr noundef @.str, i32 noundef 2060, i32 noundef %306)
  store i32 1, ptr %27, align 4
  br label %309

307:                                              ; preds = %283
  br label %308

308:                                              ; preds = %307, %275
  store i32 0, ptr %27, align 4
  br label %309

309:                                              ; preds = %308, %305, %221, %169, %148
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  %310 = load i32, ptr %27, align 4
  switch i32 %310, label %479 [
    i32 0, label %311
    i32 1, label %478
  ]

311:                                              ; preds = %309
  br label %478

312:                                              ; preds = %74
  call void @llvm.lifetime.start.p0(i64 512, ptr %31) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #4
  store i32 511, ptr %32, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #4
  store i32 0, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #4
  %313 = load i32, ptr %20, align 4, !tbaa !9
  store i32 %313, ptr %35, align 4, !tbaa !9
  %314 = load i32, ptr %12, align 4, !tbaa !9
  %315 = getelementptr inbounds [16 x i8], ptr %34, i64 0, i64 0
  call void @libxsmm_get_x86_instr_name(i32 noundef %314, ptr noundef %315, i32 noundef 15)
  %316 = load ptr, ptr %11, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %316, i32 0, i32 6
  %318 = load i32, ptr %317, align 4, !tbaa !12
  %319 = icmp ugt i32 %318, 1004
  br i1 %319, label %320, label %403

320:                                              ; preds = %312
  %321 = load i32, ptr %12, align 4, !tbaa !9
  %322 = lshr i32 %321, 16
  %323 = and i32 %322, 8
  %324 = icmp eq i32 %323, 8
  br i1 %324, label %325, label %366

325:                                              ; preds = %320
  %326 = load i32, ptr %20, align 4, !tbaa !9
  %327 = icmp ne i32 %326, 1024
  br i1 %327, label %328, label %366

328:                                              ; preds = %325
  %329 = load ptr, ptr %11, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %329, i32 0, i32 3
  %331 = load i32, ptr %330, align 8, !tbaa !14
  %332 = icmp eq i32 %331, 0
  br i1 %332, label %333, label %349

333:                                              ; preds = %328
  %334 = getelementptr inbounds [512 x i8], ptr %31, i64 0, i64 0
  %335 = load i32, ptr %32, align 4, !tbaa !9
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds [16 x i8], ptr %34, i64 0, i64 0
  %338 = load i32, ptr %35, align 4, !tbaa !9
  %339 = load i8, ptr %13, align 1, !tbaa !11
  %340 = sext i8 %339 to i32
  %341 = load i32, ptr %14, align 4, !tbaa !9
  %342 = load i8, ptr %13, align 1, !tbaa !11
  %343 = sext i8 %342 to i32
  %344 = load i32, ptr %15, align 4, !tbaa !9
  %345 = load i8, ptr %13, align 1, !tbaa !11
  %346 = sext i8 %345 to i32
  %347 = load i32, ptr %16, align 4, !tbaa !9
  %348 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %334, i64 noundef %336, ptr noundef @.str.29, ptr noundef %337, i32 noundef %338, i32 noundef %340, i32 noundef %341, i32 noundef %343, i32 noundef %344, i32 noundef %346, i32 noundef %347) #4
  store i32 %348, ptr %33, align 4, !tbaa !9
  br label %365

349:                                              ; preds = %328
  %350 = getelementptr inbounds [512 x i8], ptr %31, i64 0, i64 0
  %351 = load i32, ptr %32, align 4, !tbaa !9
  %352 = sext i32 %351 to i64
  %353 = getelementptr inbounds [16 x i8], ptr %34, i64 0, i64 0
  %354 = load i32, ptr %35, align 4, !tbaa !9
  %355 = load i8, ptr %13, align 1, !tbaa !11
  %356 = sext i8 %355 to i32
  %357 = load i32, ptr %14, align 4, !tbaa !9
  %358 = load i8, ptr %13, align 1, !tbaa !11
  %359 = sext i8 %358 to i32
  %360 = load i32, ptr %15, align 4, !tbaa !9
  %361 = load i8, ptr %13, align 1, !tbaa !11
  %362 = sext i8 %361 to i32
  %363 = load i32, ptr %16, align 4, !tbaa !9
  %364 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %350, i64 noundef %352, ptr noundef @.str.30, ptr noundef %353, i32 noundef %354, i32 noundef %356, i32 noundef %357, i32 noundef %359, i32 noundef %360, i32 noundef %362, i32 noundef %363) #4
  store i32 %364, ptr %33, align 4, !tbaa !9
  br label %365

365:                                              ; preds = %349, %333
  br label %402

366:                                              ; preds = %325, %320
  %367 = load ptr, ptr %11, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %367, i32 0, i32 3
  %369 = load i32, ptr %368, align 8, !tbaa !14
  %370 = icmp eq i32 %369, 0
  br i1 %370, label %371, label %386

371:                                              ; preds = %366
  %372 = getelementptr inbounds [512 x i8], ptr %31, i64 0, i64 0
  %373 = load i32, ptr %32, align 4, !tbaa !9
  %374 = sext i32 %373 to i64
  %375 = getelementptr inbounds [16 x i8], ptr %34, i64 0, i64 0
  %376 = load i8, ptr %13, align 1, !tbaa !11
  %377 = sext i8 %376 to i32
  %378 = load i32, ptr %14, align 4, !tbaa !9
  %379 = load i8, ptr %13, align 1, !tbaa !11
  %380 = sext i8 %379 to i32
  %381 = load i32, ptr %15, align 4, !tbaa !9
  %382 = load i8, ptr %13, align 1, !tbaa !11
  %383 = sext i8 %382 to i32
  %384 = load i32, ptr %16, align 4, !tbaa !9
  %385 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %372, i64 noundef %374, ptr noundef @.str.31, ptr noundef %375, i32 noundef %377, i32 noundef %378, i32 noundef %380, i32 noundef %381, i32 noundef %383, i32 noundef %384) #4
  store i32 %385, ptr %33, align 4, !tbaa !9
  br label %401

386:                                              ; preds = %366
  %387 = getelementptr inbounds [512 x i8], ptr %31, i64 0, i64 0
  %388 = load i32, ptr %32, align 4, !tbaa !9
  %389 = sext i32 %388 to i64
  %390 = getelementptr inbounds [16 x i8], ptr %34, i64 0, i64 0
  %391 = load i8, ptr %13, align 1, !tbaa !11
  %392 = sext i8 %391 to i32
  %393 = load i32, ptr %14, align 4, !tbaa !9
  %394 = load i8, ptr %13, align 1, !tbaa !11
  %395 = sext i8 %394 to i32
  %396 = load i32, ptr %15, align 4, !tbaa !9
  %397 = load i8, ptr %13, align 1, !tbaa !11
  %398 = sext i8 %397 to i32
  %399 = load i32, ptr %16, align 4, !tbaa !9
  %400 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %387, i64 noundef %389, ptr noundef @.str.32, ptr noundef %390, i32 noundef %392, i32 noundef %393, i32 noundef %395, i32 noundef %396, i32 noundef %398, i32 noundef %399) #4
  store i32 %400, ptr %33, align 4, !tbaa !9
  br label %401

401:                                              ; preds = %386, %371
  br label %402

402:                                              ; preds = %401, %365
  br label %474

403:                                              ; preds = %312
  %404 = load i32, ptr %12, align 4, !tbaa !9
  %405 = lshr i32 %404, 16
  %406 = and i32 %405, 8
  %407 = icmp eq i32 %406, 8
  br i1 %407, label %408, label %443

408:                                              ; preds = %403
  %409 = load i32, ptr %20, align 4, !tbaa !9
  %410 = icmp ne i32 %409, 1024
  br i1 %410, label %411, label %443

411:                                              ; preds = %408
  %412 = load ptr, ptr %11, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %412, i32 0, i32 3
  %414 = load i32, ptr %413, align 8, !tbaa !14
  %415 = icmp eq i32 %414, 0
  br i1 %415, label %416, label %429

416:                                              ; preds = %411
  %417 = getelementptr inbounds [512 x i8], ptr %31, i64 0, i64 0
  %418 = load i32, ptr %32, align 4, !tbaa !9
  %419 = sext i32 %418 to i64
  %420 = getelementptr inbounds [16 x i8], ptr %34, i64 0, i64 0
  %421 = load i32, ptr %35, align 4, !tbaa !9
  %422 = load i8, ptr %13, align 1, !tbaa !11
  %423 = sext i8 %422 to i32
  %424 = load i32, ptr %14, align 4, !tbaa !9
  %425 = load i8, ptr %13, align 1, !tbaa !11
  %426 = sext i8 %425 to i32
  %427 = load i32, ptr %16, align 4, !tbaa !9
  %428 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %417, i64 noundef %419, ptr noundef @.str.33, ptr noundef %420, i32 noundef %421, i32 noundef %423, i32 noundef %424, i32 noundef %426, i32 noundef %427) #4
  store i32 %428, ptr %33, align 4, !tbaa !9
  br label %442

429:                                              ; preds = %411
  %430 = getelementptr inbounds [512 x i8], ptr %31, i64 0, i64 0
  %431 = load i32, ptr %32, align 4, !tbaa !9
  %432 = sext i32 %431 to i64
  %433 = getelementptr inbounds [16 x i8], ptr %34, i64 0, i64 0
  %434 = load i32, ptr %35, align 4, !tbaa !9
  %435 = load i8, ptr %13, align 1, !tbaa !11
  %436 = sext i8 %435 to i32
  %437 = load i32, ptr %14, align 4, !tbaa !9
  %438 = load i8, ptr %13, align 1, !tbaa !11
  %439 = sext i8 %438 to i32
  %440 = load i32, ptr %16, align 4, !tbaa !9
  %441 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %430, i64 noundef %432, ptr noundef @.str.34, ptr noundef %433, i32 noundef %434, i32 noundef %436, i32 noundef %437, i32 noundef %439, i32 noundef %440) #4
  store i32 %441, ptr %33, align 4, !tbaa !9
  br label %442

442:                                              ; preds = %429, %416
  br label %473

443:                                              ; preds = %408, %403
  %444 = load ptr, ptr %11, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %444, i32 0, i32 3
  %446 = load i32, ptr %445, align 8, !tbaa !14
  %447 = icmp eq i32 %446, 0
  br i1 %447, label %448, label %460

448:                                              ; preds = %443
  %449 = getelementptr inbounds [512 x i8], ptr %31, i64 0, i64 0
  %450 = load i32, ptr %32, align 4, !tbaa !9
  %451 = sext i32 %450 to i64
  %452 = getelementptr inbounds [16 x i8], ptr %34, i64 0, i64 0
  %453 = load i8, ptr %13, align 1, !tbaa !11
  %454 = sext i8 %453 to i32
  %455 = load i32, ptr %14, align 4, !tbaa !9
  %456 = load i8, ptr %13, align 1, !tbaa !11
  %457 = sext i8 %456 to i32
  %458 = load i32, ptr %16, align 4, !tbaa !9
  %459 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %449, i64 noundef %451, ptr noundef @.str.35, ptr noundef %452, i32 noundef %454, i32 noundef %455, i32 noundef %457, i32 noundef %458) #4
  store i32 %459, ptr %33, align 4, !tbaa !9
  br label %472

460:                                              ; preds = %443
  %461 = getelementptr inbounds [512 x i8], ptr %31, i64 0, i64 0
  %462 = load i32, ptr %32, align 4, !tbaa !9
  %463 = sext i32 %462 to i64
  %464 = getelementptr inbounds [16 x i8], ptr %34, i64 0, i64 0
  %465 = load i8, ptr %13, align 1, !tbaa !11
  %466 = sext i8 %465 to i32
  %467 = load i32, ptr %14, align 4, !tbaa !9
  %468 = load i8, ptr %13, align 1, !tbaa !11
  %469 = sext i8 %468 to i32
  %470 = load i32, ptr %16, align 4, !tbaa !9
  %471 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %461, i64 noundef %463, ptr noundef @.str.36, ptr noundef %464, i32 noundef %466, i32 noundef %467, i32 noundef %469, i32 noundef %470) #4
  store i32 %471, ptr %33, align 4, !tbaa !9
  br label %472

472:                                              ; preds = %460, %448
  br label %473

473:                                              ; preds = %472, %442
  br label %474

474:                                              ; preds = %473, %402
  %475 = load ptr, ptr %11, align 8, !tbaa !5
  %476 = getelementptr inbounds [512 x i8], ptr %31, i64 0, i64 0
  %477 = load i32, ptr %33, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %475, ptr noundef %476, i32 noundef %477)
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #4
  call void @llvm.lifetime.end.p0(i64 512, ptr %31) #4
  br label %478

478:                                              ; preds = %474, %311, %309, %72, %53
  ret void

479:                                              ; preds = %309
  unreachable
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 28}
!13 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!14 = !{!13, !10, i64 16}
!15 = !{!13, !6, i64 0}
!16 = !{!13, !10, i64 12}


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

@.str = external hidden unnamed_addr constant [82 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@stderr = external local_unnamed_addr global ptr, align 8
@.str.22 = external hidden unnamed_addr constant [95 x i8], align 1
@__func__.libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [95 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [163 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [163 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [197 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [78 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [121 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [73 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [68 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [61 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.35 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.36 = external hidden unnamed_addr constant [46 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_instruction_vec_is_hybrid(i32 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_x86_instruction_vec_is_regonly(i32 noundef) local_unnamed_addr #0

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

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_x86_instruction_evex_compute_3reg(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

; Function Attrs: nofree nounwind
declare noundef i32 @snprintf(ptr noalias nocapture noundef writeonly, i64 noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #3

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %0, i32 noundef %1, i8 noundef signext %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i8 noundef zeroext %8, i32 noundef %9) local_unnamed_addr #0 {
  %11 = alloca [512 x i8], align 16
  %12 = alloca [16 x i8], align 16
  %13 = tail call i32 @libxsmm_x86_instruction_vec_is_hybrid(i32 noundef %1)
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %25

15:                                               ; preds = %10
  %16 = tail call i32 @libxsmm_x86_instruction_vec_is_regonly(i32 noundef %1)
  %17 = icmp eq i32 %16, 0
  br i1 %17, label %18, label %25

18:                                               ; preds = %15
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef nonnull @.str.22, i32 noundef %1) #4
  %21 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %22 = icmp ugt i32 %21, 1
  %23 = load i32, ptr @libxsmm_verbosity, align 4
  %24 = select i1 %22, i32 %23, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8, ptr noundef nonnull @.str, i32 noundef 1930, i32 noundef %24) #5
  br label %163

25:                                               ; preds = %15, %10
  %26 = getelementptr inbounds i8, ptr %0, i64 28
  %27 = load i32, ptr %26, align 4, !tbaa !11
  %28 = icmp ult i32 %27, 1041
  %29 = icmp ne i32 %6, 0
  %or.cond = and i1 %29, %28
  br i1 %or.cond, label %30, label %37

30:                                               ; preds = %25
  %31 = load ptr, ptr @stderr, align 8, !tbaa !5
  %32 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %31, ptr noundef nonnull @.str.23) #4
  %33 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %34 = icmp ugt i32 %33, 1
  %35 = load i32, ptr @libxsmm_verbosity, align 4
  %36 = select i1 %34, i32 %35, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8, ptr noundef nonnull @.str, i32 noundef 1937, i32 noundef %36) #5
  br label %163

37:                                               ; preds = %25
  %38 = getelementptr inbounds i8, ptr %0, i64 16
  %39 = load i32, ptr %38, align 8, !tbaa !13
  %40 = icmp ugt i32 %39, 1
  br i1 %40, label %41, label %131

41:                                               ; preds = %37
  %42 = lshr i32 %1, 30
  %43 = icmp ugt i32 %27, 1004
  br i1 %43, label %44, label %.critedge171

44:                                               ; preds = %41
  br i1 %28, label %.critedge, label %45

45:                                               ; preds = %44
  %46 = icmp eq i32 %42, 3
  %47 = icmp ult i32 %1, 1073741824
  %or.cond3 = or i1 %47, %46
  br i1 %or.cond3, label %50, label %.critedge

.critedge:                                        ; preds = %44, %45
  %48 = icmp eq i32 %42, 1
  %49 = icmp ult i32 %1, 1073741824
  %or.cond5 = or i1 %49, %48
  br i1 %or.cond5, label %50, label %.critedge171

.critedge171:                                     ; preds = %41, %.critedge
  br label %50

50:                                               ; preds = %.critedge, %45, %.critedge171
  %51 = phi i1 [ false, %.critedge171 ], [ true, %45 ], [ true, %.critedge ]
  %52 = phi i1 [ true, %.critedge171 ], [ false, %45 ], [ false, %.critedge ]
  %53 = phi i1 [ false, %.critedge171 ], [ true, %45 ], [ false, %.critedge ]
  %54 = phi i1 [ false, %.critedge171 ], [ false, %45 ], [ true, %.critedge ]
  %55 = lshr i32 %1, 28
  %56 = and i32 %55, 3
  switch i32 %56, label %.thread185 [
    i32 2, label %57
    i32 1, label %69
  ]

57:                                               ; preds = %50
  %58 = icmp ne i32 %4, 255
  %or.cond7 = and i1 %58, %51
  br i1 %or.cond7, label %62, label %59

59:                                               ; preds = %57
  %60 = icmp ne i32 %4, %5
  %61 = and i1 %60, %52
  %or.cond172 = and i1 %58, %61
  br i1 %or.cond172, label %62, label %.thread

62:                                               ; preds = %59, %57
  %63 = load ptr, ptr @stderr, align 8, !tbaa !5
  %64 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef nonnull @.str.24, i32 noundef %1) #4
  %65 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %66 = icmp ugt i32 %65, 1
  %67 = load i32, ptr @libxsmm_verbosity, align 4
  %68 = select i1 %66, i32 %67, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8, ptr noundef nonnull @.str, i32 noundef 1969, i32 noundef %68) #5
  br label %163

69:                                               ; preds = %50
  %.not = icmp eq i32 %3, 255
  br i1 %.not, label %77, label %70

70:                                               ; preds = %69
  %71 = load ptr, ptr @stderr, align 8, !tbaa !5
  %72 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %71, ptr noundef nonnull @.str.25, i32 noundef %1) #4
  %73 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %74 = icmp ugt i32 %73, 1
  %75 = load i32, ptr @libxsmm_verbosity, align 4
  %76 = select i1 %74, i32 %75, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8, ptr noundef nonnull @.str, i32 noundef 1976, i32 noundef %76) #5
  br label %163

77:                                               ; preds = %69
  %78 = and i32 %1, 134217728
  %.not167 = icmp eq i32 %78, 0
  %. = select i1 %.not167, i32 %5, i32 %3
  %.173 = select i1 %.not167, i32 %3, i32 %5
  %79 = and i32 %1, 67108864
  %.not168 = icmp eq i32 %79, 0
  br i1 %.not168, label %96, label %86

.thread185:                                       ; preds = %50
  %80 = and i32 %1, 134217728
  %.not167187 = icmp eq i32 %80, 0
  %.188 = select i1 %.not167187, i32 %5, i32 %3
  %.173189 = select i1 %.not167187, i32 %3, i32 %5
  %81 = and i32 %1, 67108864
  %.not168190 = icmp eq i32 %81, 0
  br i1 %.not168190, label %96, label %89

.thread:                                          ; preds = %59
  %82 = and i32 %1, 134217728
  %.not167175 = icmp eq i32 %82, 0
  %.176 = select i1 %.not167175, i32 %5, i32 %3
  %.173177 = select i1 %.not167175, i32 %3, i32 %5
  %83 = and i32 %1, 67108864
  %.not168178 = icmp eq i32 %83, 0
  br i1 %.not168178, label %96, label %.thread181

.thread181:                                       ; preds = %.thread
  %84 = lshr i32 %1, 20
  %85 = and i32 %84, 7
  br label %96

86:                                               ; preds = %77
  %87 = lshr i32 %1, 20
  %88 = and i32 %87, 7
  br label %96

89:                                               ; preds = %.thread185
  %90 = load ptr, ptr @stderr, align 8, !tbaa !5
  %91 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef nonnull @.str.26, i32 noundef %1) #4
  %92 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %93 = icmp ugt i32 %92, 1
  %94 = load i32, ptr @libxsmm_verbosity, align 4
  %95 = select i1 %93, i32 %94, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8, ptr noundef nonnull @.str, i32 noundef 2003, i32 noundef %95) #5
  br label %163

96:                                               ; preds = %.thread185, %.thread, %.thread181, %86, %77
  %.1162 = phi i32 [ %5, %.thread181 ], [ 0, %86 ], [ 0, %77 ], [ 0, %.thread ], [ %4, %.thread185 ]
  %.1160 = phi i32 [ %85, %.thread181 ], [ %88, %86 ], [ %., %77 ], [ %.176, %.thread ], [ %.188, %.thread185 ]
  %.1 = phi i32 [ %.173177, %.thread181 ], [ %5, %86 ], [ %.173, %77 ], [ %.173177, %.thread ], [ %.173189, %.thread185 ]
  br i1 %53, label %97, label %104

97:                                               ; preds = %96
  %switch.tableidx = add i8 %2, -120
  %98 = icmp ult i8 %switch.tableidx, 3
  br i1 %98, label %switch.lookup, label %99

99:                                               ; preds = %97
  %100 = sext i8 %2 to i32
  %101 = load ptr, ptr @stderr, align 8, !tbaa !5
  %102 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %101, ptr noundef nonnull @.str.27, i32 noundef %100) #4
  br label %103

switch.lookup:                                    ; preds = %97
  %switch.idx.cast = zext nneg i8 %switch.tableidx to i32
  br label %103

103:                                              ; preds = %switch.lookup, %99
  %.0158 = phi i32 [ 0, %99 ], [ %switch.idx.cast, %switch.lookup ]
  tail call void @libxsmm_x86_instruction_evex_compute_3reg(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %.0158, i32 noundef %.1, i32 noundef %.1162, i32 noundef %.1160, i32 noundef %6, i32 noundef %7, i8 noundef zeroext %8)
  br label %113

104:                                              ; preds = %96
  br i1 %54, label %105, label %112

105:                                              ; preds = %104
  switch i8 %2, label %107 [
    i8 120, label %111
    i8 121, label %106
  ]

106:                                              ; preds = %105
  br label %111

107:                                              ; preds = %105
  %108 = sext i8 %2 to i32
  %109 = load ptr, ptr @stderr, align 8, !tbaa !5
  %110 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %109, ptr noundef nonnull @.str.27, i32 noundef %108) #4
  br label %111

111:                                              ; preds = %105, %107, %106
  %.0157 = phi i32 [ 0, %107 ], [ 1, %106 ], [ 0, %105 ]
  tail call void @libxsmm_x86_instruction_vex_compute_3reg(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %.0157, i32 noundef %.1, i32 noundef %.1162, i32 noundef %.1160)
  br label %113

112:                                              ; preds = %104
  tail call void @libxsmm_x86_instruction_rex_compute_2reg(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %.1, i32 noundef %.1160)
  br label %113

113:                                              ; preds = %111, %112, %103
  %114 = and i32 %1, 524288
  %.not169 = icmp eq i32 %114, 0
  br i1 %.not169, label %163, label %115

115:                                              ; preds = %113
  %.not170 = icmp eq i32 %9, 1024
  br i1 %.not170, label %124, label %116

116:                                              ; preds = %115
  %117 = load ptr, ptr %0, align 8, !tbaa !14
  %118 = trunc i32 %9 to i8
  %119 = getelementptr inbounds i8, ptr %0, i64 12
  %120 = load i32, ptr %119, align 4, !tbaa !15
  %121 = add i32 %120, 1
  store i32 %121, ptr %119, align 4, !tbaa !15
  %122 = zext i32 %120 to i64
  %123 = getelementptr inbounds i8, ptr %117, i64 %122
  store i8 %118, ptr %123, align 1, !tbaa !16
  br label %163

124:                                              ; preds = %115
  %125 = load ptr, ptr @stderr, align 8, !tbaa !5
  %126 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %125, ptr noundef nonnull @.str.28) #4
  %127 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %128 = icmp ugt i32 %127, 1
  %129 = load i32, ptr @libxsmm_verbosity, align 4
  %130 = select i1 %128, i32 %129, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8, ptr noundef nonnull @.str, i32 noundef 2060, i32 noundef %130) #5
  br label %163

131:                                              ; preds = %37
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %11) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #5
  call void @libxsmm_get_x86_instr_name(i32 noundef %1, ptr noundef nonnull %12, i32 noundef 15) #5
  %132 = load i32, ptr %26, align 4, !tbaa !11
  %133 = icmp ugt i32 %132, 1004
  %134 = and i32 %1, 524288
  %135 = icmp ne i32 %134, 0
  %136 = icmp ne i32 %9, 1024
  %or.cond11 = and i1 %135, %136
  %137 = load i32, ptr %38, align 8, !tbaa !13
  %138 = icmp eq i32 %137, 0
  %139 = sext i8 %2 to i32
  br i1 %133, label %140, label %151

140:                                              ; preds = %131
  br i1 %or.cond11, label %141, label %146

141:                                              ; preds = %140
  br i1 %138, label %142, label %144

142:                                              ; preds = %141
  %143 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %11, i64 noundef 511, ptr noundef nonnull @.str.29, ptr noundef nonnull %12, i32 noundef %9, i32 noundef %139, i32 noundef %3, i32 noundef %139, i32 noundef %4, i32 noundef %139, i32 noundef %5) #5
  br label %162

144:                                              ; preds = %141
  %145 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %11, i64 noundef 511, ptr noundef nonnull @.str.30, ptr noundef nonnull %12, i32 noundef %9, i32 noundef %139, i32 noundef %3, i32 noundef %139, i32 noundef %4, i32 noundef %139, i32 noundef %5) #5
  br label %162

146:                                              ; preds = %140
  br i1 %138, label %147, label %149

147:                                              ; preds = %146
  %148 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %11, i64 noundef 511, ptr noundef nonnull @.str.31, ptr noundef nonnull %12, i32 noundef %139, i32 noundef %3, i32 noundef %139, i32 noundef %4, i32 noundef %139, i32 noundef %5) #5
  br label %162

149:                                              ; preds = %146
  %150 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %11, i64 noundef 511, ptr noundef nonnull @.str.32, ptr noundef nonnull %12, i32 noundef %139, i32 noundef %3, i32 noundef %139, i32 noundef %4, i32 noundef %139, i32 noundef %5) #5
  br label %162

151:                                              ; preds = %131
  br i1 %or.cond11, label %152, label %157

152:                                              ; preds = %151
  br i1 %138, label %153, label %155

153:                                              ; preds = %152
  %154 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %11, i64 noundef 511, ptr noundef nonnull @.str.33, ptr noundef nonnull %12, i32 noundef %9, i32 noundef %139, i32 noundef %3, i32 noundef %139, i32 noundef %5) #5
  br label %162

155:                                              ; preds = %152
  %156 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %11, i64 noundef 511, ptr noundef nonnull @.str.34, ptr noundef nonnull %12, i32 noundef %9, i32 noundef %139, i32 noundef %3, i32 noundef %139, i32 noundef %5) #5
  br label %162

157:                                              ; preds = %151
  br i1 %138, label %158, label %160

158:                                              ; preds = %157
  %159 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %11, i64 noundef 511, ptr noundef nonnull @.str.35, ptr noundef nonnull %12, i32 noundef %139, i32 noundef %3, i32 noundef %139, i32 noundef %5) #5
  br label %162

160:                                              ; preds = %157
  %161 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %11, i64 noundef 511, ptr noundef nonnull @.str.36, ptr noundef nonnull %12, i32 noundef %139, i32 noundef %3, i32 noundef %139, i32 noundef %5) #5
  br label %162

162:                                              ; preds = %155, %153, %160, %158, %144, %142, %149, %147
  %.0154 = phi i32 [ %143, %142 ], [ %145, %144 ], [ %148, %147 ], [ %150, %149 ], [ %154, %153 ], [ %156, %155 ], [ %159, %158 ], [ %161, %160 ]
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %11, i32 noundef %.0154) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %11) #5
  br label %163

163:                                              ; preds = %62, %70, %89, %124, %116, %113, %162, %30, %18
  ret void
}

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !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 28}
!12 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!13 = !{!12, !10, i64 16}
!14 = !{!12, !6, i64 0}
!15 = !{!12, !10, i64 12}
!16 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass