Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/X86/vararg_tailcall.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

95 lines
2.7 KiB
LLVM

; RUN: llc < %s -mtriple=x86_64-apple-darwin10 | FileCheck %s -check-prefix=X64
; RUN: llc < %s -mtriple=x86_64-pc-win32 | FileCheck %s -check-prefix=WIN64
@.str = private unnamed_addr constant [5 x i8] c"%ld\0A\00"
@sel = external global ptr
@sel3 = external global ptr
@sel4 = external global ptr
@sel5 = external global ptr
@sel6 = external global ptr
@sel7 = external global ptr
; X64: @foo
; X64: jmp
; WIN64: @foo
; WIN64: callq
define void @foo(i64 %arg) nounwind optsize ssp noredzone {
entry:
%call = tail call i32 (ptr, ...) @printf(ptr @.str, i64 %arg) nounwind optsize noredzone
ret void
}
declare i32 @printf(ptr, ...) optsize noredzone
; X64: @bar
; X64: jmp
; WIN64: @bar
; WIN64: jmp
define void @bar(i64 %arg) nounwind optsize ssp noredzone {
entry:
tail call void @bar2(ptr @.str, i64 %arg) nounwind optsize noredzone
ret void
}
declare void @bar2(ptr, i64) optsize noredzone
; X64: @foo2
; X64: jmp
; WIN64: @foo2
; WIN64: callq
define ptr @foo2(ptr %arg) nounwind optsize ssp noredzone {
entry:
%tmp1 = load ptr, ptr @sel, align 8
%call = tail call ptr (ptr, ptr, ...) @x2(ptr %arg, ptr %tmp1) nounwind optsize noredzone
ret ptr %call
}
declare ptr @x2(ptr, ptr, ...) optsize noredzone
; X64: @foo6
; X64: jmp
; WIN64: @foo6
; WIN64: callq
define ptr @foo6(ptr %arg1, ptr %arg2) nounwind optsize ssp noredzone {
entry:
%tmp2 = load ptr, ptr @sel3, align 8
%tmp3 = load ptr, ptr @sel4, align 8
%tmp4 = load ptr, ptr @sel5, align 8
%tmp5 = load ptr, ptr @sel6, align 8
%call = tail call ptr (ptr, ptr, ptr, ...) @x3(ptr %arg1, ptr %arg2, ptr %tmp2, ptr %tmp3, ptr %tmp4, ptr %tmp5) nounwind optsize noredzone
ret ptr %call
}
declare ptr @x3(ptr, ptr, ptr, ...) optsize noredzone
; X64: @foo7
; X64: callq
; WIN64: @foo7
; WIN64: callq
define ptr @foo7(ptr %arg1, ptr %arg2) nounwind optsize ssp noredzone {
entry:
%tmp2 = load ptr, ptr @sel3, align 8
%tmp3 = load ptr, ptr @sel4, align 8
%tmp4 = load ptr, ptr @sel5, align 8
%tmp5 = load ptr, ptr @sel6, align 8
%tmp6 = load ptr, ptr @sel7, align 8
%call = tail call ptr (ptr, ptr, ptr, ptr, ptr, ptr, ptr, ...) @x7(ptr %arg1, ptr %arg2, ptr %tmp2, ptr %tmp3, ptr %tmp4, ptr %tmp5, ptr %tmp6) nounwind optsize noredzone
ret ptr %call
}
declare ptr @x7(ptr, ptr, ptr, ptr, ptr, ptr, ptr, ...) optsize noredzone
; X64: @foo8
; X64: callq
; WIN64: @foo8
; WIN64: callq
define ptr @foo8(ptr %arg1, ptr %arg2) nounwind optsize ssp noredzone {
entry:
%tmp2 = load ptr, ptr @sel3, align 8
%tmp3 = load ptr, ptr @sel4, align 8
%tmp4 = load ptr, ptr @sel5, align 8
%tmp5 = load ptr, ptr @sel6, align 8
%call = tail call ptr (ptr, ptr, ptr, ...) @x3(ptr %arg1, ptr %arg2, ptr %tmp2, ptr %tmp3, ptr %tmp4, ptr %tmp5, i32 48879, i32 48879) nounwind optsize noredzone
ret ptr %call
}