; 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.8 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [74 x i8], align 1
@__func__.libxsmm_x86_instruction_tile_move = external hidden unnamed_addr constant [34 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_x86_instruction_tile_move = external hidden unnamed_addr constant [196 x i8], align 1

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

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

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

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

; 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) #2

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_x86_instruction_tile_move(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) #2 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca [512 x i8], align 16
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca [24 x i8], align 16
  %21 = alloca [4 x i8], align 1
  %22 = alloca [4 x i8], align 1
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store i32 %2, ptr %11, align 4, !tbaa !9
  store i32 %3, ptr %12, align 4, !tbaa !9
  store i32 %4, ptr %13, align 4, !tbaa !9
  store i32 %5, ptr %14, align 4, !tbaa !9
  store i32 %6, ptr %15, align 4, !tbaa !9
  store i32 %7, ptr %16, align 4, !tbaa !9
  %23 = load i32, ptr %10, align 4, !tbaa !9
  %24 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %24, label %26 [
    i32 1611079755, label %25
    i32 1610948683, label %25
    i32 1610883182, label %25
    i32 1610948718, label %25
    i32 1610883183, label %25
    i32 1610948719, label %25
    i32 1611079754, label %25
    i32 1610948682, label %25
    i32 1610895608, label %25
    i32 1610961144, label %25
    i32 1610895609, label %25
    i32 1610961145, label %25
    i32 1611014219, label %25
    i32 1342644297, label %25
  ]

25:                                               ; preds = %8, %8, %8, %8, %8, %8, %8, %8, %8, %8, %8, %8, %8, %8
  br label %38

26:                                               ; preds = %8
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = load i32, ptr %11, align 4, !tbaa !9
  %29 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef @.str.117, i32 noundef %28) #5
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %32 = icmp ult i32 1, %31
  br i1 %32, label %33, label %35

33:                                               ; preds = %26
  %34 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %36

35:                                               ; preds = %26
  br label %36

36:                                               ; preds = %35, %33
  %37 = phi i32 [ %34, %33 ], [ 1, %35 ]
  call void @libxsmm_handle_error(ptr noundef %30, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_tile_move, ptr noundef @.str, i32 noundef 3851, i32 noundef %37)
  br label %227

38:                                               ; preds = %25
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %39, i32 0, i32 3
  %41 = load i32, ptr %40, align 8, !tbaa !11
  %42 = icmp ugt i32 %41, 1
  br i1 %42, label %43, label %103

43:                                               ; preds = %38
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %44, i32 0, i32 6
  %46 = load i32, ptr %45, align 4, !tbaa !13
  %47 = icmp uge i32 %46, 1104
  br i1 %47, label %48, label %103

48:                                               ; preds = %43
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %49, i32 0, i32 6
  %51 = load i32, ptr %50, align 4, !tbaa !13
  %52 = icmp ult i32 %51, 1999
  br i1 %52, label %53, label %103

53:                                               ; preds = %48
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %54, i32 0, i32 1
  %56 = load i32, ptr %55, align 8, !tbaa !14
  %57 = load ptr, ptr %9, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %57, i32 0, i32 2
  %59 = load i32, ptr %58, align 4, !tbaa !15
  %60 = sub i32 %56, %59
  %61 = icmp ult i32 %60, 20
  br i1 %61, label %62, label %71

62:                                               ; preds = %53
  %63 = load ptr, ptr %9, align 8, !tbaa !5
  %64 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %65 = icmp ult i32 1, %64
  br i1 %65, label %66, label %68

66:                                               ; preds = %62
  %67 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %69

68:                                               ; preds = %62
  br label %69

69:                                               ; preds = %68, %66
  %70 = phi i32 [ %67, %66 ], [ 1, %68 ]
  call void @libxsmm_handle_error(ptr noundef %63, i32 noundef 90002, ptr noundef @__func__.libxsmm_x86_instruction_tile_move, ptr noundef @.str, i32 noundef 3859, i32 noundef %70)
  br label %227

71:                                               ; preds = %53
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = icmp eq i32 %72, 1342644297
  br i1 %73, label %74, label %78

74:                                               ; preds = %71
  %75 = load ptr, ptr %9, align 8, !tbaa !5
  %76 = load i32, ptr %11, align 4, !tbaa !9
  %77 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vex_compute_3reg(ptr noundef %75, i32 noundef %76, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef %77)
  br label %102

78:                                               ; preds = %71
  %79 = load i32, ptr %13, align 4, !tbaa !9
  %80 = icmp ne i32 %79, 127
  br i1 %80, label %81, label %89

