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
50 lines
1.3 KiB
LLVM
50 lines
1.3 KiB
LLVM
; RUN: llc -verify-machineinstrs < %s | FileCheck %s
|
|
|
|
target datalayout = "e-p:16:16:16-i8:8:8-i16:16:16-i32:16:32-n8:16"
|
|
target triple = "msp430---elf"
|
|
|
|
declare void @llvm.va_start(ptr) nounwind
|
|
declare void @llvm.va_end(ptr) nounwind
|
|
declare void @llvm.va_copy(ptr, ptr) nounwind
|
|
|
|
define void @va_start(i16 %a, ...) nounwind {
|
|
entry:
|
|
; CHECK-LABEL: va_start:
|
|
; CHECK: sub #2, r1
|
|
%vl = alloca ptr, align 2
|
|
%vl1 = bitcast ptr %vl to ptr
|
|
; CHECK-NEXT: mov r1, [[REG:r[0-9]+]]
|
|
; CHECK-NEXT: add #6, [[REG]]
|
|
; CHECK-NEXT: mov [[REG]], 0(r1)
|
|
call void @llvm.va_start(ptr %vl1)
|
|
call void @llvm.va_end(ptr %vl1)
|
|
ret void
|
|
}
|
|
|
|
define i16 @va_arg(ptr %vl) nounwind {
|
|
entry:
|
|
; CHECK-LABEL: va_arg:
|
|
%vl.addr = alloca ptr, align 2
|
|
store ptr %vl, ptr %vl.addr, align 2
|
|
; CHECK: mov r12, [[REG:r[0-9]+]]
|
|
; CHECK-NEXT: incd [[REG]]
|
|
; CHECK-NEXT: mov [[REG]], 0(r1)
|
|
%0 = va_arg ptr %vl.addr, i16
|
|
; CHECK-NEXT: mov 0(r12), r12
|
|
ret i16 %0
|
|
}
|
|
|
|
define void @va_copy(ptr %vl) nounwind {
|
|
entry:
|
|
; CHECK-LABEL: va_copy:
|
|
%vl.addr = alloca ptr, align 2
|
|
%vl2 = alloca ptr, align 2
|
|
; CHECK-DAG: mov r12, 2(r1)
|
|
store ptr %vl, ptr %vl.addr, align 2
|
|
%0 = bitcast ptr %vl2 to ptr
|
|
%1 = bitcast ptr %vl.addr to ptr
|
|
; CHECK-DAG: mov r12, 0(r1)
|
|
call void @llvm.va_copy(ptr %0, ptr %1)
|
|
ret void
|
|
}
|