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
48 lines
1.6 KiB
LLVM
48 lines
1.6 KiB
LLVM
; RUN: llc -O0 -fast-isel -fast-isel-abort=1 -verify-machineinstrs -mtriple=arm64-apple-darwin < %s | FileCheck %s
|
|
|
|
@sortlist = common global [5001 x i32] zeroinitializer, align 16
|
|
@sortlist2 = common global [5001 x i64] zeroinitializer, align 16
|
|
|
|
; Load an address with an offset larget then LDR imm can handle
|
|
define i32 @foo() nounwind {
|
|
entry:
|
|
; CHECK-LABEL: @foo
|
|
; CHECK: adrp x[[REG:[0-9]+]], _sortlist@GOTPAGE
|
|
; CHECK: ldr x[[REG1:[0-9]+]], [x[[REG]], _sortlist@GOTPAGEOFF]
|
|
; CHECK: mov x[[REG2:[0-9]+]], #20000
|
|
; CHECK: add x[[REG3:[0-9]+]], x[[REG1]], x[[REG2]]
|
|
; CHECK: ldr w0, [x[[REG3]]]
|
|
; CHECK: ret
|
|
%0 = load i32, ptr getelementptr inbounds ([5001 x i32], ptr @sortlist, i32 0, i64 5000), align 4
|
|
ret i32 %0
|
|
}
|
|
|
|
define i64 @foo2() nounwind {
|
|
entry:
|
|
; CHECK-LABEL: @foo2
|
|
; CHECK: adrp x[[REG:[0-9]+]], _sortlist2@GOTPAGE
|
|
; CHECK: ldr x[[REG1:[0-9]+]], [x[[REG]], _sortlist2@GOTPAGEOFF]
|
|
; CHECK: mov x[[REG2:[0-9]+]], #40000
|
|
; CHECK: add x[[REG3:[0-9]+]], x[[REG1]], x[[REG2]]
|
|
; CHECK: ldr x0, [x[[REG3]]]
|
|
; CHECK: ret
|
|
%0 = load i64, ptr getelementptr inbounds ([5001 x i64], ptr @sortlist2, i32 0, i64 5000), align 4
|
|
ret i64 %0
|
|
}
|
|
|
|
; Load an address with a ridiculously large offset.
|
|
; rdar://12505553
|
|
@pd2 = common global ptr null, align 8
|
|
|
|
define signext i8 @foo3() nounwind ssp {
|
|
entry:
|
|
; CHECK-LABEL: @foo3
|
|
; CHECK: mov x[[REG:[0-9]+]], #12274
|
|
; CHECK: movk x[[REG]], #29646, lsl #16
|
|
; CHECK: movk x[[REG]], #2874, lsl #32
|
|
%0 = load ptr, ptr @pd2, align 8
|
|
%arrayidx = getelementptr inbounds i8, ptr %0, i64 12345678901234
|
|
%1 = load i8, ptr %arrayidx, align 1
|
|
ret i8 %1
|
|
}
|