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
70 lines
2.7 KiB
LLVM
70 lines
2.7 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
|
|
; RUN: llc < %s -mtriple=riscv64 -mattr=+v -target-abi=lp64d | FileCheck %s
|
|
|
|
define <4 x float> @foo(ptr %0) nounwind {
|
|
; CHECK-LABEL: foo:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: addi sp, sp, -48
|
|
; CHECK-NEXT: sd ra, 40(sp) # 8-byte Folded Spill
|
|
; CHECK-NEXT: sd s0, 32(sp) # 8-byte Folded Spill
|
|
; CHECK-NEXT: sd s1, 24(sp) # 8-byte Folded Spill
|
|
; CHECK-NEXT: sd s2, 16(sp) # 8-byte Folded Spill
|
|
; CHECK-NEXT: csrr a1, vlenb
|
|
; CHECK-NEXT: slli a1, a1, 1
|
|
; CHECK-NEXT: sub sp, sp, a1
|
|
; CHECK-NEXT: lhu s0, 0(a0)
|
|
; CHECK-NEXT: lhu s1, 2(a0)
|
|
; CHECK-NEXT: lhu s2, 4(a0)
|
|
; CHECK-NEXT: lhu a0, 6(a0)
|
|
; CHECK-NEXT: fmv.w.x fa0, a0
|
|
; CHECK-NEXT: call __extendhfsf2
|
|
; CHECK-NEXT: fmv.w.x fa5, s2
|
|
; CHECK-NEXT: vsetivli zero, 1, e32, m1, ta, ma
|
|
; CHECK-NEXT: vfmv.s.f v8, fa0
|
|
; CHECK-NEXT: addi a0, sp, 16
|
|
; CHECK-NEXT: vs1r.v v8, (a0) # vscale x 8-byte Folded Spill
|
|
; CHECK-NEXT: fmv.s fa0, fa5
|
|
; CHECK-NEXT: call __extendhfsf2
|
|
; CHECK-NEXT: vsetivli zero, 2, e32, mf2, ta, ma
|
|
; CHECK-NEXT: vfmv.s.f v8, fa0
|
|
; CHECK-NEXT: addi a0, sp, 16
|
|
; CHECK-NEXT: vl1r.v v9, (a0) # vscale x 8-byte Folded Reload
|
|
; CHECK-NEXT: vslideup.vi v8, v9, 1
|
|
; CHECK-NEXT: csrr a0, vlenb
|
|
; CHECK-NEXT: add a0, sp, a0
|
|
; CHECK-NEXT: addi a0, a0, 16
|
|
; CHECK-NEXT: vs1r.v v8, (a0) # vscale x 8-byte Folded Spill
|
|
; CHECK-NEXT: fmv.w.x fa0, s1
|
|
; CHECK-NEXT: call __extendhfsf2
|
|
; CHECK-NEXT: fmv.w.x fa5, s0
|
|
; CHECK-NEXT: vsetivli zero, 1, e32, m1, ta, ma
|
|
; CHECK-NEXT: vfmv.s.f v8, fa0
|
|
; CHECK-NEXT: addi a0, sp, 16
|
|
; CHECK-NEXT: vs1r.v v8, (a0) # vscale x 8-byte Folded Spill
|
|
; CHECK-NEXT: fmv.s fa0, fa5
|
|
; CHECK-NEXT: call __extendhfsf2
|
|
; CHECK-NEXT: vsetivli zero, 2, e32, mf2, ta, ma
|
|
; CHECK-NEXT: vfmv.s.f v8, fa0
|
|
; CHECK-NEXT: addi a0, sp, 16
|
|
; CHECK-NEXT: vl1r.v v9, (a0) # vscale x 8-byte Folded Reload
|
|
; CHECK-NEXT: vslideup.vi v8, v9, 1
|
|
; CHECK-NEXT: csrr a0, vlenb
|
|
; CHECK-NEXT: add a0, sp, a0
|
|
; CHECK-NEXT: addi a0, a0, 16
|
|
; CHECK-NEXT: vl1r.v v9, (a0) # vscale x 8-byte Folded Reload
|
|
; CHECK-NEXT: vsetivli zero, 4, e32, m1, ta, ma
|
|
; CHECK-NEXT: vslideup.vi v8, v9, 2
|
|
; CHECK-NEXT: csrr a0, vlenb
|
|
; CHECK-NEXT: slli a0, a0, 1
|
|
; CHECK-NEXT: add sp, sp, a0
|
|
; CHECK-NEXT: ld ra, 40(sp) # 8-byte Folded Reload
|
|
; CHECK-NEXT: ld s0, 32(sp) # 8-byte Folded Reload
|
|
; CHECK-NEXT: ld s1, 24(sp) # 8-byte Folded Reload
|
|
; CHECK-NEXT: ld s2, 16(sp) # 8-byte Folded Reload
|
|
; CHECK-NEXT: addi sp, sp, 48
|
|
; CHECK-NEXT: ret
|
|
%2 = load <4 x half>, ptr %0, align 2
|
|
%3 = fpext <4 x half> %2 to <4 x float>
|
|
ret <4 x float> %3
|
|
}
|