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
289 lines
14 KiB
LLVM
289 lines
14 KiB
LLVM
; RUN: llc -O0 -fast-isel -mtriple=aarch64-apple-ios -o - %s | FileCheck %s
|
|
; RUN: not llc -O0 -mtriple=aarch64-apple-ios -o /dev/null -fast-isel -fast-isel-abort=3 %s 2> %t
|
|
; RUN: FileCheck %s --check-prefix=CHECK-ERRORS < %t
|
|
|
|
; The issue here is that FastISel cannot emit an ADDrr where one of the inputs
|
|
; is SP. This only ever crops up with function calls, and then only if the
|
|
; argument is at an offset > 2^12 * size from SP.
|
|
|
|
; If FastISel ever starts coping with this and emits an "add xD, sp, xM" it's
|
|
; critical to check the encoding as well as the textual assembly. An ADDXrs with
|
|
; SP as an operand will still print with SP, but will actually mean XZR.
|
|
|
|
; CHECK-ERRORS: LLVM ERROR: FastISel missed call
|
|
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: sub
|
|
; CHECK-DAG: mov x[[SP:[0-9]+]], sp
|
|
; CHECK-DAG: mov w[[OFFSET:[0-9]+]], #4104
|
|
; CHECK: strb w0, [x[[SP]], x[[OFFSET]]]
|
|
|
|
define void @foo(i8 %in) {
|
|
call void @bar(i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef, ; All regs gone.
|
|
i64 undef, i64 undef, i64 undef, i64 undef, ; sp + 32
|
|
i64 undef, i64 undef, i64 undef, i64 undef, ; sp + 64
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef, ; sp + 128
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef, ; sp + 256
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef, ; sp + 512
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef, ; sp + 1024
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef, ; sp + 2048
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef,
|
|
i64 undef, i64 undef, i64 undef, i64 undef, ; sp + 4096
|
|
i64 undef, ; sp + 4104 (i.e. not uimm12 or uimm12 << 12).
|
|
i8 %in)
|
|
ret void
|
|
}
|
|
|
|
declare void @bar(i64, i64, i64, i64,
|
|
i64, i64, i64, i64, ; All regs gone.
|
|
i64, i64, i64, i64, ; sp + 32
|
|
i64, i64, i64, i64, ; sp + 64
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64, ; sp + 128
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64, ; sp + 256
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64, ; sp + 512
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64, ; sp + 1024
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64, ; sp + 2048
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64,
|
|
i64, i64, i64, i64, ; sp + 4096
|
|
i64,
|
|
i8)
|