; LLVM IR from libxsmm/libxsmm :: samples/encoder (encoder_aarch64)

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

@__const.test_sve_compute.tuple = external hidden unnamed_addr constant [3 x i32], align 4

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

; Function Attrs: nounwind uwtable
declare dso_local void @dump_code_buffer(ptr noundef, ptr 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: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: nounwind uwtable
define dso_local void @test_sve_compute(ptr noundef %0, ptr noundef %1, i32 noundef %2, i8 noundef zeroext %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i8, align 1
  %9 = alloca i8, align 1
  %10 = alloca [3 x i32], align 4
  %11 = alloca i8, align 1
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i8 %3, ptr %8, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 @__const.test_sve_compute.tuple, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %16) #4
  %17 = load i32, ptr %7, align 4, !tbaa !9
  %18 = and i32 %17, 4
  %19 = icmp eq i32 %18, 4
  %20 = zext i1 %19 to i32
  %21 = trunc i32 %20 to i8
  store i8 %21, ptr %16, align 1, !tbaa !11
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = load ptr, ptr %5, align 8, !tbaa !5
  call void @reset_code_buffer(ptr noundef %22, ptr noundef %23)
  store i8 0, ptr %9, align 1, !tbaa !11
  br label %24

24:                                               ; preds = %118, %4
  %25 = load i8, ptr %9, align 1, !tbaa !11
  %26 = zext i8 %25 to i32
  %27 = icmp slt i32 %26, 32
  br i1 %27, label %28, label %121

28:                                               ; preds = %24
  store i8 0, ptr %11, align 1, !tbaa !11
  br label %29

29:                                               ; preds = %114, %28
  %30 = load i8, ptr %11, align 1, !tbaa !11
  %31 = zext i8 %30 to i32
  %32 = icmp slt i32 %31, 32
  br i1 %32, label %33, label %117

33:                                               ; preds = %29
  store i8 0, ptr %12, align 1, !tbaa !11
  br label %34

34:                                               ; preds = %110, %33
  %35 = load i8, ptr %12, align 1, !tbaa !11
  %36 = zext i8 %35 to i32
  %37 = icmp slt i32 %36, 32
  br i1 %37, label %38, label %113

38:                                               ; preds = %34
  store i8 0, ptr %13, align 1, !tbaa !11
  br label %39

39:                                               ; preds = %106, %38
  %40 = load i8, ptr %13, align 1, !tbaa !11
  %41 = zext i8 %40 to i32
  %42 = icmp slt i32 %41, 3
  br i1 %42, label %43, label %109

43:                                               ; preds = %39
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %102, %43
  %45 = load i32, ptr %15, align 4, !tbaa !9
  %46 = load i8, ptr %16, align 1, !tbaa !11
  %47 = zext i8 %46 to i32
  %48 = mul nsw i32 %47, 255
  %49 = icmp ule i32 %45, %48
  br i1 %49, label %50, label %105

50:                                               ; preds = %44
  %51 = load i32, ptr %7, align 4, !tbaa !9
  %52 = and i32 %51, 32
  %53 = icmp eq i32 %52, 32
  br i1 %53, label %54, label %56

54:                                               ; preds = %50
  %55 = load i8, ptr %11, align 1, !tbaa !11
  store i8 %55, ptr %9, align 1, !tbaa !11
  br label %56

56:                                               ; preds = %54, %50
  %57 = load i8, ptr %8, align 1, !tbaa !11
  %58 = zext i8 %57 to i32
  %59 = icmp eq i32 %58, 0
  br i1 %59, label %60, label %75

60:                                               ; preds = %56
  %61 = load ptr, ptr %6, align 8, !tbaa !5
  %62 = load i32, ptr %7, align 4, !tbaa !9
  %63 = load i8, ptr %11, align 1, !tbaa !11
  %64 = zext i8 %63 to i32
  %65 = load i8, ptr %12, align 1, !tbaa !11
  %66 = zext i8 %65 to i32
  %67 = load i32, ptr %15, align 4, !tbaa !9
  %68 = trunc i32 %67 to i8
  %69 = load i8, ptr %9, align 1, !tbaa !11
  %70 = zext i8 %69 to i32
  %71 = load i8, ptr %13, align 1, !tbaa !11
  %72 = zext i8 %71 to i64
  %73 = getelementptr inbounds [3 x i32], ptr %10, i64 0, i64 %72
  %74 = load i32, ptr %73, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %61, i32 noundef %62, i32 noundef %64, i32 noundef %66, i8 noundef zeroext %68, i32 noundef %70, i32 noundef 0, i32 noundef %74)
  br label %101

