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
71 lines
2.1 KiB
LLVM
71 lines
2.1 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -O2 -mtriple=aarch64-linux-gnu -mattr=+sve < %s | FileCheck %s
|
|
|
|
; #include <arm_sve.h>
|
|
; #include <stdint.h>
|
|
;
|
|
; void redundant_store(uint32_t *p, svint32_t v) {
|
|
; *p = 1;
|
|
; *(svint32_t *)p = v;
|
|
; }
|
|
define void @redundant_store(ptr nocapture %p, <vscale x 4 x i32> %v) {
|
|
; CHECK-LABEL: redundant_store:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: str z0, [x0]
|
|
; CHECK-NEXT: ret
|
|
store i32 1, ptr %p, align 4
|
|
store <vscale x 4 x i32> %v, ptr %p, align 16
|
|
ret void
|
|
}
|
|
|
|
define void @two_scalable_same_size(ptr writeonly %ptr, <vscale x 4 x i32> %a, <vscale x 4 x i32> %b) {
|
|
; CHECK-LABEL: two_scalable_same_size:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: str z1, [x0]
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
store <vscale x 4 x i32> %a, ptr %ptr
|
|
store <vscale x 4 x i32> %b, ptr %ptr
|
|
ret void
|
|
}
|
|
|
|
; make sure that scalable store is present, becuase we don't know its final size.
|
|
define void @keep_scalable_store(ptr writeonly %ptr, ptr %a, <vscale x 4 x i32> %b) {
|
|
; CHECK-LABEL: keep_scalable_store:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: ldp q2, q1, [x1]
|
|
; CHECK-NEXT: str z0, [x0]
|
|
; CHECK-NEXT: stp q2, q1, [x0]
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%0 = load <8 x i32>, ptr %a
|
|
store <vscale x 4 x i32> %b, ptr %ptr
|
|
store <8 x i32> %0, ptr %ptr
|
|
ret void
|
|
}
|
|
|
|
define void @two_scalable_keep_stores(ptr writeonly %ptr, <vscale x 4 x i32> %a, <vscale x 4 x i64> %b) {
|
|
; CHECK-LABEL: two_scalable_keep_stores:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: str z2, [x0, #1, mul vl]
|
|
; CHECK-NEXT: str z1, [x0]
|
|
; CHECK-NEXT: str z0, [x0]
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
store <vscale x 4 x i64> %b, ptr %ptr
|
|
store <vscale x 4 x i32> %a, ptr %ptr
|
|
ret void
|
|
}
|
|
|
|
define void @two_scalable_remove_store(ptr writeonly %ptr, <vscale x 4 x i32> %a, <vscale x 4 x i64> %b) {
|
|
; CHECK-LABEL: two_scalable_remove_store:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: str z2, [x0, #1, mul vl]
|
|
; CHECK-NEXT: str z1, [x0]
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
store <vscale x 4 x i32> %a, ptr %ptr
|
|
store <vscale x 4 x i64> %b, ptr %ptr
|
|
ret void
|
|
}
|