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
68 lines
2.1 KiB
LLVM
68 lines
2.1 KiB
LLVM
; RUN: llc -mtriple=x86_64-pc-windows-msvc < %s | FileCheck %s --check-prefix=CHECK
|
|
; RUN: llc --fast-isel -mtriple=x86_64-pc-windows-msvc < %s | FileCheck %s --check-prefix=CHECK
|
|
; RUN: llc --global-isel --global-isel-abort=2 -mtriple=x86_64-pc-windows-msvc < %s | FileCheck %s --check-prefix=CHECK
|
|
|
|
define dso_local void @normal_call(ptr noundef readonly %func_ptr) local_unnamed_addr section "nc_sect" {
|
|
entry:
|
|
call void @a()
|
|
call void @a()
|
|
call void %func_ptr()
|
|
ret void
|
|
}
|
|
; CHECK-LABEL: normal_call:
|
|
; CHECK: .Limpcall0:
|
|
; CHECK-NEXT: rex64
|
|
; CHECK-NEXT: callq __imp_a
|
|
; CHECK-NEXT: nopl 8(%rax,%rax)
|
|
; CHECK-NEXT: .Limpcall1:
|
|
; CHECK-NEXT: rex64
|
|
; CHECK-NEXT: callq __imp_a
|
|
; CHECK-NEXT: nopl 8(%rax,%rax)
|
|
; CHECK-NEXT: movq %rsi, %rax
|
|
; CHECK-NEXT: .Limpcall2:
|
|
; CHECK-NEXT: callq *%rax
|
|
; CHECK-NEXT: nopl (%rax)
|
|
; CHECK-NEXT: nop
|
|
|
|
define dso_local void @tail_call() local_unnamed_addr section "tc_sect" {
|
|
entry:
|
|
tail call void @b()
|
|
ret void
|
|
}
|
|
; CHECK-LABEL: tail_call:
|
|
; CHECK: .Limpcall3:
|
|
; CHECK-NEXT: jmp __imp_b
|
|
|
|
define dso_local void @tail_call_fp(ptr noundef readonly %func_ptr) local_unnamed_addr section "tc_sect" {
|
|
entry:
|
|
tail call void %func_ptr()
|
|
ret void
|
|
}
|
|
; CHECK-LABEL: tail_call_fp:
|
|
; CHECK: movq %rcx, %rax
|
|
; CHECK-NEXT: .Limpcall4:
|
|
; CHECK-NEXT: rex64 jmpq *%rax
|
|
|
|
declare dllimport void @a() local_unnamed_addr
|
|
declare dllimport void @b() local_unnamed_addr
|
|
|
|
; CHECK-LABEL .section .retplne,"yi"
|
|
; CHECK-NEXT .asciz "RetpolineV1"
|
|
; CHECK-NEXT .long 24
|
|
; CHECK-NEXT .secnum tc_sect
|
|
; CHECK-NEXT .long 3
|
|
; CHECK-NEXT .secoffset .Limpcall3
|
|
; CHECK-NEXT .long 5
|
|
; CHECK-NEXT .secoffset .Limpcall4
|
|
; CHECK-NEXT .long 32
|
|
; CHECK-NEXT .secnum nc_sect
|
|
; CHECK-NEXT .long 3
|
|
; CHECK-NEXT .secoffset .Limpcall0
|
|
; CHECK-NEXT .long 3
|
|
; CHECK-NEXT .secoffset .Limpcall1
|
|
; CHECK-NEXT .long 5
|
|
; CHECK-NEXT .secoffset .Limpcall2
|
|
|
|
!llvm.module.flags = !{!0}
|
|
!0 = !{i32 1, !"import-call-optimization", i32 1}
|