75:                                               ; preds = %56
  store i8 0, ptr %14, align 1, !tbaa !11
  br label %76

76:                                               ; preds = %97, %75
  %77 = load i8, ptr %14, align 1, !tbaa !11
  %78 = zext i8 %77 to i32
  %79 = icmp slt i32 %78, 8
  br i1 %79, label %80, label %100

80:                                               ; preds = %76
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = load i32, ptr %7, align 4, !tbaa !9
  %83 = load i8, ptr %11, align 1, !tbaa !11
  %84 = zext i8 %83 to i32
  %85 = load i8, ptr %12, align 1, !tbaa !11
  %86 = zext i8 %85 to i32
  %87 = load i32, ptr %15, align 4, !tbaa !9
  %88 = trunc i32 %87 to i8
  %89 = load i8, ptr %9, align 1, !tbaa !11
  %90 = zext i8 %89 to i32
  %91 = load i8, ptr %14, align 1, !tbaa !11
  %92 = zext i8 %91 to i32
  %93 = load i8, ptr %13, align 1, !tbaa !11
  %94 = zext i8 %93 to i64
  %95 = getelementptr inbounds [3 x i32], ptr %10, i64 0, i64 %94
  %96 = load i32, ptr %95, align 4, !tbaa !9
  call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %81, i32 noundef %82, i32 noundef %84, i32 noundef %86, i8 noundef zeroext %88, i32 noundef %90, i32 noundef %92, i32 noundef %96)
  br label %97

97:                                               ; preds = %80
  %98 = load i8, ptr %14, align 1, !tbaa !11
  %99 = add i8 %98, 1
  store i8 %99, ptr %14, align 1, !tbaa !11
  br label %76, !llvm.loop !12

100:                                              ; preds = %76
  br label %101

101:                                              ; preds = %100, %60
  br label %102

102:                                              ; preds = %101
  %103 = load i32, ptr %15, align 4, !tbaa !9
  %104 = add i32 %103, 1
  store i32 %104, ptr %15, align 4, !tbaa !9
  br label %44, !llvm.loop !14

105:                                              ; preds = %44
  br label %106

106:                                              ; preds = %105
  %107 = load i8, ptr %13, align 1, !tbaa !11
  %108 = add i8 %107, 1
  store i8 %108, ptr %13, align 1, !tbaa !11
  br label %39, !llvm.loop !15

109:                                              ; preds = %39
  br label %110

110:                                              ; preds = %109
  %111 = load i8, ptr %12, align 1, !tbaa !11
  %112 = add i8 %111, 1
  store i8 %112, ptr %12, align 1, !tbaa !11
  br label %34, !llvm.loop !16

113:                                              ; preds = %34
  br label %114

114:                                              ; preds = %113
  %115 = load i8, ptr %11, align 1, !tbaa !11
  %116 = add i8 %115, 1
  store i8 %116, ptr %11, align 1, !tbaa !11
  br label %29, !llvm.loop !17

117:                                              ; preds = %29
  br label %118

118:                                              ; preds = %117
  %119 = load i8, ptr %9, align 1, !tbaa !11
  %120 = add i8 %119, 1
  store i8 %120, ptr %9, align 1, !tbaa !11
  br label %24, !llvm.loop !18

