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
157 lines
4.2 KiB
LLVM
157 lines
4.2 KiB
LLVM
; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-apple-ios | FileCheck %s --check-prefix=ARM
|
|
; RUN: llc < %s -O0 -verify-machineinstrs -fast-isel-abort=1 -relocation-model=dynamic-no-pic -mtriple=armv7-linux-gnueabi | FileCheck %s --check-prefix=ARM
|
|
; rdar://10418009
|
|
|
|
define zeroext i16 @t1(ptr nocapture %a) nounwind uwtable readonly ssp {
|
|
entry:
|
|
; ARM-LABEL: t1:
|
|
%add.ptr = getelementptr inbounds i16, ptr %a, i64 -8
|
|
%0 = load i16, ptr %add.ptr, align 2
|
|
; ARM: ldrh r0, [r0, #-16]
|
|
ret i16 %0
|
|
}
|
|
|
|
define zeroext i16 @t2(ptr nocapture %a) nounwind uwtable readonly ssp {
|
|
entry:
|
|
; ARM-LABEL: t2:
|
|
%add.ptr = getelementptr inbounds i16, ptr %a, i64 -16
|
|
%0 = load i16, ptr %add.ptr, align 2
|
|
; ARM: ldrh r0, [r0, #-32]
|
|
ret i16 %0
|
|
}
|
|
|
|
define zeroext i16 @t3(ptr nocapture %a) nounwind uwtable readonly ssp {
|
|
entry:
|
|
; ARM-LABEL: t3:
|
|
%add.ptr = getelementptr inbounds i16, ptr %a, i64 -127
|
|
%0 = load i16, ptr %add.ptr, align 2
|
|
; ARM: ldrh r0, [r0, #-254]
|
|
ret i16 %0
|
|
}
|
|
|
|
define zeroext i16 @t4(ptr nocapture %a) nounwind uwtable readonly ssp {
|
|
entry:
|
|
; ARM-LABEL: t4:
|
|
%add.ptr = getelementptr inbounds i16, ptr %a, i64 -128
|
|
%0 = load i16, ptr %add.ptr, align 2
|
|
; ARM: mvn r{{[1-9]}}, #255
|
|
; ARM: add r0, r0, r{{[1-9]}}
|
|
; ARM: ldrh r0, [r0]
|
|
ret i16 %0
|
|
}
|
|
|
|
define zeroext i16 @t5(ptr nocapture %a) nounwind uwtable readonly ssp {
|
|
entry:
|
|
; ARM-LABEL: t5:
|
|
%add.ptr = getelementptr inbounds i16, ptr %a, i64 8
|
|
%0 = load i16, ptr %add.ptr, align 2
|
|
; ARM: ldrh r0, [r0, #16]
|
|
ret i16 %0
|
|
}
|
|
|
|
define zeroext i16 @t6(ptr nocapture %a) nounwind uwtable readonly ssp {
|
|
entry:
|
|
; ARM-LABEL: t6:
|
|
%add.ptr = getelementptr inbounds i16, ptr %a, i64 16
|
|
%0 = load i16, ptr %add.ptr, align 2
|
|
; ARM: ldrh r0, [r0, #32]
|
|
ret i16 %0
|
|
}
|
|
|
|
define zeroext i16 @t7(ptr nocapture %a) nounwind uwtable readonly ssp {
|
|
entry:
|
|
; ARM-LABEL: t7:
|
|
%add.ptr = getelementptr inbounds i16, ptr %a, i64 127
|
|
%0 = load i16, ptr %add.ptr, align 2
|
|
; ARM: ldrh r0, [r0, #254]
|
|
ret i16 %0
|
|
}
|
|
|
|
define zeroext i16 @t8(ptr nocapture %a) nounwind uwtable readonly ssp {
|
|
entry:
|
|
; ARM-LABEL: t8:
|
|
%add.ptr = getelementptr inbounds i16, ptr %a, i64 128
|
|
%0 = load i16, ptr %add.ptr, align 2
|
|
; ARM: add r0, r0, #256
|
|
; ARM: ldrh r0, [r0]
|
|
ret i16 %0
|
|
}
|
|
|
|
define void @t9(ptr nocapture %a) nounwind uwtable ssp {
|
|
entry:
|
|
; ARM-LABEL: t9:
|
|
%add.ptr = getelementptr inbounds i16, ptr %a, i64 -8
|
|
store i16 0, ptr %add.ptr, align 2
|
|
; ARM: movw [[REG0:r[0-9]+]], #0
|
|
; ARM: strh [[REG0]], [{{r[0-9]+}}, #-16]
|
|
ret void
|
|
}
|
|
|
|
; mvn r1, #255
|
|
; strh r2, [r0, r1]
|
|
define void @t10(ptr nocapture %a) nounwind uwtable ssp {
|
|
entry:
|
|
; ARM-LABEL: t10:
|
|
%add.ptr = getelementptr inbounds i16, ptr %a, i64 -128
|
|
store i16 0, ptr %add.ptr, align 2
|
|
; ARM: mov r1, r0
|
|
; ARM: movw [[REG1:r[0-9]+]], #0
|
|
; ARM: mvn [[REG2:r[0-9]+]], #255
|
|
; ARM: add [[REG0:r[0-9]+]], r1, [[REG2]]
|
|
; ARM: strh [[REG1]], [[[REG0]]]
|
|
ret void
|
|
}
|
|
|
|
define void @t11(ptr nocapture %a) nounwind uwtable ssp {
|
|
entry:
|
|
; ARM-LABEL: t11:
|
|
%add.ptr = getelementptr inbounds i16, ptr %a, i64 8
|
|
store i16 0, ptr %add.ptr, align 2
|
|
; ARM: movw [[REG1:r[0-9]+]], #0
|
|
; ARM: strh [[REG1]], [{{r[0-9]+}}, #16]
|
|
ret void
|
|
}
|
|
|
|
; mov r1, #256
|
|
; strh r2, [r0, r1]
|
|
define void @t12(ptr nocapture %a) nounwind uwtable ssp {
|
|
entry:
|
|
; ARM-LABEL: t12:
|
|
%add.ptr = getelementptr inbounds i16, ptr %a, i64 128
|
|
store i16 0, ptr %add.ptr, align 2
|
|
; ARM: mov r1, r0
|
|
; ARM: movw [[REG1:r[0-9]+]], #0
|
|
; ARM: add [[REG0:r[0-9]+]], r1, #256
|
|
; ARM: strh [[REG1]], [[[REG0]]]
|
|
ret void
|
|
}
|
|
|
|
define signext i8 @t13(ptr nocapture %a) nounwind uwtable readonly ssp {
|
|
entry:
|
|
; ARM-LABEL: t13:
|
|
%add.ptr = getelementptr inbounds i8, ptr %a, i64 -8
|
|
%0 = load i8, ptr %add.ptr, align 2
|
|
; ARM: ldrsb r0, [r0, #-8]
|
|
ret i8 %0
|
|
}
|
|
|
|
define signext i8 @t14(ptr nocapture %a) nounwind uwtable readonly ssp {
|
|
entry:
|
|
; ARM-LABEL: t14:
|
|
%add.ptr = getelementptr inbounds i8, ptr %a, i64 -255
|
|
%0 = load i8, ptr %add.ptr, align 2
|
|
; ARM: ldrsb r0, [r0, #-255]
|
|
ret i8 %0
|
|
}
|
|
|
|
define signext i8 @t15(ptr nocapture %a) nounwind uwtable readonly ssp {
|
|
entry:
|
|
; ARM-LABEL: t15:
|
|
%add.ptr = getelementptr inbounds i8, ptr %a, i64 -256
|
|
%0 = load i8, ptr %add.ptr, align 2
|
|
; ARM: mvn r{{[1-9]}}, #255
|
|
; ARM: add r0, r0, r{{[1-9]}}
|
|
; ARM: ldrsb r0, [r0]
|
|
ret i8 %0
|
|
}
|