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
82 lines
2.8 KiB
LLVM
82 lines
2.8 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -global-isel=1 -mtriple=riscv32 -mattr=+f,+d -target-abi=ilp32 -verify-machineinstrs < %s \
|
|
; RUN: | FileCheck %s
|
|
|
|
define fastcc float @callee([32 x float] %A) nounwind {
|
|
; CHECK-LABEL: callee:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: fmv.x.w a0, fa1
|
|
; CHECK-NEXT: ret
|
|
%b = extractvalue [32 x float] %A, 1
|
|
ret float %b
|
|
}
|
|
|
|
; With the fastcc, arguments will be passed by fa0-fa7 and ft0-ft11.
|
|
; The rest will be pushed on the stack.
|
|
define float @caller([32 x float] %A) nounwind {
|
|
; CHECK-LABEL: caller:
|
|
; CHECK: # %bb.0:
|
|
; CHECK-NEXT: addi sp, sp, -80
|
|
; CHECK-NEXT: sw ra, 76(sp) # 4-byte Folded Spill
|
|
; CHECK-NEXT: sw s0, 72(sp) # 4-byte Folded Spill
|
|
; CHECK-NEXT: sw s1, 68(sp) # 4-byte Folded Spill
|
|
; CHECK-NEXT: sw s2, 64(sp) # 4-byte Folded Spill
|
|
; CHECK-NEXT: sw s3, 60(sp) # 4-byte Folded Spill
|
|
; CHECK-NEXT: sw s4, 56(sp) # 4-byte Folded Spill
|
|
; CHECK-NEXT: flw ft0, 80(sp)
|
|
; CHECK-NEXT: flw ft1, 84(sp)
|
|
; CHECK-NEXT: flw ft2, 88(sp)
|
|
; CHECK-NEXT: flw ft3, 92(sp)
|
|
; CHECK-NEXT: flw ft4, 96(sp)
|
|
; CHECK-NEXT: flw ft5, 100(sp)
|
|
; CHECK-NEXT: flw ft6, 104(sp)
|
|
; CHECK-NEXT: flw ft7, 108(sp)
|
|
; CHECK-NEXT: flw ft8, 112(sp)
|
|
; CHECK-NEXT: flw ft9, 116(sp)
|
|
; CHECK-NEXT: flw ft10, 120(sp)
|
|
; CHECK-NEXT: flw ft11, 124(sp)
|
|
; CHECK-NEXT: lw t0, 128(sp)
|
|
; CHECK-NEXT: lw t1, 132(sp)
|
|
; CHECK-NEXT: lw t2, 136(sp)
|
|
; CHECK-NEXT: lw t3, 140(sp)
|
|
; CHECK-NEXT: lw t4, 144(sp)
|
|
; CHECK-NEXT: lw t5, 148(sp)
|
|
; CHECK-NEXT: lw t6, 152(sp)
|
|
; CHECK-NEXT: lw s0, 156(sp)
|
|
; CHECK-NEXT: lw s1, 160(sp)
|
|
; CHECK-NEXT: lw s2, 164(sp)
|
|
; CHECK-NEXT: lw s3, 168(sp)
|
|
; CHECK-NEXT: lw s4, 172(sp)
|
|
; CHECK-NEXT: sw t0, 0(sp)
|
|
; CHECK-NEXT: sw t1, 4(sp)
|
|
; CHECK-NEXT: sw t2, 8(sp)
|
|
; CHECK-NEXT: sw t3, 12(sp)
|
|
; CHECK-NEXT: sw t4, 16(sp)
|
|
; CHECK-NEXT: sw t5, 20(sp)
|
|
; CHECK-NEXT: sw t6, 24(sp)
|
|
; CHECK-NEXT: sw s0, 28(sp)
|
|
; CHECK-NEXT: sw s1, 32(sp)
|
|
; CHECK-NEXT: sw s2, 36(sp)
|
|
; CHECK-NEXT: sw s3, 40(sp)
|
|
; CHECK-NEXT: sw s4, 44(sp)
|
|
; CHECK-NEXT: fmv.w.x fa0, a0
|
|
; CHECK-NEXT: fmv.w.x fa1, a1
|
|
; CHECK-NEXT: fmv.w.x fa2, a2
|
|
; CHECK-NEXT: fmv.w.x fa3, a3
|
|
; CHECK-NEXT: fmv.w.x fa4, a4
|
|
; CHECK-NEXT: fmv.w.x fa5, a5
|
|
; CHECK-NEXT: fmv.w.x fa6, a6
|
|
; CHECK-NEXT: fmv.w.x fa7, a7
|
|
; CHECK-NEXT: call callee
|
|
; CHECK-NEXT: lw ra, 76(sp) # 4-byte Folded Reload
|
|
; CHECK-NEXT: lw s0, 72(sp) # 4-byte Folded Reload
|
|
; CHECK-NEXT: lw s1, 68(sp) # 4-byte Folded Reload
|
|
; CHECK-NEXT: lw s2, 64(sp) # 4-byte Folded Reload
|
|
; CHECK-NEXT: lw s3, 60(sp) # 4-byte Folded Reload
|
|
; CHECK-NEXT: lw s4, 56(sp) # 4-byte Folded Reload
|
|
; CHECK-NEXT: addi sp, sp, 80
|
|
; CHECK-NEXT: ret
|
|
%C = call fastcc float @callee([32 x float] %A)
|
|
ret float %C
|
|
}
|