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
230 lines
9.6 KiB
LLVM
230 lines
9.6 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=aarch64-linux-gnu -mattr=+sve -asm-verbose=1 < %s | FileCheck %s
|
|
|
|
;
|
|
; LD1B
|
|
;
|
|
|
|
define <vscale x 16 x i32> @masked_ld1b_i8_sext_i32(ptr %base, <vscale x 16 x i1> %mask) {
|
|
; CHECK-LABEL: masked_ld1b_i8_sext_i32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ld1b { z0.b }, p0/z, [x0]
|
|
; CHECK-NEXT: sunpklo z1.h, z0.b
|
|
; CHECK-NEXT: sunpkhi z3.h, z0.b
|
|
; CHECK-NEXT: sunpklo z0.s, z1.h
|
|
; CHECK-NEXT: sunpkhi z1.s, z1.h
|
|
; CHECK-NEXT: sunpklo z2.s, z3.h
|
|
; CHECK-NEXT: sunpkhi z3.s, z3.h
|
|
; CHECK-NEXT: ret
|
|
%wide.masked.load = call <vscale x 16 x i8> @llvm.masked.load.nxv16i8.p0(ptr %base, i32 2, <vscale x 16 x i1> %mask, <vscale x 16 x i8> poison)
|
|
%res = sext <vscale x 16 x i8> %wide.masked.load to <vscale x 16 x i32>
|
|
ret <vscale x 16 x i32> %res
|
|
}
|
|
|
|
define <vscale x 8 x i32> @masked_ld1b_nxv8i8_sext_i32(ptr %a, <vscale x 8 x i1> %mask) {
|
|
; CHECK-LABEL: masked_ld1b_nxv8i8_sext_i32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ld1sb { z1.h }, p0/z, [x0]
|
|
; CHECK-NEXT: sunpklo z0.s, z1.h
|
|
; CHECK-NEXT: sunpkhi z1.s, z1.h
|
|
; CHECK-NEXT: ret
|
|
%wide.masked.load = call <vscale x 8 x i8> @llvm.masked.load.nxv8i8.p0(ptr %a, i32 1, <vscale x 8 x i1> %mask, <vscale x 8 x i8> poison)
|
|
%res = sext <vscale x 8 x i8> %wide.masked.load to <vscale x 8 x i32>
|
|
ret <vscale x 8 x i32> %res
|
|
}
|
|
|
|
define <vscale x 16 x i32> @masked_ld1b_i8_zext_i32(ptr %base, <vscale x 16 x i1> %mask) {
|
|
; CHECK-LABEL: masked_ld1b_i8_zext_i32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ld1b { z0.b }, p0/z, [x0]
|
|
; CHECK-NEXT: uunpklo z1.h, z0.b
|
|
; CHECK-NEXT: uunpkhi z3.h, z0.b
|
|
; CHECK-NEXT: uunpklo z0.s, z1.h
|
|
; CHECK-NEXT: uunpkhi z1.s, z1.h
|
|
; CHECK-NEXT: uunpklo z2.s, z3.h
|
|
; CHECK-NEXT: uunpkhi z3.s, z3.h
|
|
; CHECK-NEXT: ret
|
|
%wide.masked.load = call <vscale x 16 x i8> @llvm.masked.load.nxv16i8.p0(ptr %base, i32 2, <vscale x 16 x i1> %mask, <vscale x 16 x i8> poison)
|
|
%res = zext <vscale x 16 x i8> %wide.masked.load to <vscale x 16 x i32>
|
|
ret <vscale x 16 x i32> %res
|
|
}
|
|
|
|
define <vscale x 8 x i32> @masked_ld1b_nxv8i8_zext_i32(ptr %a, <vscale x 8 x i1> %mask) {
|
|
; CHECK-LABEL: masked_ld1b_nxv8i8_zext_i32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ld1b { z1.h }, p0/z, [x0]
|
|
; CHECK-NEXT: uunpklo z0.s, z1.h
|
|
; CHECK-NEXT: uunpkhi z1.s, z1.h
|
|
; CHECK-NEXT: ret
|
|
%wide.masked.load = call <vscale x 8 x i8> @llvm.masked.load.nxv8i8.p0(ptr %a, i32 1, <vscale x 8 x i1> %mask, <vscale x 8 x i8> poison)
|
|
%res = zext <vscale x 8 x i8> %wide.masked.load to <vscale x 8 x i32>
|
|
ret <vscale x 8 x i32> %res
|
|
}
|
|
|
|
define <vscale x 16 x i64> @masked_ld1b_i8_sext(ptr %base, <vscale x 16 x i1> %mask) {
|
|
; CHECK-LABEL: masked_ld1b_i8_sext:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ld1b { z0.b }, p0/z, [x0]
|
|
; CHECK-NEXT: sunpklo z1.h, z0.b
|
|
; CHECK-NEXT: sunpkhi z0.h, z0.b
|
|
; CHECK-NEXT: sunpklo z2.s, z1.h
|
|
; CHECK-NEXT: sunpkhi z3.s, z1.h
|
|
; CHECK-NEXT: sunpklo z5.s, z0.h
|
|
; CHECK-NEXT: sunpkhi z7.s, z0.h
|
|
; CHECK-NEXT: sunpklo z0.d, z2.s
|
|
; CHECK-NEXT: sunpkhi z1.d, z2.s
|
|
; CHECK-NEXT: sunpklo z2.d, z3.s
|
|
; CHECK-NEXT: sunpkhi z3.d, z3.s
|
|
; CHECK-NEXT: sunpklo z4.d, z5.s
|
|
; CHECK-NEXT: sunpkhi z5.d, z5.s
|
|
; CHECK-NEXT: sunpklo z6.d, z7.s
|
|
; CHECK-NEXT: sunpkhi z7.d, z7.s
|
|
; CHECK-NEXT: ret
|
|
%wide.masked.load = call <vscale x 16 x i8> @llvm.masked.load.nxv16i8.p0(ptr %base, i32 2, <vscale x 16 x i1> %mask, <vscale x 16 x i8> poison)
|
|
%res = sext <vscale x 16 x i8> %wide.masked.load to <vscale x 16 x i64>
|
|
ret <vscale x 16 x i64> %res
|
|
}
|
|
|
|
define <vscale x 4 x i64> @masked_ld1b_nxv4i8_sext_i64(ptr %a, <vscale x 4 x i1> %mask) {
|
|
; CHECK-LABEL: masked_ld1b_nxv4i8_sext_i64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ld1sb { z1.s }, p0/z, [x0]
|
|
; CHECK-NEXT: sunpklo z0.d, z1.s
|
|
; CHECK-NEXT: sunpkhi z1.d, z1.s
|
|
; CHECK-NEXT: ret
|
|
%wide.masked.load = call <vscale x 4 x i8> @llvm.masked.load.nxv4i8.p0(ptr %a, i32 1, <vscale x 4 x i1> %mask, <vscale x 4 x i8> poison)
|
|
%res = sext <vscale x 4 x i8> %wide.masked.load to <vscale x 4 x i64>
|
|
ret <vscale x 4 x i64> %res
|
|
}
|
|
|
|
define <vscale x 16 x i64> @masked_ld1b_i8_zext(ptr %base, <vscale x 16 x i1> %mask) {
|
|
; CHECK-LABEL: masked_ld1b_i8_zext:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ld1b { z0.b }, p0/z, [x0]
|
|
; CHECK-NEXT: uunpklo z1.h, z0.b
|
|
; CHECK-NEXT: uunpkhi z0.h, z0.b
|
|
; CHECK-NEXT: uunpklo z2.s, z1.h
|
|
; CHECK-NEXT: uunpkhi z3.s, z1.h
|
|
; CHECK-NEXT: uunpklo z5.s, z0.h
|
|
; CHECK-NEXT: uunpkhi z7.s, z0.h
|
|
; CHECK-NEXT: uunpklo z0.d, z2.s
|
|
; CHECK-NEXT: uunpkhi z1.d, z2.s
|
|
; CHECK-NEXT: uunpklo z2.d, z3.s
|
|
; CHECK-NEXT: uunpkhi z3.d, z3.s
|
|
; CHECK-NEXT: uunpklo z4.d, z5.s
|
|
; CHECK-NEXT: uunpkhi z5.d, z5.s
|
|
; CHECK-NEXT: uunpklo z6.d, z7.s
|
|
; CHECK-NEXT: uunpkhi z7.d, z7.s
|
|
; CHECK-NEXT: ret
|
|
%wide.masked.load = call <vscale x 16 x i8> @llvm.masked.load.nxv16i8.p0(ptr %base, i32 2, <vscale x 16 x i1> %mask, <vscale x 16 x i8> poison)
|
|
%res = zext <vscale x 16 x i8> %wide.masked.load to <vscale x 16 x i64>
|
|
ret <vscale x 16 x i64> %res
|
|
}
|
|
|
|
define <vscale x 4 x i64> @masked_ld1b_nxv4i8_zext_i64(ptr %a, <vscale x 4 x i1> %mask) {
|
|
; CHECK-LABEL: masked_ld1b_nxv4i8_zext_i64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ld1b { z1.s }, p0/z, [x0]
|
|
; CHECK-NEXT: uunpklo z0.d, z1.s
|
|
; CHECK-NEXT: uunpkhi z1.d, z1.s
|
|
; CHECK-NEXT: ret
|
|
%wide.masked.load = call <vscale x 4 x i8> @llvm.masked.load.nxv4i8.p0(ptr %a, i32 1, <vscale x 4 x i1> %mask, <vscale x 4 x i8> poison)
|
|
%res = zext <vscale x 4 x i8> %wide.masked.load to <vscale x 4 x i64>
|
|
ret <vscale x 4 x i64> %res
|
|
}
|
|
|
|
;
|
|
; LD1H
|
|
;
|
|
|
|
define <vscale x 8 x i64> @masked_ld1h_i16_sext(ptr %base, <vscale x 8 x i1> %mask) {
|
|
; CHECK-LABEL: masked_ld1h_i16_sext:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ld1h { z0.h }, p0/z, [x0]
|
|
; CHECK-NEXT: sunpklo z1.s, z0.h
|
|
; CHECK-NEXT: sunpkhi z3.s, z0.h
|
|
; CHECK-NEXT: sunpklo z0.d, z1.s
|
|
; CHECK-NEXT: sunpkhi z1.d, z1.s
|
|
; CHECK-NEXT: sunpklo z2.d, z3.s
|
|
; CHECK-NEXT: sunpkhi z3.d, z3.s
|
|
; CHECK-NEXT: ret
|
|
%wide.masked.load = call <vscale x 8 x i16> @llvm.masked.load.nxv8i16.p0(ptr %base, i32 2, <vscale x 8 x i1> %mask, <vscale x 8 x i16> poison)
|
|
%res = sext <vscale x 8 x i16> %wide.masked.load to <vscale x 8 x i64>
|
|
ret <vscale x 8 x i64> %res
|
|
}
|
|
|
|
define <vscale x 4 x i64> @masked_ld1h_nxv4i16_sext(ptr %a, <vscale x 4 x i1> %mask) {
|
|
; CHECK-LABEL: masked_ld1h_nxv4i16_sext:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ld1sh { z1.s }, p0/z, [x0]
|
|
; CHECK-NEXT: sunpklo z0.d, z1.s
|
|
; CHECK-NEXT: sunpkhi z1.d, z1.s
|
|
; CHECK-NEXT: ret
|
|
%wide.masked.load = call <vscale x 4 x i16> @llvm.masked.load.nxv4i16.p0(ptr %a, i32 1, <vscale x 4 x i1> %mask, <vscale x 4 x i16> poison)
|
|
%res = sext <vscale x 4 x i16> %wide.masked.load to <vscale x 4 x i64>
|
|
ret <vscale x 4 x i64> %res
|
|
}
|
|
|
|
define <vscale x 8 x i64> @masked_ld1h_i16_zext(ptr %base, <vscale x 8 x i1> %mask) {
|
|
; CHECK-LABEL: masked_ld1h_i16_zext:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ld1h { z0.h }, p0/z, [x0]
|
|
; CHECK-NEXT: uunpklo z1.s, z0.h
|
|
; CHECK-NEXT: uunpkhi z3.s, z0.h
|
|
; CHECK-NEXT: uunpklo z0.d, z1.s
|
|
; CHECK-NEXT: uunpkhi z1.d, z1.s
|
|
; CHECK-NEXT: uunpklo z2.d, z3.s
|
|
; CHECK-NEXT: uunpkhi z3.d, z3.s
|
|
; CHECK-NEXT: ret
|
|
%wide.masked.load = call <vscale x 8 x i16> @llvm.masked.load.nxv8i16.p0(ptr %base, i32 2, <vscale x 8 x i1> %mask, <vscale x 8 x i16> poison)
|
|
%res = zext <vscale x 8 x i16> %wide.masked.load to <vscale x 8 x i64>
|
|
ret <vscale x 8 x i64> %res
|
|
}
|
|
|
|
define <vscale x 4 x i64> @masked_ld1h_nxv4i16_zext(ptr %a, <vscale x 4 x i1> %mask) {
|
|
; CHECK-LABEL: masked_ld1h_nxv4i16_zext:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ld1h { z1.s }, p0/z, [x0]
|
|
; CHECK-NEXT: uunpklo z0.d, z1.s
|
|
; CHECK-NEXT: uunpkhi z1.d, z1.s
|
|
; CHECK-NEXT: ret
|
|
%wide.masked.load = call <vscale x 4 x i16> @llvm.masked.load.nxv4i16.p0(ptr %a, i32 1, <vscale x 4 x i1> %mask, <vscale x 4 x i16> poison)
|
|
%res = zext <vscale x 4 x i16> %wide.masked.load to <vscale x 4 x i64>
|
|
ret <vscale x 4 x i64> %res
|
|
}
|
|
|
|
;
|
|
; LD1W
|
|
;
|
|
|
|
define <vscale x 4 x i64> @masked_ld1w_i32_sext(ptr %base, <vscale x 4 x i1> %mask) {
|
|
; CHECK-LABEL: masked_ld1w_i32_sext:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ld1w { z1.s }, p0/z, [x0]
|
|
; CHECK-NEXT: sunpklo z0.d, z1.s
|
|
; CHECK-NEXT: sunpkhi z1.d, z1.s
|
|
; CHECK-NEXT: ret
|
|
%wide.masked.load = call <vscale x 4 x i32> @llvm.masked.load.nxv4i32.p0(ptr %base, i32 4, <vscale x 4 x i1> %mask, <vscale x 4 x i32> poison)
|
|
%res = sext <vscale x 4 x i32> %wide.masked.load to <vscale x 4 x i64>
|
|
ret <vscale x 4 x i64> %res
|
|
}
|
|
|
|
define <vscale x 4 x i64> @masked_ld1w_i32_zext(ptr %base, <vscale x 4 x i1> %mask) {
|
|
; CHECK-LABEL: masked_ld1w_i32_zext:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ld1w { z1.s }, p0/z, [x0]
|
|
; CHECK-NEXT: uunpklo z0.d, z1.s
|
|
; CHECK-NEXT: uunpkhi z1.d, z1.s
|
|
; CHECK-NEXT: ret
|
|
%wide.masked.load = call <vscale x 4 x i32> @llvm.masked.load.nxv4i32.p0(ptr %base, i32 4, <vscale x 4 x i1> %mask, <vscale x 4 x i32> poison)
|
|
%res = zext <vscale x 4 x i32> %wide.masked.load to <vscale x 4 x i64>
|
|
ret <vscale x 4 x i64> %res
|
|
}
|
|
|
|
declare <vscale x 16 x i8> @llvm.masked.load.nxv16i8.p0(ptr, i32 immarg, <vscale x 16 x i1>, <vscale x 16 x i8>)
|
|
declare <vscale x 8 x i8> @llvm.masked.load.nxv8i8.p0(ptr, i32 immarg, <vscale x 8 x i1>, <vscale x 8 x i8>)
|
|
declare <vscale x 4 x i8> @llvm.masked.load.nxv4i8.p0(ptr, i32 immarg, <vscale x 4 x i1>, <vscale x 4 x i8>)
|
|
declare <vscale x 8 x i16> @llvm.masked.load.nxv8i16.p0(ptr, i32 immarg, <vscale x 8 x i1>, <vscale x 8 x i16>)
|
|
declare <vscale x 4 x i16> @llvm.masked.load.nxv4i16.p0(ptr, i32 immarg, <vscale x 4 x i1>, <vscale x 4 x i16>)
|
|
declare <vscale x 4 x i32> @llvm.masked.load.nxv4i32.p0(ptr, i32 immarg, <vscale x 4 x i1>, <vscale x 4 x i32>)
|