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
109 lines
5.6 KiB
LLVM
109 lines
5.6 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s --mattr=+sve2 -o - | FileCheck %s
|
|
|
|
target triple = "aarch64"
|
|
|
|
; Expected to transform
|
|
define <vscale x 4 x i32> @complex_mul_v4i32(<vscale x 4 x i32> %a, <vscale x 4 x i32> %b) {
|
|
; CHECK-LABEL: complex_mul_v4i32:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: movi v2.2d, #0000000000000000
|
|
; CHECK-NEXT: cmla z2.s, z1.s, z0.s, #0
|
|
; CHECK-NEXT: cmla z2.s, z1.s, z0.s, #90
|
|
; CHECK-NEXT: mov z0.d, z2.d
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%a.deinterleaved = tail call { <vscale x 2 x i32>, <vscale x 2 x i32> } @llvm.vector.deinterleave2.nxv4i32(<vscale x 4 x i32> %a)
|
|
%a.real = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32> } %a.deinterleaved, 0
|
|
%a.imag = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32> } %a.deinterleaved, 1
|
|
%b.deinterleaved = tail call { <vscale x 2 x i32>, <vscale x 2 x i32> } @llvm.vector.deinterleave2.nxv4i32(<vscale x 4 x i32> %b)
|
|
%b.real = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32> } %b.deinterleaved, 0
|
|
%b.imag = extractvalue { <vscale x 2 x i32>, <vscale x 2 x i32> } %b.deinterleaved, 1
|
|
%0 = mul <vscale x 2 x i32> %b.imag, %a.real
|
|
%1 = mul <vscale x 2 x i32> %b.real, %a.imag
|
|
%2 = add <vscale x 2 x i32> %1, %0
|
|
%3 = mul <vscale x 2 x i32> %b.real, %a.real
|
|
%4 = mul <vscale x 2 x i32> %a.imag, %b.imag
|
|
%5 = sub <vscale x 2 x i32> %3, %4
|
|
%interleaved.vec = tail call <vscale x 4 x i32> @llvm.vector.interleave2.nxv4i32(<vscale x 2 x i32> %5, <vscale x 2 x i32> %2)
|
|
ret <vscale x 4 x i32> %interleaved.vec
|
|
}
|
|
|
|
; Expected to transform
|
|
define <vscale x 8 x i32> @complex_mul_v8i32(<vscale x 8 x i32> %a, <vscale x 8 x i32> %b) {
|
|
; CHECK-LABEL: complex_mul_v8i32:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: movi v4.2d, #0000000000000000
|
|
; CHECK-NEXT: movi v5.2d, #0000000000000000
|
|
; CHECK-NEXT: cmla z5.s, z2.s, z0.s, #0
|
|
; CHECK-NEXT: cmla z4.s, z3.s, z1.s, #0
|
|
; CHECK-NEXT: cmla z5.s, z2.s, z0.s, #90
|
|
; CHECK-NEXT: cmla z4.s, z3.s, z1.s, #90
|
|
; CHECK-NEXT: mov z0.d, z5.d
|
|
; CHECK-NEXT: mov z1.d, z4.d
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%a.deinterleaved = tail call { <vscale x 4 x i32>, <vscale x 4 x i32> } @llvm.vector.deinterleave2.nxv8i32(<vscale x 8 x i32> %a)
|
|
%a.real = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32> } %a.deinterleaved, 0
|
|
%a.imag = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32> } %a.deinterleaved, 1
|
|
%b.deinterleaved = tail call { <vscale x 4 x i32>, <vscale x 4 x i32> } @llvm.vector.deinterleave2.nxv8i32(<vscale x 8 x i32> %b)
|
|
%b.real = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32> } %b.deinterleaved, 0
|
|
%b.imag = extractvalue { <vscale x 4 x i32>, <vscale x 4 x i32> } %b.deinterleaved, 1
|
|
%0 = mul <vscale x 4 x i32> %b.imag, %a.real
|
|
%1 = mul <vscale x 4 x i32> %b.real, %a.imag
|
|
%2 = add <vscale x 4 x i32> %1, %0
|
|
%3 = mul <vscale x 4 x i32> %b.real, %a.real
|
|
%4 = mul <vscale x 4 x i32> %a.imag, %b.imag
|
|
%5 = sub <vscale x 4 x i32> %3, %4
|
|
%interleaved.vec = tail call <vscale x 8 x i32> @llvm.vector.interleave2.nxv8i32(<vscale x 4 x i32> %5, <vscale x 4 x i32> %2)
|
|
ret <vscale x 8 x i32> %interleaved.vec
|
|
}
|
|
|
|
; Expected to transform
|
|
define <vscale x 16 x i32> @complex_mul_v16i32(<vscale x 16 x i32> %a, <vscale x 16 x i32> %b) {
|
|
; CHECK-LABEL: complex_mul_v16i32:
|
|
; CHECK: // %bb.0: // %entry
|
|
; CHECK-NEXT: movi v24.2d, #0000000000000000
|
|
; CHECK-NEXT: movi v25.2d, #0000000000000000
|
|
; CHECK-NEXT: movi v26.2d, #0000000000000000
|
|
; CHECK-NEXT: movi v27.2d, #0000000000000000
|
|
; CHECK-NEXT: cmla z24.s, z4.s, z0.s, #0
|
|
; CHECK-NEXT: cmla z25.s, z5.s, z1.s, #0
|
|
; CHECK-NEXT: cmla z27.s, z6.s, z2.s, #0
|
|
; CHECK-NEXT: cmla z26.s, z7.s, z3.s, #0
|
|
; CHECK-NEXT: cmla z24.s, z4.s, z0.s, #90
|
|
; CHECK-NEXT: cmla z25.s, z5.s, z1.s, #90
|
|
; CHECK-NEXT: cmla z27.s, z6.s, z2.s, #90
|
|
; CHECK-NEXT: cmla z26.s, z7.s, z3.s, #90
|
|
; CHECK-NEXT: mov z0.d, z24.d
|
|
; CHECK-NEXT: mov z1.d, z25.d
|
|
; CHECK-NEXT: mov z2.d, z27.d
|
|
; CHECK-NEXT: mov z3.d, z26.d
|
|
; CHECK-NEXT: ret
|
|
entry:
|
|
%a.deinterleaved = tail call { <vscale x 8 x i32>, <vscale x 8 x i32> } @llvm.vector.deinterleave2.nxv16i32(<vscale x 16 x i32> %a)
|
|
%a.real = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32> } %a.deinterleaved, 0
|
|
%a.imag = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32> } %a.deinterleaved, 1
|
|
%b.deinterleaved = tail call { <vscale x 8 x i32>, <vscale x 8 x i32> } @llvm.vector.deinterleave2.nxv16i32(<vscale x 16 x i32> %b)
|
|
%b.real = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32> } %b.deinterleaved, 0
|
|
%b.imag = extractvalue { <vscale x 8 x i32>, <vscale x 8 x i32> } %b.deinterleaved, 1
|
|
%0 = mul <vscale x 8 x i32> %b.imag, %a.real
|
|
%1 = mul <vscale x 8 x i32> %b.real, %a.imag
|
|
%2 = add <vscale x 8 x i32> %1, %0
|
|
%3 = mul <vscale x 8 x i32> %b.real, %a.real
|
|
%4 = mul <vscale x 8 x i32> %a.imag, %b.imag
|
|
%5 = sub <vscale x 8 x i32> %3, %4
|
|
%interleaved.vec = tail call <vscale x 16 x i32> @llvm.vector.interleave2.nxv16i32(<vscale x 8 x i32> %5, <vscale x 8 x i32> %2)
|
|
ret <vscale x 16 x i32> %interleaved.vec
|
|
}
|
|
|
|
declare { <vscale x 2 x i32>, <vscale x 2 x i32> } @llvm.vector.deinterleave2.nxv4i32(<vscale x 4 x i32>)
|
|
declare <vscale x 4 x i32> @llvm.vector.interleave2.nxv4i32(<vscale x 2 x i32>, <vscale x 2 x i32>)
|
|
|
|
declare { <vscale x 4 x i32>, <vscale x 4 x i32> } @llvm.vector.deinterleave2.nxv8i32(<vscale x 8 x i32>)
|
|
declare <vscale x 8 x i32> @llvm.vector.interleave2.nxv8i32(<vscale x 4 x i32>, <vscale x 4 x i32>)
|
|
|
|
declare { <vscale x 8 x i32>, <vscale x 8 x i32> } @llvm.vector.deinterleave2.nxv16i32(<vscale x 16 x i32>)
|
|
declare <vscale x 16 x i32> @llvm.vector.interleave2.nxv16i32(<vscale x 8 x i32>, <vscale x 8 x i32>)
|
|
|