Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/AArch64/sve-forward-st-to-ld.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

89 lines
3.2 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve < %s | FileCheck %s
define <vscale x 2 x i64> @sti64ldi64(ptr nocapture %P, <vscale x 2 x i64> %v) {
; CHECK-LABEL: sti64ldi64:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: str z0, [x0, #1, mul vl]
; CHECK-NEXT: ret
entry:
%arrayidx0 = getelementptr inbounds <vscale x 2 x i64>, ptr %P, i64 1
store <vscale x 2 x i64> %v, ptr %arrayidx0
%arrayidx1 = getelementptr inbounds <vscale x 2 x i64>, ptr %P, i64 1
%0 = load <vscale x 2 x i64>, ptr %arrayidx1
ret <vscale x 2 x i64> %0
}
define <vscale x 2 x double> @stf64ldf64(ptr nocapture %P, <vscale x 2 x double> %v) {
; CHECK-LABEL: stf64ldf64:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: str z0, [x0, #1, mul vl]
; CHECK-NEXT: ret
entry:
%arrayidx0 = getelementptr inbounds <vscale x 2 x double>, ptr %P, i64 1
store <vscale x 2 x double> %v, ptr %arrayidx0
%arrayidx1 = getelementptr inbounds <vscale x 2 x double>, ptr %P, i64 1
%0 = load <vscale x 2 x double>, ptr %arrayidx1
ret <vscale x 2 x double> %0
}
define <vscale x 2 x i64> @sti32ldi32ext(ptr nocapture %P, <vscale x 2 x i64> %v) {
; CHECK-LABEL: sti32ldi32ext:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: ptrue p0.d
; CHECK-NEXT: mov z1.d, z0.d
; CHECK-NEXT: sxtw z0.d, p0/m, z0.d
; CHECK-NEXT: st1w { z1.d }, p0, [x0]
; CHECK-NEXT: ret
entry:
%0 = trunc <vscale x 2 x i64> %v to <vscale x 2 x i32>
store <vscale x 2 x i32> %0, ptr %P
%1 = load <vscale x 2 x i32>, ptr %P
%2 = sext <vscale x 2 x i32> %1 to <vscale x 2 x i64>
ret <vscale x 2 x i64> %2
}
define <2 x i64> @sti64ldfixedi64(ptr nocapture %P, <vscale x 2 x i64> %v) {
; CHECK-LABEL: sti64ldfixedi64:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: rdvl x8, #1
; CHECK-NEXT: str z0, [x0, #1, mul vl]
; CHECK-NEXT: ldr q0, [x0, x8]
; CHECK-NEXT: ret
entry:
%arrayidx0 = getelementptr inbounds <vscale x 2 x i64>, ptr %P, i64 1
store <vscale x 2 x i64> %v, ptr %arrayidx0
%arrayidx1 = bitcast ptr %arrayidx0 to ptr
%0 = load <2 x i64>, ptr %arrayidx1
ret <2 x i64> %0
}
define <vscale x 4 x i32> @sti64ldi32(ptr nocapture %P, <vscale x 2 x i64> %v) {
; CHECK-LABEL: sti64ldi32:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: str z0, [x0, #1, mul vl]
; CHECK-NEXT: ret
entry:
%0 = bitcast ptr %P to ptr
%arrayidx0 = getelementptr inbounds <vscale x 2 x i64>, ptr %P, i64 1
store <vscale x 2 x i64> %v, ptr %arrayidx0
%arrayidx1 = getelementptr inbounds <vscale x 4 x i32>, ptr %0, i64 1
%1 = load <vscale x 4 x i32>, ptr %arrayidx1
ret <vscale x 4 x i32> %1
}
define <vscale x 2 x i64> @stf64ldi64(ptr nocapture %P, <vscale x 2 x double> %v) {
; CHECK-LABEL: stf64ldi64:
; CHECK: // %bb.0: // %entry
; CHECK-NEXT: str z0, [x0, #1, mul vl]
; CHECK-NEXT: ldr z0, [x0, #1, mul vl]
; CHECK-NEXT: ret
entry:
%0 = bitcast ptr %P to ptr
%arrayidx0 = getelementptr inbounds <vscale x 2 x double>, ptr %P, i64 1
store <vscale x 2 x double> %v, ptr %arrayidx0
%arrayidx1 = getelementptr inbounds <vscale x 2 x i64>, ptr %0, i64 1
%1 = load <vscale x 2 x i64>, ptr %arrayidx1
ret <vscale x 2 x i64> %1
}