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
86 lines
3.4 KiB
YAML
86 lines
3.4 KiB
YAML
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
|
|
# RUN: llc -debugify-and-strip-all-safe -mtriple aarch64 -O0 -run-pass=aarch64-prelegalizer-combiner --aarch64prelegalizercombiner-only-enable-rule="load_or_combine" -global-isel -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=NOT_STRICT
|
|
# RUN: llc -debugify-and-strip-all-safe -mattr=+strict-align -mtriple aarch64 -O0 -run-pass=aarch64-prelegalizer-combiner --aarch64prelegalizercombiner-only-enable-rule="load_or_combine" -global-isel -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=STRICT
|
|
|
|
# REQUIRES: asserts
|
|
|
|
# Check that the load-or combine respects alignment requirements.
|
|
...
|
|
---
|
|
name: misaligned
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $x0, $x1
|
|
; NOT_STRICT-LABEL: name: misaligned
|
|
; NOT_STRICT: liveins: $x0, $x1
|
|
; NOT_STRICT-NEXT: {{ $}}
|
|
; NOT_STRICT-NEXT: %ptr:_(p0) = COPY $x1
|
|
; NOT_STRICT-NEXT: %full_load:_(s32) = G_LOAD %ptr(p0) :: (load (s32), align 2)
|
|
; NOT_STRICT-NEXT: $w1 = COPY %full_load(s32)
|
|
; NOT_STRICT-NEXT: RET_ReallyLR implicit $w1
|
|
;
|
|
; STRICT-LABEL: name: misaligned
|
|
; STRICT: liveins: $x0, $x1
|
|
; STRICT-NEXT: {{ $}}
|
|
; STRICT-NEXT: %cst_1:_(s64) = G_CONSTANT i64 1
|
|
; STRICT-NEXT: %cst_16:_(s32) = G_CONSTANT i32 16
|
|
; STRICT-NEXT: %ptr:_(p0) = COPY $x1
|
|
; STRICT-NEXT: %ptr_elt_1:_(p0) = G_PTR_ADD %ptr, %cst_1(s64)
|
|
; STRICT-NEXT: %low_half:_(s32) = G_ZEXTLOAD %ptr(p0) :: (load (s16))
|
|
; STRICT-NEXT: %elt1:_(s32) = G_ZEXTLOAD %ptr_elt_1(p0) :: (load (s16))
|
|
; STRICT-NEXT: %high_half:_(s32) = nuw G_SHL %elt1, %cst_16(s32)
|
|
; STRICT-NEXT: %full_load:_(s32) = G_OR %low_half, %high_half
|
|
; STRICT-NEXT: $w1 = COPY %full_load(s32)
|
|
; STRICT-NEXT: RET_ReallyLR implicit $w1
|
|
%cst_1:_(s64) = G_CONSTANT i64 1
|
|
%cst_16:_(s32) = G_CONSTANT i32 16
|
|
|
|
%ptr:_(p0) = COPY $x1
|
|
%ptr_elt_1:_(p0) = G_PTR_ADD %ptr, %cst_1(s64)
|
|
|
|
%low_half:_(s32) = G_ZEXTLOAD %ptr(p0) :: (load (s16), align 2)
|
|
%elt1:_(s32) = G_ZEXTLOAD %ptr_elt_1(p0) :: (load (s16), align 2)
|
|
%high_half:_(s32) = nuw G_SHL %elt1, %cst_16(s32)
|
|
|
|
%full_load:_(s32) = G_OR %low_half, %high_half
|
|
$w1 = COPY %full_load(s32)
|
|
RET_ReallyLR implicit $w1
|
|
|
|
...
|
|
---
|
|
name: aligned
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $x0, $x1
|
|
|
|
; NOT_STRICT-LABEL: name: aligned
|
|
; NOT_STRICT: liveins: $x0, $x1
|
|
; NOT_STRICT-NEXT: {{ $}}
|
|
; NOT_STRICT-NEXT: %ptr:_(p0) = COPY $x1
|
|
; NOT_STRICT-NEXT: %full_load:_(s32) = G_LOAD %ptr(p0) :: (load (s32))
|
|
; NOT_STRICT-NEXT: $w1 = COPY %full_load(s32)
|
|
; NOT_STRICT-NEXT: RET_ReallyLR implicit $w1
|
|
;
|
|
; STRICT-LABEL: name: aligned
|
|
; STRICT: liveins: $x0, $x1
|
|
; STRICT-NEXT: {{ $}}
|
|
; STRICT-NEXT: %ptr:_(p0) = COPY $x1
|
|
; STRICT-NEXT: %full_load:_(s32) = G_LOAD %ptr(p0) :: (load (s32))
|
|
; STRICT-NEXT: $w1 = COPY %full_load(s32)
|
|
; STRICT-NEXT: RET_ReallyLR implicit $w1
|
|
%cst_1:_(s64) = G_CONSTANT i64 1
|
|
%cst_16:_(s32) = G_CONSTANT i32 16
|
|
|
|
%ptr:_(p0) = COPY $x1
|
|
%ptr_elt_1:_(p0) = G_PTR_ADD %ptr, %cst_1(s64)
|
|
|
|
%low_half:_(s32) = G_ZEXTLOAD %ptr(p0) :: (load (s16), align 4)
|
|
%elt1:_(s32) = G_ZEXTLOAD %ptr_elt_1(p0) :: (load (s16), align 4)
|
|
%high_half:_(s32) = nuw G_SHL %elt1, %cst_16(s32)
|
|
|
|
%full_load:_(s32) = G_OR %low_half, %high_half
|
|
$w1 = COPY %full_load(s32)
|
|
RET_ReallyLR implicit $w1
|