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
67 lines
1.6 KiB
LLVM
67 lines
1.6 KiB
LLVM
; RUN: llc -mtriple=arm64_32-apple-ios9.0 -o - %s | FileCheck %s
|
|
|
|
define i64 @test_memcpy(ptr %addr, ptr %src, i1 %tst) minsize {
|
|
; CHECK-LABEL: test_memcpy:
|
|
; CHECK: ldr x[[VAL64:[0-9]+]], [x0]
|
|
; [...]
|
|
; CHECK: mov w0, w[[VAL64]]
|
|
; CHECK: bl _memcpy
|
|
|
|
%val64 = load i64, ptr %addr
|
|
br i1 %tst, label %true, label %false
|
|
|
|
true:
|
|
ret i64 %val64
|
|
|
|
false:
|
|
%val32 = trunc i64 %val64 to i32
|
|
%val.ptr = inttoptr i32 %val32 to ptr
|
|
call void @llvm.memcpy.p0.p0.i32(ptr %val.ptr, ptr %src, i32 128, i32 0, i1 1)
|
|
ret i64 undef
|
|
}
|
|
|
|
define i64 @test_memmove(ptr %addr, ptr %src, i1 %tst) minsize {
|
|
; CHECK-LABEL: test_memmove:
|
|
; CHECK: ldr x[[VAL64:[0-9]+]], [x0]
|
|
; [...]
|
|
; CHECK: mov w0, w[[VAL64]]
|
|
; CHECK: bl _memmove
|
|
|
|
%val64 = load i64, ptr %addr
|
|
br i1 %tst, label %true, label %false
|
|
|
|
true:
|
|
ret i64 %val64
|
|
|
|
false:
|
|
%val32 = trunc i64 %val64 to i32
|
|
%val.ptr = inttoptr i32 %val32 to ptr
|
|
call void @llvm.memmove.p0.p0.i32(ptr %val.ptr, ptr %src, i32 128, i32 0, i1 1)
|
|
ret i64 undef
|
|
}
|
|
|
|
define i64 @test_memset(ptr %addr, ptr %src, i1 %tst) minsize {
|
|
; CHECK-LABEL: test_memset:
|
|
; CHECK: ldr x[[VAL64:[0-9]+]], [x0]
|
|
; [...]
|
|
; CHECK: mov w0, w[[VAL64]]
|
|
; CHECK: bl _memset
|
|
|
|
%val64 = load i64, ptr %addr
|
|
br i1 %tst, label %true, label %false
|
|
|
|
true:
|
|
ret i64 %val64
|
|
|
|
false:
|
|
%val32 = trunc i64 %val64 to i32
|
|
%val.ptr = inttoptr i32 %val32 to ptr
|
|
call void @llvm.memset.p0.i32(ptr %val.ptr, i8 42, i32 256, i32 0, i1 1)
|
|
ret i64 undef
|
|
}
|
|
|
|
declare void @llvm.memcpy.p0.p0.i32(ptr, ptr, i32, i32, i1)
|
|
declare void @llvm.memmove.p0.p0.i32(ptr, ptr, i32, i32, i1)
|
|
declare void @llvm.memset.p0.i32(ptr, i8, i32, i32, i1)
|
|
|