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
57 lines
1.7 KiB
LLVM
57 lines
1.7 KiB
LLVM
; RUN: llc < %s -mcpu=atom -mtriple=i686-linux | FileCheck -check-prefix=ATOM32 %s
|
|
; RUN: llc < %s -mcpu=core2 -mtriple=i686-linux | FileCheck -check-prefix=ATOM-NOT32 %s
|
|
; RUN: llc < %s -mcpu=atom -mtriple=x86_64-linux | FileCheck -check-prefix=ATOM64 %s
|
|
; RUN: llc < %s -mcpu=core2 -mtriple=x86_64-linux | FileCheck -check-prefix=ATOM-NOT64 %s
|
|
; RUN: llc < %s -mcpu=slm -mtriple=i686-linux | FileCheck -check-prefix=SLM32 %s
|
|
; RUN: llc < %s -mcpu=slm -mtriple=x86_64-linux | FileCheck -check-prefix=SLM64 %s
|
|
; RUN: llc < %s -mcpu=goldmont -mtriple=i686-linux | FileCheck -check-prefix=SLM32 %s
|
|
; RUN: llc < %s -mcpu=goldmont -mtriple=x86_64-linux | FileCheck -check-prefix=SLM64 %s
|
|
|
|
|
|
; fn_ptr.ll
|
|
%class.A = type { ptr }
|
|
|
|
define i32 @test1() #0 {
|
|
;ATOM-LABEL: test1:
|
|
entry:
|
|
%call = tail call ptr @_Z3facv()
|
|
%vtable = load ptr, ptr %call, align 8
|
|
%0 = load ptr, ptr %vtable, align 8
|
|
;ATOM32: movl (%ecx), %ecx
|
|
;ATOM32: calll *%ecx
|
|
;ATOM-NOT32: calll *(%ecx)
|
|
;ATOM64: movq (%rcx), %rcx
|
|
;ATOM64: callq *%rcx
|
|
;ATOM-NOT64: callq *(%rcx)
|
|
;SLM32: movl (%ecx), %ecx
|
|
;SLM32: calll *%ecx
|
|
;SLM64: movq (%rcx), %rcx
|
|
;SLM64: callq *%rcx
|
|
tail call void %0(ptr %call)
|
|
ret i32 0
|
|
}
|
|
|
|
declare ptr @_Z3facv() #1
|
|
|
|
; virt_fn.ll
|
|
@p = external dso_local global ptr
|
|
|
|
define i32 @test2() #0 {
|
|
;ATOM-LABEL: test2:
|
|
entry:
|
|
%0 = load ptr, ptr @p, align 8
|
|
%1 = load ptr, ptr %0, align 8
|
|
;ATOM32: movl (%eax), %eax
|
|
;ATOM32: calll *%eax
|
|
;ATOM-NOT: calll *(%eax)
|
|
;ATOM64: movq (%rax), %rax
|
|
;ATOM64: callq *%rax
|
|
;ATOM-NOT64: callq *(%rax)
|
|
;SLM32: movl (%eax), %eax
|
|
;SLM32: calll *%eax
|
|
;SLM64: movq (%rax), %rax
|
|
;SLM64: callq *%rax
|
|
tail call void %1(i32 2)
|
|
ret i32 0
|
|
}
|