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
76 lines
2.5 KiB
LLVM
76 lines
2.5 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=hexagon -hexagon-hvx-widen=32 -hexagon-fp-fast-convert=true -mattr=+hvxv68,+hvx-length128b,+hvx-qfloat < %s | FileCheck %s --check-prefix=CHECK-V68
|
|
; RUN: llc -mtriple=hexagon -hexagon-hvx-widen=32 -hexagon-fp-fast-convert=true -mattr=+hvxv81,+hvx-length128b,+hvx-qfloat < %s | FileCheck %s --check-prefix=CHECK-V81
|
|
|
|
; ----------------------------
|
|
; V68 Tests
|
|
; ----------------------------
|
|
|
|
; f16 -> s16 (No widening)
|
|
define void @f16s16_0(ptr %a0, ptr %a1) #0 {
|
|
; CHECK-V68-LABEL: f16s16_0:
|
|
; CHECK-V68: {
|
|
; CHECK-V68: [[DST:v[0-9]+]].h = [[SRC:v[0-9]+]].hf
|
|
; CHECK-V68-NEXT: jumpr r31
|
|
; CHECK-V68: vmem(r1+#0) = [[DST]].new
|
|
; CHECK-V68-NEXT: }
|
|
%v0 = load <64 x half>, ptr %a0, align 128
|
|
%v1 = fptosi <64 x half> %v0 to <64 x i16>
|
|
store <64 x i16> %v1, ptr %a1, align 128
|
|
ret void
|
|
}
|
|
|
|
; f32 -> s8 (Triggers V6_vconv_w_sf)
|
|
define void @f32s8_2(ptr %a0, ptr %a1) {
|
|
; CHECK-V68-LABEL: f32s8_2:
|
|
; CHECK-V68: {
|
|
; CHECK-V68: [[SRC:v[0-9]+]] = vmem(r0+#0)
|
|
; CHECK-V68: [[SRC]].w = [[SRC]].sf
|
|
; CHECK-V68: vpack
|
|
; CHECK-V68: vpack
|
|
; CHECK-V68: vpack
|
|
; CHECK-V68: jumpr r31
|
|
; CHECK-V68: vmem(r1+#0) = [[DST:v[0-9]+]]
|
|
; CHECK-V68-NEXT: }
|
|
%v0 = load <32 x float>, ptr %a0, align 128
|
|
%v1 = fptosi <32 x float> %v0 to <32 x i8>
|
|
store <32 x i8> %v1, ptr %a1, align 128
|
|
ret void
|
|
}
|
|
|
|
; ----------------------------
|
|
; V81 Tests
|
|
; ----------------------------
|
|
|
|
; f16 -> s16 with rounding (V6_vconv_h_hf_rnd)
|
|
define void @f16s16_v81(ptr %a0, ptr %a1) {
|
|
; CHECK-V81-LABEL: f16s16_v81:
|
|
; CHECK-V81: {
|
|
; CHECK-V81: [[DST:v[0-9]+]].h = [[SRC:v[0-9]+]].hf:rnd
|
|
; CHECK-V81-NEXT: jumpr r31
|
|
; CHECK-V81: vmem(r1+#0) = [[DST]].new
|
|
; CHECK-V81-NEXT: }
|
|
%v0 = load <64 x half>, ptr %a0, align 128
|
|
%v1 = fptosi <64 x half> %v0 to <64 x i16>
|
|
store <64 x i16> %v1, ptr %a1, align 128
|
|
ret void
|
|
}
|
|
|
|
; f32 -> s8 with V81 (still uses V6_vconv_w_sf)
|
|
define void @f32s8_v81(ptr %a0, ptr %a1) {
|
|
; CHECK-V81-LABEL: f32s8_v81:
|
|
; CHECK-V81: {
|
|
; CHECK-V81: [[SRC:v[0-9]+]] = vmem(r0+#0)
|
|
; CHECK-V81: [[SRC]].w = [[SRC]].sf
|
|
; CHECK-V81: vpack
|
|
; CHECK-V81: vpack
|
|
; CHECK-V81: vpack
|
|
; CHECK-V81: jumpr r31
|
|
; CHECK-V81: vmem(r1+#0) = [[DST:v[0-9]+]]
|
|
; CHECK-V81-NEXT: }
|
|
%v0 = load <32 x float>, ptr %a0, align 128
|
|
%v1 = fptosi <32 x float> %v0 to <32 x i8>
|
|
store <32 x i8> %v1, ptr %a1, align 128
|
|
ret void
|
|
}
|