121:                                              ; preds = %24
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = load ptr, ptr %5, align 8, !tbaa !5
  call void @dump_code_buffer(ptr noundef %122, ptr noundef %123)
  call void @llvm.lifetime.end.p0(i64 1, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #4
  ret void
}

declare void @libxsmm_aarch64_instruction_sve_compute(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext, i32 noundef, i32 noundef, i32 noundef) #3

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "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 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}
!17 = distinct !{!17, !13}
!18 = distinct !{!18, !13}


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

@__const.test_sve_compute.tuple = external hidden unnamed_addr constant [3 x i32], align 4

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

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

; Function Attrs: nounwind uwtable
define dso_local void @test_sve_compute(ptr noundef %0, ptr noundef %1, i32 noundef %2, i8 noundef zeroext %3) local_unnamed_addr #0 {
  tail call void @reset_code_buffer(ptr noundef %1, ptr noundef %0)
  %5 = and i32 %2, 4
  %.not = icmp eq i32 %5, 0
  %6 = select i1 %.not, i32 0, i32 255
  %7 = and i32 %2, 32
  %.not44 = icmp eq i32 %7, 0
  %8 = icmp eq i8 %3, 0
  %.pre176.pre.pre = load i32, ptr @__const.test_sve_compute.tuple, align 4, !tbaa !5
  %9 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_sve_compute.tuple, i64 4), align 4
  %10 = load i32, ptr getelementptr inbounds (i8, ptr @__const.test_sve_compute.tuple, i64 8), align 4
  br i1 %8, label %.split.us, label %.split

.split.us:                                        ; preds = %4
  br i1 %.not44, label %.preheader48.us.us, label %.preheader47.us.us102

.preheader48.us.us:                               ; preds = %.split.us, %.split94.us.split.us.us.us
  %indvars.iv170 = phi i32 [ %indvars.iv.next171, %.split94.us.split.us.us.us ], [ 0, %.split.us ]
  br label %.preheader47.us.us.us.us

.preheader47.us.us.us.us:                         ; preds = %.split.us.split.us.us.us.us.us, %.preheader48.us.us
  %indvars.iv166 = phi i32 [ %indvars.iv.next167, %.split.us.split.us.us.us.us.us ], [ 0, %.preheader48.us.us ]
  br label %.preheader46.us.us.us.us.us.us

.preheader46.us.us.us.us.us.us:                   ; preds = %.split.us.split.us.us.us.us.us.us.us.us.us.2, %.preheader47.us.us.us.us
  %indvars.iv162 = phi i32 [ %indvars.iv.next163, %.split.us.split.us.us.us.us.us.us.us.us.us.2 ], [ 0, %.preheader47.us.us.us.us ]
  br label %11

11:                                               ; preds = %11, %.preheader46.us.us.us.us.us.us
  %.03550.us.us.us.us.us.us.us.us.us.us = phi i32 [ 0, %.preheader46.us.us.us.us.us.us ], [ %13, %11 ]
  %12 = trunc nuw i32 %.03550.us.us.us.us.us.us.us.us.us.us to i8
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv166, i32 noundef %indvars.iv162, i8 noundef zeroext %12, i32 noundef %indvars.iv170, i32 noundef 0, i32 noundef %.pre176.pre.pre) #2
  %13 = add nuw nsw i32 %.03550.us.us.us.us.us.us.us.us.us.us, 1
  %exitcond157.not = icmp eq i32 %.03550.us.us.us.us.us.us.us.us.us.us, %6
  br i1 %exitcond157.not, label %.split.us.split.us.us.us.us.us.us.us.us.us, label %11, !llvm.loop !9

