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
73 lines
2.1 KiB
LLVM
73 lines
2.1 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=x86_64 -relocation-model=static < %s | \
|
|
; RUN: FileCheck --check-prefixes=COMMON,STATIC %s
|
|
; RUN: llc -mtriple=x86_64 -relocation-model=pic < %s | \
|
|
; RUN: FileCheck --check-prefixes=COMMON,CHECK %s
|
|
|
|
;; Test that we use the local alias for dso_local functions in inline assembly.
|
|
|
|
@gv0 = dso_local global i32 0
|
|
@gv1 = dso_preemptable global i32 1
|
|
|
|
define i64 @test_var() nounwind {
|
|
; STATIC-LABEL: test_var:
|
|
; STATIC: # %bb.0: # %entry
|
|
; STATIC-NEXT: movq gv1@GOTPCREL(%rip), %rax
|
|
; STATIC-NEXT: #APP
|
|
; STATIC-NEXT: movq gv0(%rip), %rax
|
|
; STATIC-NEXT: movq (%rax), %rax
|
|
; STATIC-NEXT: #NO_APP
|
|
; STATIC-NEXT: retq
|
|
;
|
|
; CHECK-LABEL: test_var:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: movq gv1@GOTPCREL(%rip), %rax
|
|
; CHECK-NEXT: #APP
|
|
; CHECK-NEXT: movq .Lgv0$local(%rip), %rax
|
|
; CHECK-NEXT: movq (%rax), %rax
|
|
; CHECK-NEXT: #NO_APP
|
|
; CHECK-NEXT: retq
|
|
entry:
|
|
%0 = tail call i64 asm "movq $1, $0\0Amovq $2, $0", "=r,*m,*m"(ptr elementtype(i32) @gv0, ptr elementtype(i32) @gv1)
|
|
ret i64 %0
|
|
}
|
|
|
|
define dso_local void @fun0() nounwind {
|
|
; COMMON-LABEL: fun0:
|
|
; COMMON: # %bb.0: # %entry
|
|
; COMMON-NEXT: retq
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
define dso_preemptable void @fun1() nounwind {
|
|
; COMMON-LABEL: fun1:
|
|
; COMMON: # %bb.0: # %entry
|
|
; COMMON-NEXT: retq
|
|
entry:
|
|
ret void
|
|
}
|
|
|
|
define i64 @test_fun() nounwind {
|
|
; STATIC-LABEL: test_fun:
|
|
; STATIC: # %bb.0: # %entry
|
|
; STATIC-NEXT: movq fun1@GOTPCREL(%rip), %rax
|
|
; STATIC-NEXT: #APP
|
|
; STATIC-NEXT: movq fun0(%rip), %rax
|
|
; STATIC-NEXT: movq (%rax), %rax
|
|
; STATIC-NEXT: #NO_APP
|
|
; STATIC-NEXT: retq
|
|
;
|
|
; CHECK-LABEL: test_fun:
|
|
; CHECK: # %bb.0: # %entry
|
|
; CHECK-NEXT: movq fun1@GOTPCREL(%rip), %rax
|
|
; CHECK-NEXT: #APP
|
|
; CHECK-NEXT: movq .Lfun0$local(%rip), %rax
|
|
; CHECK-NEXT: movq (%rax), %rax
|
|
; CHECK-NEXT: #NO_APP
|
|
; CHECK-NEXT: retq
|
|
entry:
|
|
%0 = tail call i64 asm "movq $1, $0\0Amovq $2, $0", "=r,*m,*m"(ptr elementtype(void ()) nonnull @fun0, ptr elementtype(void ()) nonnull @fun1)
|
|
ret i64 %0
|
|
}
|