; 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.78 = external hidden unnamed_addr constant [74 x i8], align 1
@__func__.libxsmm_x86_instruction_mask_move = external hidden unnamed_addr constant [34 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [32 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_x86_instruction_mask_move = external hidden unnamed_addr constant [125 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [41 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_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_mask_move(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #2 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca [512 x i8], align 16
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca [4 x i8], align 1
  %16 = alloca [16 x i8], align 16
  %17 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  %18 = load i32, ptr %6, align 4, !tbaa !9
  switch i32 %18, label %20 [
    i32 -1610280558, label %19
    i32 -1610346094, label %19
    i32 -1610149486, label %19
    i32 -1601760878, label %19
    i32 -1476062829, label %19
    i32 -1476128365, label %19
    i32 -1475931757, label %19
    i32 -1467543149, label %19
  ]

19:                                               ; preds = %4, %4, %4, %4, %4, %4, %4, %4
  br label %32

20:                                               ; preds = %4
  %21 = load ptr, ptr @stderr, align 8, !tbaa !5
  %22 = load i32, ptr %6, align 4, !tbaa !9
  %23 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %21, ptr noundef @.str.78, i32 noundef %22) #5
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %26 = icmp ult i32 1, %25
  br i1 %26, label %27, label %29

27:                                               ; preds = %20
  %28 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %30

29:                                               ; preds = %20
  br label %30

30:                                               ; preds = %29, %27
  %31 = phi i32 [ %28, %27 ], [ 1, %29 ]
  call void @libxsmm_handle_error(ptr noundef %24, i32 noundef 90000, ptr noundef @__func__.libxsmm_x86_instruction_mask_move, ptr noundef @.str, i32 noundef 3280, i32 noundef %31)
  br label %162

32:                                               ; preds = %19
  %33 = load i32, ptr %6, align 4, !tbaa !9
  %34 = and i32 %33, 768
  %35 = icmp ne i32 %34, 768
  br i1 %35, label %36, label %37

36:                                               ; preds = %32
  br label %38

37:                                               ; preds = %32
  call void @__assert_fail(ptr noundef @.str.79, ptr noundef @.str, i32 noundef 3284, ptr noundef @__PRETTY_FUNCTION__.libxsmm_x86_instruction_mask_move) #6
  unreachable

38:                                               ; preds = %36
  %39 = load ptr, ptr %5, 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 %59

43:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %44 = load i32, ptr %6, align 4, !tbaa !9
  %45 = lshr i32 %44, 24
  %46 = and i32 %45, 8
  %47 = icmp eq i32 %46, 8
  br i1 %47, label %48, label %51

48:                                               ; preds = %43
  %49 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %49, ptr %11, align 4, !tbaa !9
  %50 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %50, ptr %10, align 4, !tbaa !9
  br label %54

51:                                               ; preds = %43
  %52 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %52, ptr %10, align 4, !tbaa !9
  %53 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %53, ptr %11, align 4, !tbaa !9
  br label %54

54:                                               ; preds = %51, %48
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = load i32, ptr %6, align 4, !tbaa !9
  %57 = load i32, ptr %10, align 4, !tbaa !9
  %58 = load i32, ptr %11, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vex_compute_3reg(ptr noundef %55, i32 noundef %56, i32 noundef 0, i32 noundef %57, i32 noundef 0, i32 noundef %58)
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %162

59:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 512, ptr %12) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 511, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #5
  store i8 0, ptr %17, align 1, !tbaa !13
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = getelementptr inbounds [4 x i8], ptr %15, i64 0, i64 0
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %60, ptr noundef %61, i32 noundef 3)
  %62 = load i32, ptr %6, align 4, !tbaa !9
  %63 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
  call void @libxsmm_get_x86_instr_name(i32 noundef %62, ptr noundef %63, i32 noundef 15)
  %64 = load i32, ptr %7, align 4, !tbaa !9
  %65 = icmp eq i32 %64, 8
  br i1 %65, label %87, label %66

66:                                               ; preds = %59
  %67 = load i32, ptr %7, align 4, !tbaa !9
  %68 = icmp eq i32 %67, 9
  br i1 %68, label %87, label %69

69:                                               ; preds = %66
  %70 = load i32, ptr %7, align 4, !tbaa !9
  %71 = icmp eq i32 %70, 10
  br i1 %71, label %87, label %72

72:                                               ; preds = %69
  %73 = load i32, ptr %7, align 4, !tbaa !9
  %74 = icmp eq i32 %73, 11
  br i1 %74, label %87, label %75

75:                                               ; preds = %72
  %76 = load i32, ptr %7, align 4, !tbaa !9
  %77 = icmp eq i32 %76, 12
  br i1 %77, label %87, label %78

78:                                               ; preds = %75
  %79 = load i32, ptr %7, align 4, !tbaa !9
  %80 = icmp eq i32 %79, 13
  br i1 %80, label %87, label %81

81:                                               ; preds = %78
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = icmp eq i32 %82, 14
  br i1 %83, label %87, label %84

84:                                               ; preds = %81
  %85 = load i32, ptr %7, align 4, !tbaa !9
  %86 = icmp eq i32 %85, 15
  br i1 %86, label %87, label %94

87:                                               ; preds = %84, %81, %78, %75, %72, %69, %66, %59
  %88 = load i32, ptr %6, align 4, !tbaa !9
  %89 = icmp ne i32 %88, -1601760878
  br i1 %89, label %90, label %94

90:                                               ; preds = %87
  %91 = load i32, ptr %6, align 4, !tbaa !9
  %92 = icmp ne i32 %91, -1467543149
  br i1 %92, label %93, label %94

93:                                               ; preds = %90
  store i8 100, ptr %17, align 1, !tbaa !13
  br label %94

94:                                               ; preds = %93, %90, %87, %84
  %95 = load i32, ptr %6, align 4, !tbaa !9
  %96 = icmp eq i32 %95, -1476062829
  br i1 %96, label %106, label %97

97:                                               ; preds = %94
  %98 = load i32, ptr %6, align 4, !tbaa !9
  %99 = icmp eq i32 %98, -1476128365
  br i1 %99, label %106, label %100

100:                                              ; preds = %97
  %101 = load i32, ptr %6, align 4, !tbaa !9
  %102 = icmp eq i32 %101, -1475931757
  br i1 %102, label %106, label %103

103:                                              ; preds = %100
  %104 = load i32, ptr %6, align 4, !tbaa !9
  %105 = icmp eq i32 %104, -1467543149
  br i1 %105, label %106, label %132

106:                                              ; preds = %103, %100, %97, %94
  %107 = load ptr, ptr %5, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %107, i32 0, i32 3
  %109 = load i32, ptr %108, align 8, !tbaa !11
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %111, label %121

111:                                              ; preds = %106
  %112 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
  %113 = load i32, ptr %13, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
  %116 = load i32, ptr %8, align 4, !tbaa !9
  %117 = getelementptr inbounds [4 x i8], ptr %15, i64 0, i64 0
  %118 = load i8, ptr %17, align 1, !tbaa !13
  %119 = sext i8 %118 to i32
  %120 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %112, i64 noundef %114, ptr noundef @.str.80, ptr noundef %115, i32 noundef %116, ptr noundef %117, i32 noundef %119) #5
  store i32 %120, ptr %14, align 4, !tbaa !9
  br label %131

121:                                              ; preds = %106
  %122 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
  %123 = load i32, ptr %13, align 4, !tbaa !9
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
  %126 = load i32, ptr %8, align 4, !tbaa !9
  %127 = getelementptr inbounds [4 x i8], ptr %15, i64 0, i64 0
  %128 = load i8, ptr %17, align 1, !tbaa !13
  %129 = sext i8 %128 to i32
  %130 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %122, i64 noundef %124, ptr noundef @.str.81, ptr noundef %125, i32 noundef %126, ptr noundef %127, i32 noundef %129) #5
  store i32 %130, ptr %14, align 4, !tbaa !9
  br label %131

