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
155 lines
4.6 KiB
LLVM
155 lines
4.6 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
|
|
; RUN: llc -mtriple=aarch64-none-linux-gnu -mattr=+neon -asm-verbose=false < %s | FileCheck %s
|
|
|
|
define float @test_dup_sv2S(<2 x float> %v) #0 {
|
|
; CHECK-LABEL: test_dup_sv2S:
|
|
; CHECK: mov s0, v0.s[1]
|
|
; CHECK-NEXT: ret
|
|
%tmp1 = extractelement <2 x float> %v, i32 1
|
|
ret float %tmp1
|
|
}
|
|
|
|
define float @test_dup_sv2S_0(<2 x float> %v) #0 {
|
|
; CHECK-LABEL: test_dup_sv2S_0:
|
|
; CHECK: ret
|
|
%tmp1 = extractelement <2 x float> %v, i32 0
|
|
ret float %tmp1
|
|
}
|
|
|
|
define float @test_dup_sv4S(<4 x float> %v) #0 {
|
|
; CHECK-LABEL: test_dup_sv4S:
|
|
; CHECK: mov s0, v0.s[1]
|
|
; CHECK-NEXT: ret
|
|
%tmp1 = extractelement <4 x float> %v, i32 1
|
|
ret float %tmp1
|
|
}
|
|
|
|
define float @test_dup_sv4S_0(<4 x float> %v) #0 {
|
|
; CHECK-LABEL: test_dup_sv4S_0:
|
|
; CHECK: ret
|
|
%tmp1 = extractelement <4 x float> %v, i32 0
|
|
ret float %tmp1
|
|
}
|
|
|
|
define double @test_dup_dvD(<1 x double> %v) #0 {
|
|
; CHECK-LABEL: test_dup_dvD:
|
|
; CHECK: ret
|
|
%tmp1 = extractelement <1 x double> %v, i32 0
|
|
ret double %tmp1
|
|
}
|
|
|
|
define double @test_dup_dv2D(<2 x double> %v) #0 {
|
|
; CHECK-LABEL: test_dup_dv2D:
|
|
; CHECK: mov d0, v0.d[1]
|
|
; CHECK-NEXT: ret
|
|
%tmp1 = extractelement <2 x double> %v, i32 1
|
|
ret double %tmp1
|
|
}
|
|
|
|
define double @test_dup_dv2D_0(<2 x double> %v) #0 {
|
|
; CHECK-LABEL: test_dup_dv2D_0:
|
|
; CHECK: ret
|
|
%tmp1 = extractelement <2 x double> %v, i32 0
|
|
ret double %tmp1
|
|
}
|
|
|
|
define half @test_dup_hv8H(<8 x half> %v) #0 {
|
|
; CHECK-LABEL: test_dup_hv8H:
|
|
; CHECK: mov h0, v0.h[1]
|
|
; CHECK-NEXT: ret
|
|
%tmp1 = extractelement <8 x half> %v, i32 1
|
|
ret half %tmp1
|
|
}
|
|
|
|
define half @test_dup_hv8H_0(<8 x half> %v) #0 {
|
|
; CHECK-LABEL: test_dup_hv8H_0:
|
|
; CHECK: ret
|
|
%tmp1 = extractelement <8 x half> %v, i32 0
|
|
ret half %tmp1
|
|
}
|
|
|
|
define <1 x i8> @test_vector_dup_bv16B(<16 x i8> %v1) #0 {
|
|
; CHECK-LABEL: test_vector_dup_bv16B:
|
|
; CHECK: dup v0.8b, v0.b[14]
|
|
; CHECK-NEXT: ret
|
|
%shuffle.i = shufflevector <16 x i8> %v1, <16 x i8> undef, <1 x i32> <i32 14>
|
|
ret <1 x i8> %shuffle.i
|
|
}
|
|
|
|
define <1 x i8> @test_vector_dup_bv8B(<8 x i8> %v1) #0 {
|
|
; CHECK-LABEL: test_vector_dup_bv8B:
|
|
; CHECK: dup v0.8b, v0.b[7]
|
|
; CHECK-NEXT: ret
|
|
%shuffle.i = shufflevector <8 x i8> %v1, <8 x i8> undef, <1 x i32> <i32 7>
|
|
ret <1 x i8> %shuffle.i
|
|
}
|
|
|
|
define <1 x i16> @test_vector_dup_hv8H(<8 x i16> %v1) #0 {
|
|
; CHECK-LABEL: test_vector_dup_hv8H:
|
|
; CHECK: dup v0.4h, v0.h[7]
|
|
; CHECK-NEXT: ret
|
|
%shuffle.i = shufflevector <8 x i16> %v1, <8 x i16> undef, <1 x i32> <i32 7>
|
|
ret <1 x i16> %shuffle.i
|
|
}
|
|
|
|
define <1 x i16> @test_vector_dup_hv4H(<4 x i16> %v1) #0 {
|
|
; CHECK-LABEL: test_vector_dup_hv4H:
|
|
; CHECK: dup v0.4h, v0.h[3]
|
|
; CHECK-NEXT: ret
|
|
%shuffle.i = shufflevector <4 x i16> %v1, <4 x i16> undef, <1 x i32> <i32 3>
|
|
ret <1 x i16> %shuffle.i
|
|
}
|
|
|
|
define <1 x i32> @test_vector_dup_sv4S(<4 x i32> %v1) #0 {
|
|
; CHECK-LABEL: test_vector_dup_sv4S:
|
|
; CHECK: dup v0.2s, v0.s[3]
|
|
; CHECK-NEXT: ret
|
|
%shuffle = shufflevector <4 x i32> %v1, <4 x i32> undef, <1 x i32> <i32 3>
|
|
ret <1 x i32> %shuffle
|
|
}
|
|
|
|
define <1 x i32> @test_vector_dup_sv2S(<2 x i32> %v1) #0 {
|
|
; CHECK-LABEL: test_vector_dup_sv2S:
|
|
; CHECK: dup v0.2s, v0.s[1]
|
|
; CHECK-NEXT: ret
|
|
%shuffle = shufflevector <2 x i32> %v1, <2 x i32> undef, <1 x i32> <i32 1>
|
|
ret <1 x i32> %shuffle
|
|
}
|
|
|
|
define <1 x i64> @test_vector_dup_dv2D(<2 x i64> %v1) #0 {
|
|
; CHECK-LABEL: test_vector_dup_dv2D:
|
|
; CHECK: mov d0, v0.d[1]
|
|
; CHECK-NEXT: ret
|
|
%shuffle.i = shufflevector <2 x i64> %v1, <2 x i64> undef, <1 x i32> <i32 1>
|
|
ret <1 x i64> %shuffle.i
|
|
}
|
|
|
|
define <1 x i64> @test_vector_copy_dup_dv2D(<1 x i64> %a, <2 x i64> %c) #0 {
|
|
; CHECK-LABEL: test_vector_copy_dup_dv2D:
|
|
; CHECK: mov d0, v1.d[1]
|
|
; CHECK-NEXT: ret
|
|
%vget_lane = extractelement <2 x i64> %c, i32 1
|
|
%vset_lane = insertelement <1 x i64> undef, i64 %vget_lane, i32 0
|
|
ret <1 x i64> %vset_lane
|
|
}
|
|
|
|
; Undefined behaviour, so we really don't care what actually gets emitted, just
|
|
; as long as we don't crash (since it could be dynamically unreachable).
|
|
define i32 @test_out_of_range_extract(<4 x i32> %vec) {
|
|
; CHECK-LABEL: test_out_of_range_extract:
|
|
; CHECK: ret
|
|
%elt = extractelement <4 x i32> %vec, i32 4
|
|
ret i32 %elt
|
|
}
|
|
|
|
; Undefined behaviour, so we really don't care what actually gets emitted, just
|
|
; as long as we don't crash (since it could be dynamically unreachable).
|
|
define void @test_out_of_range_insert(<4 x i32> %vec, i32 %elt) {
|
|
; CHECK-LABEL: test_out_of_range_insert:
|
|
; CHECK: ret
|
|
insertelement <4 x i32> %vec, i32 %elt, i32 4
|
|
ret void
|
|
}
|
|
|
|
attributes #0 = { nounwind }
|