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
138 lines
6.5 KiB
LLVM
138 lines
6.5 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=aarch64-linux-gnu -o - %s | FileCheck %s
|
|
; RUN: llc -mtriple=aarch64-linux-gnu -stop-after=finalize-isel -o - %s | FileCheck --check-prefix=MIR %s
|
|
|
|
; MIR-DAG: ![[DOMAIN:[0-9]+]] = distinct !{!{{[0-9]+}}, !"bax"}
|
|
; MIR-DAG: ![[SCOPE0:[0-9]+]] = distinct !{!{{[0-9]+}}, ![[DOMAIN]], !"bax: %p"}
|
|
; MIR-DAG: ![[SCOPE1:[0-9]+]] = distinct !{!{{[0-9]+}}, ![[DOMAIN]], !"bax: %q"}
|
|
; MIR-DAG: ![[SET0:[0-9]+]] = !{![[SCOPE0]]}
|
|
; MIR-DAG: ![[SET1:[0-9]+]] = !{![[SCOPE1]]}
|
|
|
|
; MIR-LABEL: name: test_memcpy
|
|
; MIR: %2:fpr128 = LDRQui %0, 1 :: (load (s128) from %ir.p1, align 4, !alias.scope ![[SET0]], !noalias ![[SET1]])
|
|
; MIR-NEXT: STRQui killed %2, %0, 0 :: (store (s128) into %ir.p0, align 4, !alias.scope ![[SET0]], !noalias ![[SET1]])
|
|
define i32 @test_memcpy(ptr nocapture %p, ptr nocapture readonly %q) {
|
|
; CHECK-LABEL: test_memcpy:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ldp w9, w10, [x1]
|
|
; CHECK-NEXT: ldr q0, [x0, #16]
|
|
; CHECK-NEXT: mov x8, x0
|
|
; CHECK-NEXT: add w0, w9, w10
|
|
; CHECK-NEXT: str q0, [x8]
|
|
; CHECK-NEXT: ret
|
|
%p0 = bitcast ptr %p to ptr
|
|
%add.ptr = getelementptr inbounds i32, ptr %p, i64 4
|
|
%p1 = bitcast ptr %add.ptr to ptr
|
|
tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %p0, ptr noundef nonnull align 4 dereferenceable(16) %p1, i64 16, i1 false), !alias.scope !2, !noalias !4
|
|
%v0 = load i32, ptr %q, align 4, !alias.scope !4, !noalias !2
|
|
%q1 = getelementptr inbounds i32, ptr %q, i64 1
|
|
%v1 = load i32, ptr %q1, align 4, !alias.scope !4, !noalias !2
|
|
%add = add i32 %v0, %v1
|
|
ret i32 %add
|
|
}
|
|
|
|
; MIR-LABEL: name: test_memcpy_inline
|
|
; MIR: %2:fpr128 = LDRQui %0, 1 :: (load (s128) from %ir.p1, align 4, !alias.scope ![[SET0]], !noalias ![[SET1]])
|
|
; MIR-NEXT: STRQui killed %2, %0, 0 :: (store (s128) into %ir.p0, align 4, !alias.scope ![[SET0]], !noalias ![[SET1]])
|
|
define i32 @test_memcpy_inline(ptr nocapture %p, ptr nocapture readonly %q) {
|
|
; CHECK-LABEL: test_memcpy_inline:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ldp w9, w10, [x1]
|
|
; CHECK-NEXT: ldr q0, [x0, #16]
|
|
; CHECK-NEXT: mov x8, x0
|
|
; CHECK-NEXT: add w0, w9, w10
|
|
; CHECK-NEXT: str q0, [x8]
|
|
; CHECK-NEXT: ret
|
|
%p0 = bitcast ptr %p to ptr
|
|
%add.ptr = getelementptr inbounds i32, ptr %p, i64 4
|
|
%p1 = bitcast ptr %add.ptr to ptr
|
|
tail call void @llvm.memcpy.inline.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %p0, ptr noundef nonnull align 4 dereferenceable(16) %p1, i64 16, i1 false), !alias.scope !2, !noalias !4
|
|
%v0 = load i32, ptr %q, align 4, !alias.scope !4, !noalias !2
|
|
%q1 = getelementptr inbounds i32, ptr %q, i64 1
|
|
%v1 = load i32, ptr %q1, align 4, !alias.scope !4, !noalias !2
|
|
%add = add i32 %v0, %v1
|
|
ret i32 %add
|
|
}
|
|
|
|
; MIR-LABEL: name: test_memmove
|
|
; MIR: %2:fpr128 = LDRQui %0, 1 :: (load (s128) from %ir.p1, align 4, !alias.scope ![[SET0]], !noalias ![[SET1]])
|
|
; MIR-NEXT: STRQui killed %2, %0, 0 :: (store (s128) into %ir.p0, align 4, !alias.scope ![[SET0]], !noalias ![[SET1]])
|
|
define i32 @test_memmove(ptr nocapture %p, ptr nocapture readonly %q) {
|
|
; CHECK-LABEL: test_memmove:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ldp w9, w10, [x1]
|
|
; CHECK-NEXT: ldr q0, [x0, #16]
|
|
; CHECK-NEXT: mov x8, x0
|
|
; CHECK-NEXT: add w0, w9, w10
|
|
; CHECK-NEXT: str q0, [x8]
|
|
; CHECK-NEXT: ret
|
|
%p0 = bitcast ptr %p to ptr
|
|
%add.ptr = getelementptr inbounds i32, ptr %p, i64 4
|
|
%p1 = bitcast ptr %add.ptr to ptr
|
|
tail call void @llvm.memmove.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %p0, ptr noundef nonnull align 4 dereferenceable(16) %p1, i64 16, i1 false), !alias.scope !2, !noalias !4
|
|
%v0 = load i32, ptr %q, align 4, !alias.scope !4, !noalias !2
|
|
%q1 = getelementptr inbounds i32, ptr %q, i64 1
|
|
%v1 = load i32, ptr %q1, align 4, !alias.scope !4, !noalias !2
|
|
%add = add i32 %v0, %v1
|
|
ret i32 %add
|
|
}
|
|
|
|
; MIR-LABEL: name: test_memset
|
|
; MIR: %2:fpr128 = MOVIv16b_ns 170
|
|
; MIR-NEXT: STRQui killed %2, %0, 0 :: (store (s128) into %ir.p0, align 4, !alias.scope ![[SET0]], !noalias ![[SET1]])
|
|
define i32 @test_memset(ptr nocapture %p, ptr nocapture readonly %q) {
|
|
; CHECK-LABEL: test_memset:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: movi v0.16b, #170
|
|
; CHECK-NEXT: mov x8, x0
|
|
; CHECK-NEXT: ldp w9, w10, [x1]
|
|
; CHECK-NEXT: add w0, w9, w10
|
|
; CHECK-NEXT: str q0, [x8]
|
|
; CHECK-NEXT: ret
|
|
%p0 = bitcast ptr %p to ptr
|
|
tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %p0, i8 170, i64 16, i1 false), !alias.scope !2, !noalias !4
|
|
%v0 = load i32, ptr %q, align 4, !alias.scope !4, !noalias !2
|
|
%q1 = getelementptr inbounds i32, ptr %q, i64 1
|
|
%v1 = load i32, ptr %q1, align 4, !alias.scope !4, !noalias !2
|
|
%add = add i32 %v0, %v1
|
|
ret i32 %add
|
|
}
|
|
|
|
; MIR-LABEL: name: test_mempcpy
|
|
; MIR: %2:fpr128 = LDRQui %0, 1 :: (load (s128) from %ir.p1, align 1, !alias.scope ![[SET0]], !noalias ![[SET1]])
|
|
; MIR-NEXT: STRQui killed %2, %0, 0 :: (store (s128) into %ir.p0, align 1, !alias.scope ![[SET0]], !noalias ![[SET1]])
|
|
define i32 @test_mempcpy(ptr nocapture %p, ptr nocapture readonly %q) {
|
|
; CHECK-LABEL: test_mempcpy:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ldp w9, w10, [x1]
|
|
; CHECK-NEXT: ldr q0, [x0, #16]
|
|
; CHECK-NEXT: mov x8, x0
|
|
; CHECK-NEXT: add w0, w9, w10
|
|
; CHECK-NEXT: str q0, [x8]
|
|
; CHECK-NEXT: ret
|
|
%p0 = bitcast ptr %p to ptr
|
|
%add.ptr = getelementptr inbounds i32, ptr %p, i64 4
|
|
%p1 = bitcast ptr %add.ptr to ptr
|
|
%call = tail call ptr @mempcpy(ptr noundef nonnull align 4 dereferenceable(16) %p0, ptr noundef nonnull align 4 dereferenceable(16) %p1, i64 16), !alias.scope !2, !noalias !4
|
|
%v0 = load i32, ptr %q, align 4, !alias.scope !4, !noalias !2
|
|
%q1 = getelementptr inbounds i32, ptr %q, i64 1
|
|
%v1 = load i32, ptr %q1, align 4, !alias.scope !4, !noalias !2
|
|
%add = add i32 %v0, %v1
|
|
ret i32 %add
|
|
}
|
|
|
|
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg)
|
|
declare void @llvm.memcpy.inline.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg)
|
|
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg)
|
|
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg)
|
|
|
|
declare ptr @mempcpy(ptr, ptr, i64)
|
|
|
|
!0 = distinct !{!0, !"bax"}
|
|
!1 = distinct !{!1, !0, !"bax: %p"}
|
|
!2 = !{!1}
|
|
!3 = distinct !{!3, !0, !"bax: %q"}
|
|
!4 = !{!3}
|
|
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
|
|
; MIR: {{.*}}
|