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
99 lines
2.8 KiB
LLVM
99 lines
2.8 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
|
|
; Test use of LOAD LOGICAL INDEXED ADDRESS byte instructions.
|
|
;
|
|
; RUN: llc < %s -mtriple=s390x-linux-gnu -mcpu=z17 | FileCheck %s
|
|
|
|
; DO NOT USE: LLXAB with base and index.
|
|
define dso_local ptr @f0(ptr %ptr, i32 %idx) {
|
|
; CHECK-LABEL: f0:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: algfr %r2, %r3
|
|
; CHECK-NEXT: br %r14
|
|
%idxprom = zext i32 %idx to i64
|
|
%arrayidx = getelementptr inbounds i8, ptr %ptr, i64 %idxprom
|
|
ret ptr %arrayidx
|
|
}
|
|
|
|
; DO NOT USE: LLXAB with base and index (implied extension).
|
|
define dso_local ptr @f1(ptr %ptr, i32 zeroext %idx) {
|
|
; CHECK-LABEL: f1:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: agr %r2, %r3
|
|
; CHECK-NEXT: br %r14
|
|
%idxprom = zext i32 %idx to i64
|
|
%arrayidx = getelementptr inbounds i8, ptr %ptr, i64 %idxprom
|
|
ret ptr %arrayidx
|
|
}
|
|
|
|
; LLXAB with base and index and max displacement.
|
|
define dso_local ptr @f2(ptr %ptr, i32 %idx) {
|
|
; CHECK-LABEL: f2:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: llxab %r2, 524287(%r3,%r2)
|
|
; CHECK-NEXT: br %r14
|
|
%idxoff = add i32 %idx, 524287
|
|
%idxprom = zext i32 %idxoff to i64
|
|
%arrayidx = getelementptr inbounds i8, ptr %ptr, i64 %idxprom
|
|
ret ptr %arrayidx
|
|
}
|
|
|
|
; LLXAB with base and index and min displacement.
|
|
define dso_local ptr @f3(ptr %ptr, i32 %idx) {
|
|
; CHECK-LABEL: f3:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: llxab %r2, -524288(%r3,%r2)
|
|
; CHECK-NEXT: br %r14
|
|
%idxoff = add i32 %idx, -524288
|
|
%idxprom = zext i32 %idxoff to i64
|
|
%arrayidx = getelementptr inbounds i8, ptr %ptr, i64 %idxprom
|
|
ret ptr %arrayidx
|
|
}
|
|
|
|
; DO NOT USE: LLXAB with base and index and max displacement overflow.
|
|
define dso_local ptr @f4(ptr %ptr, i32 %idx) {
|
|
; CHECK-LABEL: f4:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: afi %r3, 524288
|
|
; CHECK-NEXT: algfr %r2, %r3
|
|
; CHECK-NEXT: br %r14
|
|
%idxoff = add i32 %idx, 524288
|
|
%idxprom = zext i32 %idxoff to i64
|
|
%arrayidx = getelementptr inbounds i8, ptr %ptr, i64 %idxprom
|
|
ret ptr %arrayidx
|
|
}
|
|
|
|
; DO NOT USE: LLXAB with base and index and min displacement overflow.
|
|
define dso_local ptr @f5(ptr %ptr, i32 %idx) {
|
|
; CHECK-LABEL: f5:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: afi %r3, -524289
|
|
; CHECK-NEXT: algfr %r2, %r3
|
|
; CHECK-NEXT: br %r14
|
|
%idxoff = add i32 %idx, -524289
|
|
%idxprom = zext i32 %idxoff to i64
|
|
%arrayidx = getelementptr inbounds i8, ptr %ptr, i64 %idxprom
|
|
ret ptr %arrayidx
|
|
}
|
|
|
|
; DO NOT USE: LLXAB with index.
|
|
define dso_local i64 @f6(i32 %idx) {
|
|
; CHECK-LABEL: f6:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: llgfr %r2, %r2
|
|
; CHECK-NEXT: br %r14
|
|
%idxprom = zext i32 %idx to i64
|
|
ret i64 %idxprom
|
|
}
|
|
|
|
; LLXAB with index and displacement.
|
|
define dso_local i64 @f7(i32 %idx) {
|
|
; CHECK-LABEL: f7:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: llxab %r2, 1(%r2,0)
|
|
; CHECK-NEXT: br %r14
|
|
%idxoff = add i32 %idx, 1
|
|
%idxprom = zext i32 %idxoff to i64
|
|
ret i64 %idxprom
|
|
}
|
|
|