131:                                              ; preds = %121, %111
  br label %158

132:                                              ; preds = %103
  %133 = load ptr, ptr %5, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %133, i32 0, i32 3
  %135 = load i32, ptr %134, align 8, !tbaa !11
  %136 = icmp eq i32 %135, 0
  br i1 %136, label %137, label %147

137:                                              ; preds = %132
  %138 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
  %139 = load i32, ptr %13, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
  %142 = getelementptr inbounds [4 x i8], ptr %15, i64 0, i64 0
  %143 = load i8, ptr %17, align 1, !tbaa !13
  %144 = sext i8 %143 to i32
  %145 = load i32, ptr %8, align 4, !tbaa !9
  %146 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %138, i64 noundef %140, ptr noundef @.str.82, ptr noundef %141, ptr noundef %142, i32 noundef %144, i32 noundef %145) #5
  store i32 %146, ptr %14, align 4, !tbaa !9
  br label %157

147:                                              ; preds = %132
  %148 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
  %149 = load i32, ptr %13, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = getelementptr inbounds [16 x i8], ptr %16, i64 0, i64 0
  %152 = getelementptr inbounds [4 x i8], ptr %15, i64 0, i64 0
  %153 = load i8, ptr %17, align 1, !tbaa !13
  %154 = sext i8 %153 to i32
  %155 = load i32, ptr %8, align 4, !tbaa !9
  %156 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef %148, i64 noundef %150, ptr noundef @.str.83, ptr noundef %151, ptr noundef %152, i32 noundef %154, i32 noundef %155) #5
  store i32 %156, ptr %14, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %147, %137
  br label %158

158:                                              ; preds = %157, %131
  %159 = load ptr, ptr %5, align 8, !tbaa !5
  %160 = getelementptr inbounds [512 x i8], ptr %12, i64 0, i64 0
  %161 = load i32, ptr %14, align 4, !tbaa !9
  call void @libxsmm_append_code_as_string(ptr noundef %159, ptr noundef %160, i32 noundef %161)
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr %12) #5
  br label %162

162:                                              ; preds = %158, %54, %30
  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 = !{!7, !7, i64 0}


; 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.78 = external hidden unnamed_addr constant [74 x i8], align 1
@__func__.libxsmm_x86_instruction_mask_move = external hidden unnamed_addr constant [34 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [32 x i8], align 1
@__PRETTY_FUNCTION__.libxsmm_x86_instruction_mask_move = external hidden unnamed_addr constant [125 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [41 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [41 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_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_mask_move(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = alloca [512 x i8], align 16
  %6 = alloca [4 x i8], align 1
  %7 = alloca [16 x i8], align 16
  switch i32 %1, label %8 [
    i32 -1610280558, label %15
    i32 -1610346094, label %15
    i32 -1610149486, label %15
    i32 -1601760878, label %15
    i32 -1476062829, label %15
    i32 -1476128365, label %15
    i32 -1475931757, label %15
    i32 -1467543149, label %15
  ]

8:                                                ; preds = %4
  %9 = load ptr, ptr @stderr, align 8, !tbaa !5
  %10 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %9, ptr noundef nonnull @.str.78, i32 noundef %1) #5
  %11 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %12 = icmp ugt i32 %11, 1
  %13 = load i32, ptr @libxsmm_verbosity, align 4
  %14 = select i1 %12, i32 %13, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_x86_instruction_mask_move, ptr noundef nonnull @.str, i32 noundef 3280, i32 noundef %14) #6
  br label %42

15:                                               ; preds = %4, %4, %4, %4, %4, %4, %4, %4
  %16 = and i32 %1, 768
  %.not = icmp eq i32 %16, 768
  br i1 %.not, label %17, label %18

17:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.79, ptr noundef nonnull @.str, i32 noundef 3284, ptr noundef nonnull @__PRETTY_FUNCTION__.libxsmm_x86_instruction_mask_move) #7
  unreachable

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

22:                                               ; preds = %18
  %23 = and i32 %1, 134217728
  %.not71 = icmp eq i32 %23, 0
  %. = select i1 %.not71, i32 %3, i32 %2
  %.72 = select i1 %.not71, i32 %2, i32 %3
  tail call void @libxsmm_x86_instruction_vex_compute_3reg(ptr noundef nonnull %0, i32 noundef %1, i32 noundef 0, i32 noundef %.72, i32 noundef 0, i32 noundef %.)
  br label %42

24:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  call void @libxsmm_get_x86_gp_reg_name(i32 noundef %2, ptr noundef nonnull %6, i32 noundef 3) #6
  call void @libxsmm_get_x86_instr_name(i32 noundef %1, ptr noundef nonnull %7, i32 noundef 15) #6
  %25 = and i32 %2, -8
  %switch = icmp eq i32 %25, 8
  %switch.selectcmp.case1 = icmp eq i32 %1, -1467543149
  %switch.selectcmp.case2 = icmp eq i32 %1, -1601760878
  %switch.selectcmp = or i1 %switch.selectcmp.case1, %switch.selectcmp.case2
  %26 = select i1 %switch.selectcmp, i32 0, i32 100
  %.0 = select i1 %switch, i32 %26, i32 0
  switch i32 %1, label %34 [
    i32 -1467543149, label %27
    i32 -1475931757, label %27
    i32 -1476062829, label %27
    i32 -1476128365, label %27
  ]

27:                                               ; preds = %24, %24, %24, %24
  %28 = load i32, ptr %19, align 8, !tbaa !11
  %29 = icmp eq i32 %28, 0
  br i1 %29, label %30, label %32

30:                                               ; preds = %27
  %31 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 511, ptr noundef nonnull @.str.80, ptr noundef nonnull %7, i32 noundef %3, ptr noundef nonnull %6, i32 noundef %.0) #6
  br label %41

32:                                               ; preds = %27
  %33 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 511, ptr noundef nonnull @.str.81, ptr noundef nonnull %7, i32 noundef %3, ptr noundef nonnull %6, i32 noundef %.0) #6
  br label %41

34:                                               ; preds = %24
  %35 = load i32, ptr %19, align 8, !tbaa !11
  %36 = icmp eq i32 %35, 0
  br i1 %36, label %37, label %39

37:                                               ; preds = %34
  %38 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 511, ptr noundef nonnull @.str.82, ptr noundef nonnull %7, ptr noundef nonnull %6, i32 noundef %.0, i32 noundef %3) #6
  br label %41

39:                                               ; preds = %34
  %40 = call i32 (ptr, i64, ptr, ...) @snprintf(ptr noundef nonnull dereferenceable(1) %5, i64 noundef 511, ptr noundef nonnull @.str.83, ptr noundef nonnull %7, ptr noundef nonnull %6, i32 noundef %.0, i32 noundef %3) #6
  br label %41

41:                                               ; preds = %37, %39, %30, %32
  %.068 = phi i32 [ %31, %30 ], [ %33, %32 ], [ %38, %37 ], [ %40, %39 ]
  call void @libxsmm_append_code_as_string(ptr noundef nonnull %0, ptr noundef nonnull %5, i32 noundef %.068) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %5) #6
  br label %42

42:                                               ; preds = %41, %22, %8
  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}


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