.split.us.split.us.us.us.us.us.us.us.us.us:       ; preds = %11, %.split.us.split.us.us.us.us.us.us.us.us.us
  %.03550.us.us.us.us.us.us.us.us.us.us.1 = phi i32 [ %15, %.split.us.split.us.us.us.us.us.us.us.us.us ], [ 0, %11 ]
  %14 = trunc nuw i32 %.03550.us.us.us.us.us.us.us.us.us.us.1 to i8
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv166, i32 noundef %indvars.iv162, i8 noundef zeroext %14, i32 noundef %indvars.iv170, i32 noundef 0, i32 noundef %9) #2
  %15 = add nuw nsw i32 %.03550.us.us.us.us.us.us.us.us.us.us.1, 1
  %exitcond157.1.not = icmp eq i32 %.03550.us.us.us.us.us.us.us.us.us.us.1, %6
  br i1 %exitcond157.1.not, label %.split.us.split.us.us.us.us.us.us.us.us.us.1, label %.split.us.split.us.us.us.us.us.us.us.us.us, !llvm.loop !9

.split.us.split.us.us.us.us.us.us.us.us.us.1:     ; preds = %.split.us.split.us.us.us.us.us.us.us.us.us, %.split.us.split.us.us.us.us.us.us.us.us.us.1
  %.03550.us.us.us.us.us.us.us.us.us.us.2 = phi i32 [ %17, %.split.us.split.us.us.us.us.us.us.us.us.us.1 ], [ 0, %.split.us.split.us.us.us.us.us.us.us.us.us ]
  %16 = trunc nuw i32 %.03550.us.us.us.us.us.us.us.us.us.us.2 to i8
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv166, i32 noundef %indvars.iv162, i8 noundef zeroext %16, i32 noundef %indvars.iv170, i32 noundef 0, i32 noundef %10) #2
  %17 = add nuw nsw i32 %.03550.us.us.us.us.us.us.us.us.us.us.2, 1
  %exitcond157.2.not = icmp eq i32 %.03550.us.us.us.us.us.us.us.us.us.us.2, %6
  br i1 %exitcond157.2.not, label %.split.us.split.us.us.us.us.us.us.us.us.us.2, label %.split.us.split.us.us.us.us.us.us.us.us.us.1, !llvm.loop !9

.split.us.split.us.us.us.us.us.us.us.us.us.2:     ; preds = %.split.us.split.us.us.us.us.us.us.us.us.us.1
  %indvars.iv.next163 = add nuw nsw i32 %indvars.iv162, 1
  %exitcond165.not = icmp eq i32 %indvars.iv.next163, 32
  br i1 %exitcond165.not, label %.split.us.split.us.us.us.us.us, label %.preheader46.us.us.us.us.us.us, !llvm.loop !11

.split.us.split.us.us.us.us.us:                   ; preds = %.split.us.split.us.us.us.us.us.us.us.us.us.2
  %indvars.iv.next167 = add nuw nsw i32 %indvars.iv166, 1
  %exitcond169.not = icmp eq i32 %indvars.iv.next167, 32
  br i1 %exitcond169.not, label %.split94.us.split.us.us.us, label %.preheader47.us.us.us.us, !llvm.loop !12

.split94.us.split.us.us.us:                       ; preds = %.split.us.split.us.us.us.us.us
  %indvars.iv.next171 = add nuw nsw i32 %indvars.iv170, 1
  %exitcond173.not = icmp eq i32 %indvars.iv.next171, 32
  br i1 %exitcond173.not, label %.split107.us, label %.preheader48.us.us, !llvm.loop !13

.preheader47.us.us102:                            ; preds = %.split.us, %.split.us.split.us91.us
  %indvars.iv153 = phi i32 [ %indvars.iv.next154, %.split.us.split.us91.us ], [ 0, %.split.us ]
  br label %.preheader46.us.us89.us

.preheader46.us.us89.us:                          ; preds = %.split.us.split.us62.us.us.us.2, %.preheader47.us.us102
  %indvars.iv149 = phi i32 [ %indvars.iv.next150, %.split.us.split.us62.us.us.us.2 ], [ 0, %.preheader47.us.us102 ]
  br label %18