81:                                               ; preds = %78
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = load i32, ptr %11, align 4, !tbaa !9
  %84 = load i32, ptr %12, align 4, !tbaa !9
  %85 = load i32, ptr %13, align 4, !tbaa !9
  %86 = load i32, ptr %14, align 4, !tbaa !9
  %87 = load i32, ptr %15, align 4, !tbaa !9
  %88 = load i32, ptr %16, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vex_compute_2reg_mem(ptr noundef %82, i32 noundef %83, i32 noundef %84, i32 noundef %85, i32 noundef %86, i32 noundef %87, i32 noundef 0, i32 noundef 0, i32 noundef %88)
  br label %101

89:                                               ; preds = %78
  %90 = load ptr, ptr @stderr, align 8, !tbaa !5
  %91 = load i32, ptr %11, align 4, !tbaa !9
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %90, ptr noundef @.str.118, i32 noundef %91) #5
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %95 = icmp ult i32 1, %94
  br i1 %95, label %96, label %98

96:                                               ; preds = %89
  %97 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %99

98:                                               ; preds = %89
  br label %99

99:                                               ; preds = %98, %96
  %100 = phi i32 [ %97, %96 ], [ 1, %98 ]
  call void @libxsmm_handle_error(ptr noundef %93, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_tile_move, ptr noundef @.str, i32 noundef 3874, i32 noundef %100)
  br label %227

101:                                              ; preds = %81
  br label %102

102:                                              ; preds = %101, %74
  br label %227

103:                                              ; preds = %48, %43, %38
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %104, i32 0, i32 3
  %106 = load i32, ptr %105, align 8, !tbaa !11
  %107 = icmp ult i32 %106, 2
  br i1 %107, label %108, label %215

108:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 512, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 511, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store i32 0, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %109 = load i32, ptr %11, align 4, !tbaa !9
  %110 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  call void @libxsmm_get_x86_instr_name(i32 noundef %109, ptr noundef %110, i32 noundef 23)
  %111 = load i32, ptr %12, align 4, !tbaa !9
  %112 = getelementptr inbounds [4 x i8], ptr %21, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %111, ptr noundef %112, i32 noundef 3)
  %113 = load i32, ptr %11, align 4, !tbaa !9
  switch i32 %113, label %213 [
    i32 1611079755, label %114
    i32 1610948683, label %114
    i32 1610883182, label %114
    i32 1610948718, label %114
    i32 1610883183, label %114
    i32 1610948719, label %114
    i32 1611079754, label %114
    i32 1610948682, label %114
    i32 1610895608, label %114
    i32 1610961144, label %114
    i32 1610895609, label %114
    i32 1610961145, label %114
    i32 1611014219, label %152
    i32 1342644297, label %190
  ]

114:                                              ; preds = %108, %108, %108, %108, %108, %108, %108, %108, %108, %108, %108, %108
  %115 = load i32, ptr %13, align 4, !tbaa !9
  %116 = icmp ne i32 %115, 127
  br i1 %116, label %117, label %150

117:                                              ; preds = %114
  %118 = load i32, ptr %13, align 4, !tbaa !9
  %119 = getelementptr inbounds [4 x i8], ptr %22, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %118, ptr noundef %119, i32 noundef 3)
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %120, i32 0, i32 3
  %122 = load i32, ptr %121, align 8, !tbaa !11
  %123 = icmp eq i32 %122, 0
  br i1 %123, label %124, label %135

124:                                              ; preds = %117
  %125 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  %126 = load i32, ptr %18, align 4, !tbaa !9
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  %129 = load i32, ptr %15, align 4, !tbaa !9
  %130 = getelementptr inbounds [4 x i8], ptr %21, i64 0, i64 0
  %131 = getelementptr inbounds [4 x i8], ptr %22, i64 0, i64 0
  %132 = load i32, ptr %14, align 4, !tbaa !9
  %133 = load i32, ptr %16, align 4, !tbaa !9
  %134 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %125, i64 noundef %127, ptr noundef @.str.119, ptr noundef %128, i32 noundef %129, ptr noundef %130, ptr noundef %131, i32 noundef %132, i32 noundef %133) #5
  store i32 %134, ptr %19, align 4, !tbaa !9
  br label %146

