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
74 lines
2.3 KiB
LLVM
74 lines
2.3 KiB
LLVM
; RUN: llc -mtriple=x86_64-unknown-unknown < %s | FileCheck %s
|
|
|
|
%struct.__va_list_tag = type { i32, i32, ptr, ptr }
|
|
|
|
declare void @llvm.va_end(ptr) #0
|
|
declare void @llvm.va_start(ptr) #10
|
|
|
|
define void @hardf(ptr %fmt, ...) #1 {
|
|
; CHECK-LABEL: hardf
|
|
; When using XMM registers to pass floating-point parameters,
|
|
; we need to spill those for va_start.
|
|
; CHECK: testb %al, %al
|
|
; CHECK: movaps %xmm0, {{.*}}%rsp
|
|
; CHECK: movaps %xmm1, {{.*}}%rsp
|
|
; CHECK: movaps %xmm2, {{.*}}%rsp
|
|
; CHECK: movaps %xmm3, {{.*}}%rsp
|
|
; CHECK: movaps %xmm4, {{.*}}%rsp
|
|
; CHECK: movaps %xmm5, {{.*}}%rsp
|
|
; CHECK: movaps %xmm6, {{.*}}%rsp
|
|
; CHECK: movaps %xmm7, {{.*}}%rsp
|
|
%va = alloca [1 x %struct.__va_list_tag], align 16
|
|
call void @llvm.va_start(ptr %va)
|
|
call void @llvm.va_end(ptr nonnull %va)
|
|
ret void
|
|
}
|
|
|
|
define void @softf(ptr %fmt, ...) #2 {
|
|
; CHECK-LABEL: softf
|
|
; For software floating point, floats are passed in general
|
|
; purpose registers, so no need to spill XMM registers.
|
|
; CHECK-NOT: %xmm
|
|
; CHECK: retq
|
|
%va = alloca [1 x %struct.__va_list_tag], align 16
|
|
call void @llvm.va_start(ptr %va)
|
|
call void @llvm.va_end(ptr nonnull %va)
|
|
ret void
|
|
}
|
|
|
|
define void @noimplf(ptr %fmt, ...) #3 {
|
|
; CHECK-LABEL: noimplf
|
|
; Even with noimplicitfloat, when using the hardware float API, we
|
|
; need to emit code to spill the XMM registers (PR36507).
|
|
; CHECK: testb %al, %al
|
|
; CHECK: movaps %xmm0, {{.*}}%rsp
|
|
; CHECK: movaps %xmm1, {{.*}}%rsp
|
|
; CHECK: movaps %xmm2, {{.*}}%rsp
|
|
; CHECK: movaps %xmm3, {{.*}}%rsp
|
|
; CHECK: movaps %xmm4, {{.*}}%rsp
|
|
; CHECK: movaps %xmm5, {{.*}}%rsp
|
|
; CHECK: movaps %xmm6, {{.*}}%rsp
|
|
; CHECK: movaps %xmm7, {{.*}}%rsp
|
|
%va = alloca [1 x %struct.__va_list_tag], align 16
|
|
call void @llvm.va_start(ptr %va)
|
|
call void @llvm.va_end(ptr nonnull %va)
|
|
ret void
|
|
}
|
|
|
|
define void @noimplsoftf(ptr %fmt, ...) #4 {
|
|
; CHECK-LABEL: noimplsoftf
|
|
; Combining noimplicitfloat and use-soft-float should not assert (PR48528).
|
|
; CHECK-NOT: %xmm
|
|
; CHECK: retq
|
|
%va = alloca [1 x %struct.__va_list_tag], align 16
|
|
call void @llvm.va_start(ptr %va)
|
|
call void @llvm.va_end(ptr nonnull %va)
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind }
|
|
attributes #1 = { nounwind uwtable }
|
|
attributes #2 = { nounwind uwtable "use-soft-float"="true" }
|
|
attributes #3 = { noimplicitfloat nounwind uwtable }
|
|
attributes #4 = { noimplicitfloat nounwind uwtable "use-soft-float"="true" }
|