18:                                               ; preds = %18, %.preheader46.us.us89.us
  %.03550.us.us60.us.us.us = phi i32 [ 0, %.preheader46.us.us89.us ], [ %20, %18 ]
  %19 = trunc nuw i32 %.03550.us.us60.us.us.us to i8
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv153, i32 noundef %indvars.iv149, i8 noundef zeroext %19, i32 noundef %indvars.iv153, i32 noundef 0, i32 noundef %.pre176.pre.pre) #2
  %20 = add nuw nsw i32 %.03550.us.us60.us.us.us, 1
  %exitcond144.not = icmp eq i32 %.03550.us.us60.us.us.us, %6
  br i1 %exitcond144.not, label %.split.us.split.us62.us.us.us, label %18, !llvm.loop !9

.split.us.split.us62.us.us.us:                    ; preds = %18, %.split.us.split.us62.us.us.us
  %.03550.us.us60.us.us.us.1 = phi i32 [ %22, %.split.us.split.us62.us.us.us ], [ 0, %18 ]
  %21 = trunc nuw i32 %.03550.us.us60.us.us.us.1 to i8
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv153, i32 noundef %indvars.iv149, i8 noundef zeroext %21, i32 noundef %indvars.iv153, i32 noundef 0, i32 noundef %9) #2
  %22 = add nuw nsw i32 %.03550.us.us60.us.us.us.1, 1
  %exitcond144.1.not = icmp eq i32 %.03550.us.us60.us.us.us.1, %6
  br i1 %exitcond144.1.not, label %.split.us.split.us62.us.us.us.1, label %.split.us.split.us62.us.us.us, !llvm.loop !9

.split.us.split.us62.us.us.us.1:                  ; preds = %.split.us.split.us62.us.us.us, %.split.us.split.us62.us.us.us.1
  %.03550.us.us60.us.us.us.2 = phi i32 [ %24, %.split.us.split.us62.us.us.us.1 ], [ 0, %.split.us.split.us62.us.us.us ]
  %23 = trunc nuw i32 %.03550.us.us60.us.us.us.2 to i8
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv153, i32 noundef %indvars.iv149, i8 noundef zeroext %23, i32 noundef %indvars.iv153, i32 noundef 0, i32 noundef %10) #2
  %24 = add nuw nsw i32 %.03550.us.us60.us.us.us.2, 1
  %exitcond144.2.not = icmp eq i32 %.03550.us.us60.us.us.us.2, %6
  br i1 %exitcond144.2.not, label %.split.us.split.us62.us.us.us.2, label %.split.us.split.us62.us.us.us.1, !llvm.loop !9

.split.us.split.us62.us.us.us.2:                  ; preds = %.split.us.split.us62.us.us.us.1
  %indvars.iv.next150 = add nuw nsw i32 %indvars.iv149, 1
  %exitcond152.not = icmp eq i32 %indvars.iv.next150, 32
  br i1 %exitcond152.not, label %.split.us.split.us91.us, label %.preheader46.us.us89.us, !llvm.loop !11

.split.us.split.us91.us:                          ; preds = %.split.us.split.us62.us.us.us.2
  %indvars.iv.next154 = add nuw nsw i32 %indvars.iv153, 1
  %exitcond156.not = icmp eq i32 %indvars.iv.next154, 32
  br i1 %exitcond156.not, label %.split107.us, label %.preheader47.us.us102, !llvm.loop !12

.split:                                           ; preds = %4
  br i1 %.not44, label %.preheader48.us109, label %.preheader47

.preheader48.us109:                               ; preds = %.split, %.split94.split.us.us
  %indvars.iv140 = phi i32 [ %indvars.iv.next141, %.split94.split.us.us ], [ 0, %.split ]
  br label %.preheader47.us96.us

.preheader47.us96.us:                             ; preds = %.split.split83.us.us.us, %.preheader48.us109
  %indvars.iv136 = phi i32 [ %indvars.iv.next137, %.split.split83.us.us.us ], [ 0, %.preheader48.us109 ]
  br label %.preheader46.us79.us.us

