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
59 lines
1.2 KiB
LLVM
59 lines
1.2 KiB
LLVM
; RUN: llc < %s -relocation-model=pic -mtriple=x86_64-pc-linux | FileCheck %s
|
|
; RUN: llc < %s -relocation-model=pic -mtriple=i386-pc-linux | FileCheck --check-prefix=I386 %s
|
|
|
|
@foo1 = extern_weak hidden global i32, align 4
|
|
define ptr @bar1() {
|
|
ret ptr @foo1
|
|
}
|
|
; CHECK: bar1:
|
|
; CHECK: movq foo1@GOTPCREL(%rip), %rax
|
|
; I386: bar1:
|
|
; I386: movl foo1@GOT(%eax), %eax
|
|
|
|
@foo2 = external hidden global i32, align 4
|
|
define ptr @bar2() {
|
|
ret ptr @foo2
|
|
}
|
|
; CHECK: bar2:
|
|
; CHECK: leaq foo2(%rip), %rax
|
|
; I386: bar2:
|
|
; I386: leal foo2@GOTOFF(%eax), %eax
|
|
|
|
declare extern_weak hidden void @foo3()
|
|
define void @bar3() {
|
|
call void @foo3()
|
|
ret void
|
|
}
|
|
; CHECK: bar3:
|
|
; CHECK: callq foo3
|
|
; I386: bar3:
|
|
; I386: calll foo3
|
|
|
|
declare external hidden void @foo4()
|
|
define void @bar4() {
|
|
call void @foo4()
|
|
ret void
|
|
}
|
|
; CHECK: bar4:
|
|
; CHECK: callq foo4
|
|
; I386: bar4:
|
|
; I386: calll foo4
|
|
|
|
declare extern_weak hidden i32 @foo5()
|
|
define ptr @bar5() {
|
|
ret ptr @foo5
|
|
}
|
|
; CHECK: bar5:
|
|
; CHECK: movq foo5@GOTPCREL(%rip), %rax
|
|
; I386: bar5:
|
|
; I386: movl foo5@GOT(%eax), %eax
|
|
|
|
declare external hidden i32 @foo6()
|
|
define ptr @bar6() {
|
|
ret ptr @foo6
|
|
}
|
|
; CHECK: bar6:
|
|
; CHECK: leaq foo6(%rip), %rax
|
|
; I386: bar6:
|
|
; I386: leal foo6@GOTOFF(%eax), %eax
|