Files
llgo/internal/cabi/_testdata/arch/armv6/array_float32.ll
2025-08-13 15:28:04 +08:00

270 lines
12 KiB
LLVM

; ModuleID = '../../wrap/array_float32.c'
source_filename = "../../wrap/array_float32.c"
target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
target triple = "armv6kz-unknown-linux-gnueabihf"
%struct.array1 = type { [1 x float] }
%struct.array2 = type { [2 x float] }
%struct.array3 = type { [3 x float] }
%struct.array4 = type { [4 x float] }
%struct.array5 = type { [5 x float] }
%struct.array6 = type { [6 x float] }
%struct.array7 = type { [7 x float] }
%struct.array8 = type { [8 x float] }
%struct.array9 = type { [9 x float] }
%struct.array10 = type { [10 x float] }
%struct.array11 = type { [11 x float] }
%struct.array12 = type { [12 x float] }
%struct.array13 = type { [13 x float] }
%struct.array14 = type { [14 x float] }
%struct.array15 = type { [15 x float] }
%struct.array16 = type { [16 x float] }
%struct.array17 = type { [17 x float] }
%struct.array18 = type { [18 x float] }
%struct.array19 = type { [19 x float] }
%struct.array20 = type { [20 x float] }
; Function Attrs: noinline nounwind optnone
define dso_local %struct.array1 @demo1(%struct.array1 %0) #0 {
%2 = alloca %struct.array1, align 4
%3 = alloca %struct.array1, align 4
store %struct.array1 %0, %struct.array1* %3, align 4
%4 = bitcast %struct.array1* %2 to i8*
%5 = bitcast %struct.array1* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %4, i8* align 4 %5, i32 4, i1 false)
%6 = load %struct.array1, %struct.array1* %2, align 4
ret %struct.array1 %6
}
; Function Attrs: argmemonly nofree nounwind willreturn
declare void @llvm.memcpy.p0i8.p0i8.i32(i8* noalias nocapture writeonly, i8* noalias nocapture readonly, i32, i1 immarg) #1
; Function Attrs: noinline nounwind optnone
define dso_local %struct.array2 @demo2(%struct.array2 %0) #0 {
%2 = alloca %struct.array2, align 4
%3 = alloca %struct.array2, align 4
store %struct.array2 %0, %struct.array2* %3, align 4
%4 = bitcast %struct.array2* %2 to i8*
%5 = bitcast %struct.array2* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %4, i8* align 4 %5, i32 8, i1 false)
%6 = load %struct.array2, %struct.array2* %2, align 4
ret %struct.array2 %6
}
; Function Attrs: noinline nounwind optnone
define dso_local %struct.array3 @demo3(%struct.array3 %0) #0 {
%2 = alloca %struct.array3, align 4
%3 = alloca %struct.array3, align 4
store %struct.array3 %0, %struct.array3* %3, align 4
%4 = bitcast %struct.array3* %2 to i8*
%5 = bitcast %struct.array3* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %4, i8* align 4 %5, i32 12, i1 false)
%6 = load %struct.array3, %struct.array3* %2, align 4
ret %struct.array3 %6
}
; Function Attrs: noinline nounwind optnone
define dso_local %struct.array4 @demo4(%struct.array4 %0) #0 {
%2 = alloca %struct.array4, align 4
%3 = alloca %struct.array4, align 4
store %struct.array4 %0, %struct.array4* %3, align 4
%4 = bitcast %struct.array4* %2 to i8*
%5 = bitcast %struct.array4* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %4, i8* align 4 %5, i32 16, i1 false)
%6 = load %struct.array4, %struct.array4* %2, align 4
ret %struct.array4 %6
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo5(%struct.array5* noalias sret(%struct.array5) align 4 %0, [5 x i32] %1) #0 {
%3 = alloca %struct.array5, align 4
%4 = getelementptr inbounds %struct.array5, %struct.array5* %3, i32 0, i32 0
%5 = bitcast [5 x float]* %4 to [5 x i32]*
store [5 x i32] %1, [5 x i32]* %5, align 4
%6 = bitcast %struct.array5* %0 to i8*
%7 = bitcast %struct.array5* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %6, i8* align 4 %7, i32 20, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo6(%struct.array6* noalias sret(%struct.array6) align 4 %0, [6 x i32] %1) #0 {
%3 = alloca %struct.array6, align 4
%4 = getelementptr inbounds %struct.array6, %struct.array6* %3, i32 0, i32 0
%5 = bitcast [6 x float]* %4 to [6 x i32]*
store [6 x i32] %1, [6 x i32]* %5, align 4
%6 = bitcast %struct.array6* %0 to i8*
%7 = bitcast %struct.array6* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %6, i8* align 4 %7, i32 24, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo7(%struct.array7* noalias sret(%struct.array7) align 4 %0, [7 x i32] %1) #0 {
%3 = alloca %struct.array7, align 4
%4 = getelementptr inbounds %struct.array7, %struct.array7* %3, i32 0, i32 0
%5 = bitcast [7 x float]* %4 to [7 x i32]*
store [7 x i32] %1, [7 x i32]* %5, align 4
%6 = bitcast %struct.array7* %0 to i8*
%7 = bitcast %struct.array7* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %6, i8* align 4 %7, i32 28, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo8(%struct.array8* noalias sret(%struct.array8) align 4 %0, [8 x i32] %1) #0 {
%3 = alloca %struct.array8, align 4
%4 = getelementptr inbounds %struct.array8, %struct.array8* %3, i32 0, i32 0
%5 = bitcast [8 x float]* %4 to [8 x i32]*
store [8 x i32] %1, [8 x i32]* %5, align 4
%6 = bitcast %struct.array8* %0 to i8*
%7 = bitcast %struct.array8* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %6, i8* align 4 %7, i32 32, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo9(%struct.array9* noalias sret(%struct.array9) align 4 %0, [9 x i32] %1) #0 {
%3 = alloca %struct.array9, align 4
%4 = getelementptr inbounds %struct.array9, %struct.array9* %3, i32 0, i32 0
%5 = bitcast [9 x float]* %4 to [9 x i32]*
store [9 x i32] %1, [9 x i32]* %5, align 4
%6 = bitcast %struct.array9* %0 to i8*
%7 = bitcast %struct.array9* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %6, i8* align 4 %7, i32 36, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo10(%struct.array10* noalias sret(%struct.array10) align 4 %0, [10 x i32] %1) #0 {
%3 = alloca %struct.array10, align 4
%4 = getelementptr inbounds %struct.array10, %struct.array10* %3, i32 0, i32 0
%5 = bitcast [10 x float]* %4 to [10 x i32]*
store [10 x i32] %1, [10 x i32]* %5, align 4
%6 = bitcast %struct.array10* %0 to i8*
%7 = bitcast %struct.array10* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %6, i8* align 4 %7, i32 40, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo11(%struct.array11* noalias sret(%struct.array11) align 4 %0, [11 x i32] %1) #0 {
%3 = alloca %struct.array11, align 4
%4 = getelementptr inbounds %struct.array11, %struct.array11* %3, i32 0, i32 0
%5 = bitcast [11 x float]* %4 to [11 x i32]*
store [11 x i32] %1, [11 x i32]* %5, align 4
%6 = bitcast %struct.array11* %0 to i8*
%7 = bitcast %struct.array11* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %6, i8* align 4 %7, i32 44, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo12(%struct.array12* noalias sret(%struct.array12) align 4 %0, [12 x i32] %1) #0 {
%3 = alloca %struct.array12, align 4
%4 = getelementptr inbounds %struct.array12, %struct.array12* %3, i32 0, i32 0
%5 = bitcast [12 x float]* %4 to [12 x i32]*
store [12 x i32] %1, [12 x i32]* %5, align 4
%6 = bitcast %struct.array12* %0 to i8*
%7 = bitcast %struct.array12* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %6, i8* align 4 %7, i32 48, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo13(%struct.array13* noalias sret(%struct.array13) align 4 %0, [13 x i32] %1) #0 {
%3 = alloca %struct.array13, align 4
%4 = getelementptr inbounds %struct.array13, %struct.array13* %3, i32 0, i32 0
%5 = bitcast [13 x float]* %4 to [13 x i32]*
store [13 x i32] %1, [13 x i32]* %5, align 4
%6 = bitcast %struct.array13* %0 to i8*
%7 = bitcast %struct.array13* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %6, i8* align 4 %7, i32 52, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo14(%struct.array14* noalias sret(%struct.array14) align 4 %0, [14 x i32] %1) #0 {
%3 = alloca %struct.array14, align 4
%4 = getelementptr inbounds %struct.array14, %struct.array14* %3, i32 0, i32 0
%5 = bitcast [14 x float]* %4 to [14 x i32]*
store [14 x i32] %1, [14 x i32]* %5, align 4
%6 = bitcast %struct.array14* %0 to i8*
%7 = bitcast %struct.array14* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %6, i8* align 4 %7, i32 56, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo15(%struct.array15* noalias sret(%struct.array15) align 4 %0, [15 x i32] %1) #0 {
%3 = alloca %struct.array15, align 4
%4 = getelementptr inbounds %struct.array15, %struct.array15* %3, i32 0, i32 0
%5 = bitcast [15 x float]* %4 to [15 x i32]*
store [15 x i32] %1, [15 x i32]* %5, align 4
%6 = bitcast %struct.array15* %0 to i8*
%7 = bitcast %struct.array15* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %6, i8* align 4 %7, i32 60, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo16(%struct.array16* noalias sret(%struct.array16) align 4 %0, [16 x i32] %1) #0 {
%3 = alloca %struct.array16, align 4
%4 = getelementptr inbounds %struct.array16, %struct.array16* %3, i32 0, i32 0
%5 = bitcast [16 x float]* %4 to [16 x i32]*
store [16 x i32] %1, [16 x i32]* %5, align 4
%6 = bitcast %struct.array16* %0 to i8*
%7 = bitcast %struct.array16* %3 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %6, i8* align 4 %7, i32 64, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo17(%struct.array17* noalias sret(%struct.array17) align 4 %0, %struct.array17* noundef byval(%struct.array17) align 4 %1) #0 {
%3 = bitcast %struct.array17* %0 to i8*
%4 = bitcast %struct.array17* %1 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %3, i8* align 4 %4, i32 68, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo18(%struct.array18* noalias sret(%struct.array18) align 4 %0, %struct.array18* noundef byval(%struct.array18) align 4 %1) #0 {
%3 = bitcast %struct.array18* %0 to i8*
%4 = bitcast %struct.array18* %1 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %3, i8* align 4 %4, i32 72, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo19(%struct.array19* noalias sret(%struct.array19) align 4 %0, %struct.array19* noundef byval(%struct.array19) align 4 %1) #0 {
%3 = bitcast %struct.array19* %0 to i8*
%4 = bitcast %struct.array19* %1 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %3, i8* align 4 %4, i32 76, i1 false)
ret void
}
; Function Attrs: noinline nounwind optnone
define dso_local void @demo20(%struct.array20* noalias sret(%struct.array20) align 4 %0, %struct.array20* noundef byval(%struct.array20) align 4 %1) #0 {
%3 = bitcast %struct.array20* %0 to i8*
%4 = bitcast %struct.array20* %1 to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %3, i8* align 4 %4, i32 80, i1 false)
ret void
}
attributes #0 = { noinline nounwind optnone "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="arm1176jzf-s" "target-features"="+armv6kz,+dsp,+fp64,+strict-align,+vfp2,+vfp2sp,-aes,-d32,-fp-armv8,-fp-armv8d16,-fp-armv8d16sp,-fp-armv8sp,-fp16,-fp16fml,-fullfp16,-neon,-sha2,-thumb-mode,-vfp3,-vfp3d16,-vfp3d16sp,-vfp3sp,-vfp4,-vfp4d16,-vfp4d16sp,-vfp4sp" }
attributes #1 = { argmemonly nofree nounwind willreturn }
!llvm.module.flags = !{!0, !1, !2, !3, !4, !5, !6, !7, !8}
!llvm.ident = !{!9}
!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 1, !"min_enum_size", i32 4}
!2 = !{i32 8, !"branch-target-enforcement", i32 0}
!3 = !{i32 8, !"sign-return-address", i32 0}
!4 = !{i32 8, !"sign-return-address-all", i32 0}
!5 = !{i32 8, !"sign-return-address-with-bkey", i32 0}
!6 = !{i32 7, !"PIC Level", i32 2}
!7 = !{i32 7, !"PIE Level", i32 2}
!8 = !{i32 7, !"frame-pointer", i32 2}
!9 = !{!"Apple clang version 14.0.3 (clang-1403.0.22.14.1)"}