.preheader46.us79.us.us:                          ; preds = %.split.split.us.us.us.us.us.2, %.preheader47.us96.us
  %indvars.iv132 = phi i32 [ %indvars.iv.next133, %.split.split.us.us.us.us.us.2 ], [ 0, %.preheader47.us96.us ]
  br label %.preheader.us.us.us.us.us

.preheader.us.us.us.us.us:                        ; preds = %.preheader.us.us.us.us.us, %.preheader46.us79.us.us
  %.03550.us53.us.us.us.us = phi i32 [ 0, %.preheader46.us79.us.us ], [ %26, %.preheader.us.us.us.us.us ]
  %25 = trunc nuw i32 %.03550.us53.us.us.us.us to i8
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %25, i32 noundef %indvars.iv140, i32 noundef 0, i32 noundef %.pre176.pre.pre) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %25, i32 noundef %indvars.iv140, i32 noundef 1, i32 noundef %.pre176.pre.pre) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %25, i32 noundef %indvars.iv140, i32 noundef 2, i32 noundef %.pre176.pre.pre) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %25, i32 noundef %indvars.iv140, i32 noundef 3, i32 noundef %.pre176.pre.pre) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %25, i32 noundef %indvars.iv140, i32 noundef 4, i32 noundef %.pre176.pre.pre) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %25, i32 noundef %indvars.iv140, i32 noundef 5, i32 noundef %.pre176.pre.pre) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %25, i32 noundef %indvars.iv140, i32 noundef 6, i32 noundef %.pre176.pre.pre) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %25, i32 noundef %indvars.iv140, i32 noundef 7, i32 noundef %.pre176.pre.pre) #2
  %26 = add nuw nsw i32 %.03550.us53.us.us.us.us, 1
  %exitcond127.not = icmp eq i32 %.03550.us53.us.us.us.us, %6
  br i1 %exitcond127.not, label %.preheader.us.us.us.us.us.1, label %.preheader.us.us.us.us.us, !llvm.loop !9

.preheader.us.us.us.us.us.1:                      ; preds = %.preheader.us.us.us.us.us, %.preheader.us.us.us.us.us.1
  %.03550.us53.us.us.us.us.1 = phi i32 [ %28, %.preheader.us.us.us.us.us.1 ], [ 0, %.preheader.us.us.us.us.us ]
  %27 = trunc nuw i32 %.03550.us53.us.us.us.us.1 to i8
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %27, i32 noundef %indvars.iv140, i32 noundef 0, i32 noundef %9) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %27, i32 noundef %indvars.iv140, i32 noundef 1, i32 noundef %9) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %27, i32 noundef %indvars.iv140, i32 noundef 2, i32 noundef %9) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %27, i32 noundef %indvars.iv140, i32 noundef 3, i32 noundef %9) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %27, i32 noundef %indvars.iv140, i32 noundef 4, i32 noundef %9) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %27, i32 noundef %indvars.iv140, i32 noundef 5, i32 noundef %9) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %27, i32 noundef %indvars.iv140, i32 noundef 6, i32 noundef %9) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %27, i32 noundef %indvars.iv140, i32 noundef 7, i32 noundef %9) #2
  %28 = add nuw nsw i32 %.03550.us53.us.us.us.us.1, 1
  %exitcond127.1.not = icmp eq i32 %.03550.us53.us.us.us.us.1, %6
  br i1 %exitcond127.1.not, label %.preheader.us.us.us.us.us.2, label %.preheader.us.us.us.us.us.1, !llvm.loop !9