135:                                              ; preds = %117
  %136 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  %137 = load i32, ptr %18, align 4, !tbaa !9
  %138 = sext i32 %137 to i64
  %139 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  %140 = load i32, ptr %15, align 4, !tbaa !9
  %141 = getelementptr inbounds [4 x i8], ptr %21, i64 0, i64 0
  %142 = getelementptr inbounds [4 x i8], ptr %22, i64 0, i64 0
  %143 = load i32, ptr %14, align 4, !tbaa !9
  %144 = load i32, ptr %16, align 4, !tbaa !9
  %145 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %136, i64 noundef %138, ptr noundef @.str.120, ptr noundef %139, i32 noundef %140, ptr noundef %141, ptr noundef %142, i32 noundef %143, i32 noundef %144) #5
  store i32 %145, ptr %19, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %135, %124
  %147 = load ptr, ptr %9, align 8, !tbaa !5
  %148 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  %149 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %147, ptr noundef %148, i32 noundef %149)
  br label %151

150:                                              ; preds = %114
  br label %151

151:                                              ; preds = %150, %146
  br label %214

152:                                              ; preds = %108
  %153 = load i32, ptr %13, align 4, !tbaa !9
  %154 = icmp ne i32 %153, 127
  br i1 %154, label %155, label %188

155:                                              ; preds = %152
  %156 = load i32, ptr %13, align 4, !tbaa !9
  %157 = getelementptr inbounds [4 x i8], ptr %22, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %156, ptr noundef %157, i32 noundef 3)
  %158 = load ptr, ptr %9, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %158, i32 0, i32 3
  %160 = load i32, ptr %159, align 8, !tbaa !11
  %161 = icmp eq i32 %160, 0
  br i1 %161, label %162, label %173

162:                                              ; preds = %155
  %163 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  %164 = load i32, ptr %18, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  %167 = load i32, ptr %16, align 4, !tbaa !9
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = getelementptr inbounds [4 x i8], ptr %21, i64 0, i64 0
  %170 = getelementptr inbounds [4 x i8], ptr %22, i64 0, i64 0
  %171 = load i32, ptr %14, align 4, !tbaa !9
  %172 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %163, i64 noundef %165, ptr noundef @.str.121, ptr noundef %166, i32 noundef %167, i32 noundef %168, ptr noundef %169, ptr noundef %170, i32 noundef %171) #5
  store i32 %172, ptr %19, align 4, !tbaa !9
  br label %184

173:                                              ; preds = %155
  %174 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  %175 = load i32, ptr %18, align 4, !tbaa !9
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  %178 = load i32, ptr %16, align 4, !tbaa !9
  %179 = load i32, ptr %15, align 4, !tbaa !9
  %180 = getelementptr inbounds [4 x i8], ptr %21, i64 0, i64 0
  %181 = getelementptr inbounds [4 x i8], ptr %22, i64 0, i64 0
  %182 = load i32, ptr %14, align 4, !tbaa !9
  %183 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %174, i64 noundef %176, ptr noundef @.str.122, ptr noundef %177, i32 noundef %178, i32 noundef %179, ptr noundef %180, ptr noundef %181, i32 noundef %182) #5
  store i32 %183, ptr %19, align 4, !tbaa !9
  br label %184

184:                                              ; preds = %173, %162
  %185 = load ptr, ptr %9, align 8, !tbaa !5
  %186 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  %187 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %185, ptr noundef %186, i32 noundef %187)
  br label %189

188:                                              ; preds = %152
  br label %189

189:                                              ; preds = %188, %184
  br label %214

190:                                              ; preds = %108
  %191 = load ptr, ptr %9, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %191, i32 0, i32 3
  %193 = load i32, ptr %192, align 8, !tbaa !11
  %194 = icmp eq i32 %193, 0
  br i1 %194, label %195, label %202

195:                                              ; preds = %190
  %196 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  %197 = load i32, ptr %18, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  %200 = load i32, ptr %16, align 4, !tbaa !9
  %201 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %196, i64 noundef %198, ptr noundef @.str.123, ptr noundef %199, i32 noundef %200) #5
  store i32 %201, ptr %19, align 4, !tbaa !9
  br label %209

202:                                              ; preds = %190
  %203 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  %204 = load i32, ptr %18, align 4, !tbaa !9
  %205 = sext i32 %204 to i64
  %206 = getelementptr inbounds [24 x i8], ptr %20, i64 0, i64 0
  %207 = load i32, ptr %16, align 4, !tbaa !9
  %208 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %203, i64 noundef %205, ptr noundef @.str.124, ptr noundef %206, i32 noundef %207) #5
  store i32 %208, ptr %19, align 4, !tbaa !9
  br label %209

