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
209 lines
6.3 KiB
LLVM
209 lines
6.3 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: llc < %s -mtriple=arm64-eabi -aarch64-neon-syntax=apple | FileCheck %s
|
|
|
|
define void @autogen_SD19655(ptr %addr, ptr %addrfloat) {
|
|
; CHECK-LABEL: autogen_SD19655:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ldp x8, x9, [x0]
|
|
; CHECK-NEXT: scvtf s0, x9
|
|
; CHECK-NEXT: scvtf s1, x8
|
|
; CHECK-NEXT: mov.s v1[1], v0[0]
|
|
; CHECK-NEXT: str d1, [x1]
|
|
; CHECK-NEXT: ret
|
|
%T = load <2 x i64>, ptr %addr
|
|
%F = sitofp <2 x i64> %T to <2 x float>
|
|
store <2 x float> %F, ptr %addrfloat
|
|
ret void
|
|
}
|
|
|
|
define <2 x double> @test_signed_v2i32_to_v2f64(<2 x i32> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_signed_v2i32_to_v2f64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: sshll.2d v0, v0, #0
|
|
; CHECK-NEXT: scvtf.2d v0, v0
|
|
; CHECK-NEXT: ret
|
|
%conv = sitofp <2 x i32> %v to <2 x double>
|
|
ret <2 x double> %conv
|
|
}
|
|
|
|
define <2 x double> @test_unsigned_v2i32_to_v2f64(<2 x i32> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_unsigned_v2i32_to_v2f64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ushll.2d v0, v0, #0
|
|
; CHECK-NEXT: ucvtf.2d v0, v0
|
|
; CHECK-NEXT: ret
|
|
%conv = uitofp <2 x i32> %v to <2 x double>
|
|
ret <2 x double> %conv
|
|
}
|
|
|
|
define <2 x double> @test_signed_v2i16_to_v2f64(<2 x i16> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_signed_v2i16_to_v2f64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: shl.2s v0, v0, #16
|
|
; CHECK-NEXT: sshr.2s v0, v0, #16
|
|
; CHECK-NEXT: sshll.2d v0, v0, #0
|
|
; CHECK-NEXT: scvtf.2d v0, v0
|
|
; CHECK-NEXT: ret
|
|
|
|
%conv = sitofp <2 x i16> %v to <2 x double>
|
|
ret <2 x double> %conv
|
|
}
|
|
define <2 x double> @test_unsigned_v2i16_to_v2f64(<2 x i16> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_unsigned_v2i16_to_v2f64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: movi d1, #0x00ffff0000ffff
|
|
; CHECK-NEXT: and.8b v0, v0, v1
|
|
; CHECK-NEXT: ushll.2d v0, v0, #0
|
|
; CHECK-NEXT: ucvtf.2d v0, v0
|
|
; CHECK-NEXT: ret
|
|
|
|
%conv = uitofp <2 x i16> %v to <2 x double>
|
|
ret <2 x double> %conv
|
|
}
|
|
|
|
define <2 x double> @test_signed_v2i8_to_v2f64(<2 x i8> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_signed_v2i8_to_v2f64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: shl.2s v0, v0, #24
|
|
; CHECK-NEXT: sshr.2s v0, v0, #24
|
|
; CHECK-NEXT: sshll.2d v0, v0, #0
|
|
; CHECK-NEXT: scvtf.2d v0, v0
|
|
; CHECK-NEXT: ret
|
|
|
|
%conv = sitofp <2 x i8> %v to <2 x double>
|
|
ret <2 x double> %conv
|
|
}
|
|
define <2 x double> @test_unsigned_v2i8_to_v2f64(<2 x i8> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_unsigned_v2i8_to_v2f64:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: movi d1, #0x0000ff000000ff
|
|
; CHECK-NEXT: and.8b v0, v0, v1
|
|
; CHECK-NEXT: ushll.2d v0, v0, #0
|
|
; CHECK-NEXT: ucvtf.2d v0, v0
|
|
; CHECK-NEXT: ret
|
|
|
|
%conv = uitofp <2 x i8> %v to <2 x double>
|
|
ret <2 x double> %conv
|
|
}
|
|
|
|
define <2 x float> @test_signed_v2i64_to_v2f32(<2 x i64> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_signed_v2i64_to_v2f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: mov.d x8, v0[1]
|
|
; CHECK-NEXT: fmov x9, d0
|
|
; CHECK-NEXT: scvtf s0, x9
|
|
; CHECK-NEXT: scvtf s1, x8
|
|
; CHECK-NEXT: mov.s v0[1], v1[0]
|
|
; CHECK-NEXT: // kill: def $d0 killed $d0 killed $q0
|
|
; CHECK-NEXT: ret
|
|
|
|
%conv = sitofp <2 x i64> %v to <2 x float>
|
|
ret <2 x float> %conv
|
|
}
|
|
define <2 x float> @test_unsigned_v2i64_to_v2f32(<2 x i64> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_unsigned_v2i64_to_v2f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: mov.d x8, v0[1]
|
|
; CHECK-NEXT: fmov x9, d0
|
|
; CHECK-NEXT: ucvtf s0, x9
|
|
; CHECK-NEXT: ucvtf s1, x8
|
|
; CHECK-NEXT: mov.s v0[1], v1[0]
|
|
; CHECK-NEXT: // kill: def $d0 killed $d0 killed $q0
|
|
; CHECK-NEXT: ret
|
|
|
|
%conv = uitofp <2 x i64> %v to <2 x float>
|
|
ret <2 x float> %conv
|
|
}
|
|
|
|
define <2 x float> @test_signed_v2i16_to_v2f32(<2 x i16> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_signed_v2i16_to_v2f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: shl.2s v0, v0, #16
|
|
; CHECK-NEXT: sshr.2s v0, v0, #16
|
|
; CHECK-NEXT: scvtf.2s v0, v0
|
|
; CHECK-NEXT: ret
|
|
|
|
%conv = sitofp <2 x i16> %v to <2 x float>
|
|
ret <2 x float> %conv
|
|
}
|
|
define <2 x float> @test_unsigned_v2i16_to_v2f32(<2 x i16> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_unsigned_v2i16_to_v2f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: movi d1, #0x00ffff0000ffff
|
|
; CHECK-NEXT: and.8b v0, v0, v1
|
|
; CHECK-NEXT: ucvtf.2s v0, v0
|
|
; CHECK-NEXT: ret
|
|
|
|
%conv = uitofp <2 x i16> %v to <2 x float>
|
|
ret <2 x float> %conv
|
|
}
|
|
|
|
define <2 x float> @test_signed_v2i8_to_v2f32(<2 x i8> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_signed_v2i8_to_v2f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: shl.2s v0, v0, #24
|
|
; CHECK-NEXT: sshr.2s v0, v0, #24
|
|
; CHECK-NEXT: scvtf.2s v0, v0
|
|
; CHECK-NEXT: ret
|
|
|
|
%conv = sitofp <2 x i8> %v to <2 x float>
|
|
ret <2 x float> %conv
|
|
}
|
|
define <2 x float> @test_unsigned_v2i8_to_v2f32(<2 x i8> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_unsigned_v2i8_to_v2f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: movi d1, #0x0000ff000000ff
|
|
; CHECK-NEXT: and.8b v0, v0, v1
|
|
; CHECK-NEXT: ucvtf.2s v0, v0
|
|
; CHECK-NEXT: ret
|
|
|
|
%conv = uitofp <2 x i8> %v to <2 x float>
|
|
ret <2 x float> %conv
|
|
}
|
|
|
|
define <4 x float> @test_signed_v4i16_to_v4f32(<4 x i16> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_signed_v4i16_to_v4f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: sshll.4s v0, v0, #0
|
|
; CHECK-NEXT: scvtf.4s v0, v0
|
|
; CHECK-NEXT: ret
|
|
|
|
%conv = sitofp <4 x i16> %v to <4 x float>
|
|
ret <4 x float> %conv
|
|
}
|
|
|
|
define <4 x float> @test_unsigned_v4i16_to_v4f32(<4 x i16> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_unsigned_v4i16_to_v4f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: ushll.4s v0, v0, #0
|
|
; CHECK-NEXT: ucvtf.4s v0, v0
|
|
; CHECK-NEXT: ret
|
|
|
|
%conv = uitofp <4 x i16> %v to <4 x float>
|
|
ret <4 x float> %conv
|
|
}
|
|
|
|
define <4 x float> @test_signed_v4i8_to_v4f32(<4 x i8> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_signed_v4i8_to_v4f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: shl.4h v0, v0, #8
|
|
; CHECK-NEXT: sshr.4h v0, v0, #8
|
|
; CHECK-NEXT: sshll.4s v0, v0, #0
|
|
; CHECK-NEXT: scvtf.4s v0, v0
|
|
; CHECK-NEXT: ret
|
|
|
|
%conv = sitofp <4 x i8> %v to <4 x float>
|
|
ret <4 x float> %conv
|
|
}
|
|
define <4 x float> @test_unsigned_v4i8_to_v4f32(<4 x i8> %v) nounwind readnone {
|
|
; CHECK-LABEL: test_unsigned_v4i8_to_v4f32:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: bic.4h v0, #255, lsl #8
|
|
; CHECK-NEXT: ushll.4s v0, v0, #0
|
|
; CHECK-NEXT: ucvtf.4s v0, v0
|
|
; CHECK-NEXT: ret
|
|
|
|
%conv = uitofp <4 x i8> %v to <4 x float>
|
|
ret <4 x float> %conv
|
|
}
|