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
52 lines
2.0 KiB
LLVM
52 lines
2.0 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \
|
|
; RUN: | FileCheck -check-prefix=RV32I-FPELIM %s
|
|
; RUN: llc -mtriple=riscv32 -frame-pointer=all -verify-machineinstrs < %s \
|
|
; RUN: | FileCheck -check-prefix=RV32I-WITHFP %s
|
|
|
|
%struct.key_t = type { i32, [16 x i8] }
|
|
|
|
define i32 @test() nounwind {
|
|
; RV32I-FPELIM-LABEL: test:
|
|
; RV32I-FPELIM: # %bb.0:
|
|
; RV32I-FPELIM-NEXT: addi sp, sp, -32
|
|
; RV32I-FPELIM-NEXT: sw ra, 28(sp) # 4-byte Folded Spill
|
|
; RV32I-FPELIM-NEXT: sw zero, 24(sp)
|
|
; RV32I-FPELIM-NEXT: sw zero, 8(sp)
|
|
; RV32I-FPELIM-NEXT: sw zero, 12(sp)
|
|
; RV32I-FPELIM-NEXT: sw zero, 16(sp)
|
|
; RV32I-FPELIM-NEXT: sw zero, 20(sp)
|
|
; RV32I-FPELIM-NEXT: addi a0, sp, 12
|
|
; RV32I-FPELIM-NEXT: call test1
|
|
; RV32I-FPELIM-NEXT: li a0, 0
|
|
; RV32I-FPELIM-NEXT: lw ra, 28(sp) # 4-byte Folded Reload
|
|
; RV32I-FPELIM-NEXT: addi sp, sp, 32
|
|
; RV32I-FPELIM-NEXT: ret
|
|
;
|
|
; RV32I-WITHFP-LABEL: test:
|
|
; RV32I-WITHFP: # %bb.0:
|
|
; RV32I-WITHFP-NEXT: addi sp, sp, -32
|
|
; RV32I-WITHFP-NEXT: sw ra, 28(sp) # 4-byte Folded Spill
|
|
; RV32I-WITHFP-NEXT: sw s0, 24(sp) # 4-byte Folded Spill
|
|
; RV32I-WITHFP-NEXT: addi s0, sp, 32
|
|
; RV32I-WITHFP-NEXT: sw zero, -16(s0)
|
|
; RV32I-WITHFP-NEXT: sw zero, -32(s0)
|
|
; RV32I-WITHFP-NEXT: sw zero, -28(s0)
|
|
; RV32I-WITHFP-NEXT: sw zero, -24(s0)
|
|
; RV32I-WITHFP-NEXT: sw zero, -20(s0)
|
|
; RV32I-WITHFP-NEXT: addi a0, s0, -28
|
|
; RV32I-WITHFP-NEXT: call test1
|
|
; RV32I-WITHFP-NEXT: li a0, 0
|
|
; RV32I-WITHFP-NEXT: lw ra, 28(sp) # 4-byte Folded Reload
|
|
; RV32I-WITHFP-NEXT: lw s0, 24(sp) # 4-byte Folded Reload
|
|
; RV32I-WITHFP-NEXT: addi sp, sp, 32
|
|
; RV32I-WITHFP-NEXT: ret
|
|
%key = alloca %struct.key_t, align 8
|
|
call void @llvm.memset.p0.i64(ptr align 4 %key, i8 0, i64 20, i1 false)
|
|
%1 = getelementptr inbounds %struct.key_t, ptr %key, i64 0, i32 1, i64 0
|
|
call void @test1(ptr %1)
|
|
ret i32 0
|
|
}
|
|
|
|
declare void @test1(ptr)
|