209:                                              ; preds = %202, %195
  %210 = load ptr, ptr %9, align 8, !tbaa !5
  %211 = getelementptr inbounds [512 x i8], ptr %17, i64 0, i64 0
  %212 = load i32, ptr %19, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %210, ptr noundef %211, i32 noundef %212)
  br label %214

213:                                              ; preds = %108
  call void @__assert_fail(ptr noundef @.str.125, ptr noundef @.str, i32 noundef 3944, ptr noundef @__PRETTY_FUNCTION__.libxsmm_x86_instruction_tile_move) #6
  unreachable

214:                                              ; preds = %209, %189, %151
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr %17) #5
  br label %226

215:                                              ; preds = %103
  %216 = load ptr, ptr @stderr, align 8, !tbaa !5
  %217 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %216, ptr noundef @.str.8) #5
  %218 = load ptr, ptr %9, align 8, !tbaa !5
  %219 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %220 = icmp ult i32 1, %219
  br i1 %220, label %221, label %223

221:                                              ; preds = %215
  %222 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %224

223:                                              ; preds = %215
  br label %224

224:                                              ; preds = %223, %221
  %225 = phi i32 [ %222, %221 ], [ 1, %223 ]
  call void @libxsmm_handle_error(ptr noundef %218, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_tile_move, ptr noundef @.str, i32 noundef 3949, i32 noundef %225)
  br label %227

226:                                              ; preds = %214
  br label %227

227:                                              ; preds = %226, %224, %102, %99, %69, %36
  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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"libxsmm_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 28}
!14 = !{!12, !10, i64 8}
!15 = !{!12, !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.8 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [74 x i8], align 1
@__func__.libxsmm_x86_instruction_tile_move = external hidden unnamed_addr constant [34 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [79 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [2 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_x86_instruction_tile_move = external hidden unnamed_addr constant [196 x i8], align 1

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

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

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

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

; 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 #2

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

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

declare void @libxsmm_get_x86_gp_reg_name(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

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

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

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

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_x86_instruction_tile_move(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7) local_unnamed_addr #2 {
  %9 = alloca [512 x i8], align 16
  %10 = alloca [24 x i8], align 16
  %11 = alloca [4 x i8], align 1
  %12 = alloca [4 x i8], align 1
  switch i32 %2, label %13 [
    i32 1611079755, label %20
    i32 1610948683, label %20
    i32 1610883182, label %20
    i32 1610948718, label %20
    i32 1610883183, label %20
    i32 1610948719, label %20
    i32 1611079754, label %20
    i32 1610948682, label %20
    i32 1610895608, label %20
    i32 1610961144, label %20
    i32 1610895609, label %20
    i32 1610961145, label %20
    i32 1611014219, label %20
    i32 1342644297, label %20
  ]

13:                                               ; preds = %8
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.117, i32 noundef %2) #5
  %16 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %17 = icmp ugt i32 %16, 1
  %18 = load i32, ptr @libxsmm_verbosity, align 4
  %19 = select i1 %17, i32 %18, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_tile_move, ptr noundef nonnull @.str, i32 noundef 3851, i32 noundef %19) #6
  br label %76

20:                                               ; preds = %8, %8, %8, %8, %8, %8, %8, %8, %8, %8, %8, %8, %8, %8
  %21 = getelementptr inbounds i8, ptr %0, i64 16
  %22 = load i32, ptr %21, align 8, !tbaa !11
  %23 = icmp ugt i32 %22, 1
  br i1 %23, label %24, label %52

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %0, i64 28
  %26 = load i32, ptr %25, align 4, !tbaa !13
  %27 = add i32 %26, -1104
  %or.cond = icmp ult i32 %27, 895
  br i1 %or.cond, label %28, label %69

28:                                               ; preds = %24
  %29 = getelementptr inbounds i8, ptr %0, i64 8
  %30 = load i32, ptr %29, align 8, !tbaa !14
  %31 = getelementptr inbounds i8, ptr %0, i64 12
  %32 = load i32, ptr %31, align 4, !tbaa !15
  %33 = sub i32 %30, %32
  %34 = icmp ult i32 %33, 20
  br i1 %34, label %35, label %40

35:                                               ; preds = %28
  %36 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %37 = icmp ugt i32 %36, 1
  %38 = load i32, ptr @libxsmm_verbosity, align 4
  %39 = select i1 %37, i32 %38, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90002, ptr noundef nonnull @__func__.libxsmm_x86_instruction_tile_move, ptr noundef nonnull @.str, i32 noundef 3859, i32 noundef %39) #6
  br label %76

40:                                               ; preds = %28
  %41 = icmp eq i32 %2, 1342644297
  br i1 %41, label %42, label %43

42:                                               ; preds = %40
  tail call void @libxsmm_x86_instruction_vex_compute_3reg(ptr noundef nonnull %0, i32 noundef 1342644297, i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef %7)
  br label %76

43:                                               ; preds = %40
  %.not68 = icmp eq i32 %4, 127
  br i1 %.not68, label %45, label %44

44:                                               ; preds = %43
  tail call void @libxsmm_x86_instruction_vex_compute_2reg_mem(ptr noundef nonnull %0, i32 noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef 0, i32 noundef 0, i32 noundef %7)
  br label %76

45:                                               ; preds = %43
  %46 = load ptr, ptr @stderr, align 8, !tbaa !5
  %47 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %46, ptr noundef nonnull @.str.118, i32 noundef %2) #5
  %48 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %49 = icmp ugt i32 %48, 1
  %50 = load i32, ptr @libxsmm_verbosity, align 4
  %51 = select i1 %49, i32 %50, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_tile_move, ptr noundef nonnull @.str, i32 noundef 3874, i32 noundef %51) #6
  br label %76

52:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %12) #6
  call void @libxsmm_get_x86_instr_name(i32 noundef %2, ptr noundef nonnull %10, i32 noundef 23) #6
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %3, ptr noundef nonnull %11, i32 noundef 3) #6
  switch i32 %2, label %67 [
    i32 1611079755, label %53
    i32 1610948683, label %53
    i32 1610883182, label %53
    i32 1610948718, label %53
    i32 1610883183, label %53
    i32 1610948719, label %53
    i32 1611079754, label %53
    i32 1610948682, label %53
    i32 1610895608, label %53
    i32 1610961144, label %53
    i32 1610895609, label %53
    i32 1610961145, label %53
    i32 1611014219, label %58
    i32 1342644297, label %63
  ]

53:                                               ; preds = %52, %52, %52, %52, %52, %52, %52, %52, %52, %52, %52, %52
  %.not67 = icmp eq i32 %4, 127
  br i1 %.not67, label %68, label %54

54:                                               ; preds = %53
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %4, ptr noundef nonnull %12, i32 noundef 3) #6
  %55 = load i32, ptr %21, align 8, !tbaa !11
  %56 = icmp eq i32 %55, 0
  %.str.119..str.120 = select i1 %56, ptr @.str.119, ptr @.str.120
  %57 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %9, i64 noundef 511, ptr noundef nonnull %.str.119..str.120, ptr noundef nonnull %10, i32 noundef %6, ptr noundef nonnull %11, ptr noundef nonnull %12, i32 noundef %5, i32 noundef %7) #6
  br label %.sink.split

58:                                               ; preds = %52
  %.not = icmp eq i32 %4, 127
  br i1 %.not, label %68, label %59

59:                                               ; preds = %58
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %4, ptr noundef nonnull %12, i32 noundef 3) #6
  %60 = load i32, ptr %21, align 8, !tbaa !11
  %61 = icmp eq i32 %60, 0
  %.str.121..str.122 = select i1 %61, ptr @.str.121, ptr @.str.122
  %62 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %9, i64 noundef 511, ptr noundef nonnull %.str.121..str.122, ptr noundef nonnull %10, i32 noundef %7, i32 noundef %6, ptr noundef nonnull %11, ptr noundef nonnull %12, i32 noundef %5) #6
  br label %.sink.split

63:                                               ; preds = %52
  %64 = load i32, ptr %21, align 8, !tbaa !11
  %65 = icmp eq i32 %64, 0
  %.str.123..str.124 = select i1 %65, ptr @.str.123, ptr @.str.124
  %66 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %9, i64 noundef 511, ptr noundef nonnull %.str.123..str.124, ptr noundef nonnull %10, i32 noundef %7) #6
  br label %.sink.split

67:                                               ; preds = %52
  call void @__assert_fail(ptr noundef nonnull @.str.125, ptr noundef nonnull @.str, i32 noundef 3944, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_x86_instruction_tile_move) #7
  unreachable

.sink.split:                                      ; preds = %63, %54, %59
  %.sink = phi i32 [ %62, %59 ], [ %57, %54 ], [ %66, %63 ]
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %9, i32 noundef %.sink) #6
  br label %68

68:                                               ; preds = %.sink.split, %58, %53
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %9) #6
  br label %76

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

76:                                               ; preds = %42, %44, %68, %69, %45, %35, %13
  ret void
}

attributes #0 = { mustprogress 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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { cold nounwind }
attributes #6 = { nounwind }
attributes #7 = { noreturn nounwind }

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass