CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
191 lines
7.4 KiB
LLVM
191 lines
7.4 KiB
LLVM
; RUN: llc --mtriple armv7-eabihf %s -o - | FileCheck %s
|
|
|
|
%struct.S0 = type { [4 x float] }
|
|
%struct.S1 = type { [2 x float] }
|
|
%struct.S2 = type { [4 x float] }
|
|
%struct.D0 = type { [2 x double] }
|
|
%struct.D1 = type { [2 x double] }
|
|
%struct.D2 = type { [4 x double] }
|
|
|
|
; pass in registers
|
|
define dso_local float @f0_0(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, %struct.S0 %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.S0 %s.coerce, 0, 0
|
|
ret float %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: f0_0:
|
|
; CHECK: vmov.f32 s0, s12
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in memory, no memory/regs split
|
|
define dso_local float @f0_1(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, float %x, %struct.S0 %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.S0 %s.coerce, 0, 0
|
|
ret float %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: f0_1:
|
|
; CHECK: vldr s0, [sp]
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in memory, alignment 4
|
|
define dso_local float @f0_2(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, double %d6, double %d7, float %x, %struct.S0 %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.S0 %s.coerce, 0, 0
|
|
ret float %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: f0_2:
|
|
; CHECK: vldr s0, [sp, #4]
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in registers
|
|
define dso_local float @f1_0(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, double %d6, %struct.S1 alignstack(8) %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.S1 %s.coerce, 0, 0
|
|
ret float %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: f1_0:
|
|
; CHECK: vmov.f32 s0, s14
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in memory, no memory/regs split
|
|
define dso_local float @f1_1(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, double %d6, float %x, %struct.S1 alignstack(8) %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.S1 %s.coerce, 0, 0
|
|
ret float %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: f1_1:
|
|
; CHECK: vldr s0, [sp]
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in memory, alignment 8
|
|
define dso_local float @f1_2(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, double %d6, double %d7, float %x, %struct.S1 alignstack(8) %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.S1 %s.coerce, 0, 0
|
|
ret float %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: f1_2:
|
|
; CHECK: vldr s0, [sp, #8]
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in registers
|
|
define dso_local float @f2_0(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, %struct.S2 alignstack(8) %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.S2 %s.coerce, 0, 0
|
|
ret float %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: f2_0:
|
|
; CHECK: vmov.f32 s0, s12
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in memory, no memory/regs split
|
|
define dso_local float @f2_1(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, float %x, %struct.S2 alignstack(8) %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.S2 %s.coerce, 0, 0
|
|
ret float %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: f2_1:
|
|
; CHECK: vldr s0, [sp]
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in memory, alignment 8
|
|
define dso_local float @f2_2(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, double %d6, double %d7, float %x, %struct.S2 alignstack(8) %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.S2 %s.coerce, 0, 0
|
|
ret float %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: f2_2:
|
|
; CHECK: vldr s0, [sp, #8]
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in registers
|
|
define dso_local double @g0_0(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, %struct.D0 %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.D0 %s.coerce, 0, 0
|
|
ret double %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: g0_0:
|
|
; CHECK: vmov.f64 d0, d6
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in memory, no memory/regs split
|
|
define dso_local double @g0_1(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, double %d6, %struct.D0 %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.D0 %s.coerce, 0, 0
|
|
ret double %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: g0_1:
|
|
; CHECK: vldr d0, [sp]
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in memory, alignment 8
|
|
define dso_local double @g0_2(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, double %d6, double %d7, float %x, %struct.D0 %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.D0 %s.coerce, 0, 0
|
|
ret double %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: g0_2:
|
|
; CHECK: vldr d0, [sp, #8]
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in registers
|
|
define dso_local double @g1_0(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, %struct.D1 alignstack(8) %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.D1 %s.coerce, 0, 0
|
|
ret double %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: g1_0:
|
|
; CHECK: vmov.f64 d0, d6
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in memory, no memory/regs split
|
|
define dso_local double @g1_1(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, double %d6, %struct.D1 alignstack(8) %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.D1 %s.coerce, 0, 0
|
|
ret double %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: g1_1:
|
|
; CHECK: vldr d0, [sp]
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in memory, alignment 8
|
|
define dso_local double @g1_2(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, double %d6, double %d7, float %x, %struct.D1 alignstack(8) %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.D1 %s.coerce, 0, 0
|
|
ret double %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: g1_2:
|
|
; CHECK: vldr d0, [sp, #8]
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in registers
|
|
define dso_local double @g2_0(double %d0, double %d1, double %d2, double %d3, %struct.D2 alignstack(8) %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.D2 %s.coerce, 0, 0
|
|
ret double %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: g2_0:
|
|
; CHECK: vmov.f64 d0, d4
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in memory, no memory/regs split
|
|
define dso_local double @g2_1(double %d0, double %d1, double %d2, double %d3, double %d4, %struct.D2 alignstack(8) %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.D2 %s.coerce, 0, 0
|
|
ret double %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: g2_1:
|
|
; CHECK: vldr d0, [sp]
|
|
; CHECK-NEXT: bx lr
|
|
|
|
; pass in memory, alignment 8
|
|
define dso_local double @g2_2(double %d0, double %d1, double %d2, double %d3, double %d4, double %d5, double %d6, double %d7, float %x, %struct.D2 alignstack(8) %s.coerce) local_unnamed_addr #0 {
|
|
entry:
|
|
%s.coerce.fca.0.0.extract = extractvalue %struct.D2 %s.coerce, 0, 0
|
|
ret double %s.coerce.fca.0.0.extract
|
|
}
|
|
; CHECK-LABEL: g2_2:
|
|
; CHECK: vldr d0, [sp, #8]
|
|
; CHECK-NEXT: bx lr
|
|
|
|
attributes #0 = { "target-cpu"="generic" "target-features"="+armv7-a,+d32,+dsp,+fp64,+neon,+strict-align,+vfp2,+vfp2sp,+vfp3,+vfp3d16,+vfp3d16sp,+vfp3sp,-thumb-mode" }
|