.preheader.us.us.us.us.us.2:                      ; preds = %.preheader.us.us.us.us.us.1, %.preheader.us.us.us.us.us.2
  %.03550.us53.us.us.us.us.2 = phi i32 [ %30, %.preheader.us.us.us.us.us.2 ], [ 0, %.preheader.us.us.us.us.us.1 ]
  %29 = trunc nuw i32 %.03550.us53.us.us.us.us.2 to i8
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %29, i32 noundef %indvars.iv140, i32 noundef 0, i32 noundef %10) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %29, i32 noundef %indvars.iv140, i32 noundef 1, i32 noundef %10) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %29, i32 noundef %indvars.iv140, i32 noundef 2, i32 noundef %10) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %29, i32 noundef %indvars.iv140, i32 noundef 3, i32 noundef %10) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %29, i32 noundef %indvars.iv140, i32 noundef 4, i32 noundef %10) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %29, i32 noundef %indvars.iv140, i32 noundef 5, i32 noundef %10) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %29, i32 noundef %indvars.iv140, i32 noundef 6, i32 noundef %10) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv136, i32 noundef %indvars.iv132, i8 noundef zeroext %29, i32 noundef %indvars.iv140, i32 noundef 7, i32 noundef %10) #2
  %30 = add nuw nsw i32 %.03550.us53.us.us.us.us.2, 1
  %exitcond127.2.not = icmp eq i32 %.03550.us53.us.us.us.us.2, %6
  br i1 %exitcond127.2.not, label %.split.split.us.us.us.us.us.2, label %.preheader.us.us.us.us.us.2, !llvm.loop !9

.split.split.us.us.us.us.us.2:                    ; preds = %.preheader.us.us.us.us.us.2
  %indvars.iv.next133 = add nuw nsw i32 %indvars.iv132, 1
  %exitcond135.not = icmp eq i32 %indvars.iv.next133, 32
  br i1 %exitcond135.not, label %.split.split83.us.us.us, label %.preheader46.us79.us.us, !llvm.loop !11

.split.split83.us.us.us:                          ; preds = %.split.split.us.us.us.us.us.2
  %indvars.iv.next137 = add nuw nsw i32 %indvars.iv136, 1
  %exitcond139.not = icmp eq i32 %indvars.iv.next137, 32
  br i1 %exitcond139.not, label %.split94.split.us.us, label %.preheader47.us96.us, !llvm.loop !12

.split94.split.us.us:                             ; preds = %.split.split83.us.us.us
  %indvars.iv.next141 = add nuw nsw i32 %indvars.iv140, 1
  %exitcond143.not = icmp eq i32 %indvars.iv.next141, 32
  br i1 %exitcond143.not, label %.split107.us, label %.preheader48.us109, !llvm.loop !13

.preheader47:                                     ; preds = %.split, %.split.split83
  %indvars.iv119 = phi i32 [ %indvars.iv.next120, %.split.split83 ], [ 0, %.split ]
  br label %.preheader46

.preheader46:                                     ; preds = %.preheader47, %.split.split.2
  %indvars.iv = phi i32 [ 0, %.preheader47 ], [ %indvars.iv.next, %.split.split.2 ]
  br label %.preheader

.preheader:                                       ; preds = %.preheader46, %.preheader
  %.03550 = phi i32 [ 0, %.preheader46 ], [ %32, %.preheader ]
  %31 = trunc nuw i32 %.03550 to i8
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %31, i32 noundef %indvars.iv119, i32 noundef 0, i32 noundef %.pre176.pre.pre) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %31, i32 noundef %indvars.iv119, i32 noundef 1, i32 noundef %.pre176.pre.pre) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %31, i32 noundef %indvars.iv119, i32 noundef 2, i32 noundef %.pre176.pre.pre) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %31, i32 noundef %indvars.iv119, i32 noundef 3, i32 noundef %.pre176.pre.pre) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %31, i32 noundef %indvars.iv119, i32 noundef 4, i32 noundef %.pre176.pre.pre) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %31, i32 noundef %indvars.iv119, i32 noundef 5, i32 noundef %.pre176.pre.pre) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %31, i32 noundef %indvars.iv119, i32 noundef 6, i32 noundef %.pre176.pre.pre) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %31, i32 noundef %indvars.iv119, i32 noundef 7, i32 noundef %.pre176.pre.pre) #2
  %32 = add nuw nsw i32 %.03550, 1
  %exitcond.not = icmp eq i32 %.03550, %6
  br i1 %exitcond.not, label %.preheader.1, label %.preheader, !llvm.loop !9

.preheader.1:                                     ; preds = %.preheader, %.preheader.1
  %.03550.1 = phi i32 [ %34, %.preheader.1 ], [ 0, %.preheader ]
  %33 = trunc nuw i32 %.03550.1 to i8
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %33, i32 noundef %indvars.iv119, i32 noundef 0, i32 noundef %9) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %33, i32 noundef %indvars.iv119, i32 noundef 1, i32 noundef %9) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %33, i32 noundef %indvars.iv119, i32 noundef 2, i32 noundef %9) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %33, i32 noundef %indvars.iv119, i32 noundef 3, i32 noundef %9) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %33, i32 noundef %indvars.iv119, i32 noundef 4, i32 noundef %9) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %33, i32 noundef %indvars.iv119, i32 noundef 5, i32 noundef %9) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %33, i32 noundef %indvars.iv119, i32 noundef 6, i32 noundef %9) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %33, i32 noundef %indvars.iv119, i32 noundef 7, i32 noundef %9) #2
  %34 = add nuw nsw i32 %.03550.1, 1
  %exitcond.1.not = icmp eq i32 %.03550.1, %6
  br i1 %exitcond.1.not, label %.preheader.2, label %.preheader.1, !llvm.loop !9

.preheader.2:                                     ; preds = %.preheader.1, %.preheader.2
  %.03550.2 = phi i32 [ %36, %.preheader.2 ], [ 0, %.preheader.1 ]
  %35 = trunc nuw i32 %.03550.2 to i8
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %35, i32 noundef %indvars.iv119, i32 noundef 0, i32 noundef %10) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %35, i32 noundef %indvars.iv119, i32 noundef 1, i32 noundef %10) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %35, i32 noundef %indvars.iv119, i32 noundef 2, i32 noundef %10) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %35, i32 noundef %indvars.iv119, i32 noundef 3, i32 noundef %10) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %35, i32 noundef %indvars.iv119, i32 noundef 4, i32 noundef %10) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %35, i32 noundef %indvars.iv119, i32 noundef 5, i32 noundef %10) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %35, i32 noundef %indvars.iv119, i32 noundef 6, i32 noundef %10) #2
  tail call void @libxsmm_aarch64_instruction_sve_compute(ptr noundef %1, i32 noundef %2, i32 noundef %indvars.iv119, i32 noundef %indvars.iv, i8 noundef zeroext %35, i32 noundef %indvars.iv119, i32 noundef 7, i32 noundef %10) #2
  %36 = add nuw nsw i32 %.03550.2, 1
  %exitcond.2.not = icmp eq i32 %.03550.2, %6
  br i1 %exitcond.2.not, label %.split.split.2, label %.preheader.2, !llvm.loop !9

.split.split.2:                                   ; preds = %.preheader.2
  %indvars.iv.next = add nuw nsw i32 %indvars.iv, 1
  %exitcond118.not = icmp eq i32 %indvars.iv.next, 32
  br i1 %exitcond118.not, label %.split.split83, label %.preheader46, !llvm.loop !11

.split.split83:                                   ; preds = %.split.split.2
  %indvars.iv.next120 = add nuw nsw i32 %indvars.iv119, 1
  %exitcond122.not = icmp eq i32 %indvars.iv.next120, 32
  br i1 %exitcond122.not, label %.split107.us, label %.preheader47, !llvm.loop !12

.split107.us:                                     ; preds = %.split.split83, %.split94.split.us.us, %.split.us.split.us91.us, %.split94.us.split.us.us.us
  tail call void @dump_code_buffer(ptr noundef %1, ptr noundef %0)
  ret void
}

declare void @libxsmm_aarch64_instruction_sve_compute(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass