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
74 lines
2.2 KiB
LLVM
74 lines
2.2 KiB
LLVM
; RUN: llc < %s -mtriple=arm64-eabi -aarch64-neon-syntax=apple | FileCheck %s
|
|
|
|
define <2 x float> @ucvt(<2 x i32> %a) nounwind readnone ssp {
|
|
; CHECK-LABEL: ucvt:
|
|
; CHECK: ucvtf.2s v0, v0
|
|
; CHECK: ret
|
|
|
|
%vcvt.i = uitofp <2 x i32> %a to <2 x float>
|
|
ret <2 x float> %vcvt.i
|
|
}
|
|
|
|
define <2 x float> @scvt(<2 x i32> %a) nounwind readnone ssp {
|
|
; CHECK-LABEL: scvt:
|
|
; CHECK: scvtf.2s v0, v0
|
|
; CHECK: ret
|
|
%vcvt.i = sitofp <2 x i32> %a to <2 x float>
|
|
ret <2 x float> %vcvt.i
|
|
}
|
|
|
|
define <4 x float> @ucvtq(<4 x i32> %a) nounwind readnone ssp {
|
|
; CHECK-LABEL: ucvtq:
|
|
; CHECK: ucvtf.4s v0, v0
|
|
; CHECK: ret
|
|
%vcvt.i = uitofp <4 x i32> %a to <4 x float>
|
|
ret <4 x float> %vcvt.i
|
|
}
|
|
|
|
define <4 x float> @scvtq(<4 x i32> %a) nounwind readnone ssp {
|
|
; CHECK-LABEL: scvtq:
|
|
; CHECK: scvtf.4s v0, v0
|
|
; CHECK: ret
|
|
%vcvt.i = sitofp <4 x i32> %a to <4 x float>
|
|
ret <4 x float> %vcvt.i
|
|
}
|
|
|
|
define <4 x float> @cvtf16(<4 x i16> %a) nounwind readnone ssp {
|
|
; CHECK-LABEL: cvtf16:
|
|
; CHECK: fcvtl v0.4s, v0.4h
|
|
; CHECK-NEXT: ret
|
|
%vcvt1.i = tail call <4 x float> @llvm.aarch64.neon.vcvthf2fp(<4 x i16> %a) nounwind
|
|
ret <4 x float> %vcvt1.i
|
|
}
|
|
|
|
define <4 x float> @cvtf16_high(<8 x i16> %a) nounwind readnone ssp {
|
|
; CHECK-LABEL: cvtf16_high:
|
|
; CHECK: fcvtl2 v0.4s, v0.8h
|
|
; CHECK-NEXT: ret
|
|
%in = shufflevector <8 x i16> %a, <8 x i16> undef, <4 x i32> <i32 4, i32 5, i32 6, i32 7>
|
|
%vcvt1.i = tail call <4 x float> @llvm.aarch64.neon.vcvthf2fp(<4 x i16> %in) nounwind
|
|
ret <4 x float> %vcvt1.i
|
|
}
|
|
|
|
|
|
|
|
define <4 x i16> @cvtf16f32(<4 x float> %a) nounwind readnone ssp {
|
|
; CHECK-LABEL: cvtf16f32:
|
|
; CHECK: fcvtn v0.4h, v0.4s
|
|
; CHECK-NEXT: ret
|
|
%vcvt1.i = tail call <4 x i16> @llvm.aarch64.neon.vcvtfp2hf(<4 x float> %a) nounwind
|
|
ret <4 x i16> %vcvt1.i
|
|
}
|
|
|
|
define <8 x i16> @cvtf16f32_high(<4 x i16> %low, <4 x float> %high_big) {
|
|
; CHECK-LABEL: cvtf16f32_high:
|
|
; CHECK: fcvtn2 v0.8h, v1.4s
|
|
; CHECK-NEXT: ret
|
|
%high = call <4 x i16> @llvm.aarch64.neon.vcvtfp2hf(<4 x float> %high_big)
|
|
%res = shufflevector <4 x i16> %low, <4 x i16> %high, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
|
|
ret <8 x i16> %res
|
|
}
|
|
|
|
declare <4 x float> @llvm.aarch64.neon.vcvthf2fp(<4 x i16>) nounwind readnone
|
|
declare <4 x i16> @llvm.aarch64.neon.vcvtfp2hf(<4 x float>) nounwind readnone
|