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
74 lines
1.7 KiB
LLVM
74 lines
1.7 KiB
LLVM
; RUN: llc -mtriple=mipsel -mcpu=mips32 < %s | FileCheck %s
|
|
; RUN: llc -mtriple=mips64el -mcpu=mips4 < %s | \
|
|
; RUN: FileCheck %s -check-prefix=CHECK-MIPS64
|
|
; RUN: llc -mtriple=mips64el -mcpu=mips64 < %s | \
|
|
; RUN: FileCheck %s -check-prefix=CHECK-MIPS64
|
|
|
|
declare ptr @llvm.eh.dwarf.cfa(i32) nounwind
|
|
declare ptr @llvm.frameaddress(i32) nounwind readnone
|
|
|
|
define ptr @f1() nounwind {
|
|
entry:
|
|
%x = alloca [32 x i8], align 1
|
|
%0 = call ptr @llvm.eh.dwarf.cfa(i32 0)
|
|
ret ptr %0
|
|
|
|
; CHECK-LABEL: f1:
|
|
|
|
; CHECK: addiu $sp, $sp, -32
|
|
; CHECK: addiu $2, $sp, 32
|
|
}
|
|
|
|
|
|
define ptr @f2() nounwind {
|
|
entry:
|
|
%x = alloca [65536 x i8], align 1
|
|
%0 = call ptr @llvm.eh.dwarf.cfa(i32 0)
|
|
ret ptr %0
|
|
|
|
; CHECK-LABEL: f2:
|
|
|
|
; check stack size (65536 + 8)
|
|
; CHECK: lui $[[R0:[a-z0-9]+]], 1
|
|
; CHECK: addiu $[[R0]], $[[R0]], 8
|
|
; CHECK: subu $sp, $sp, $[[R0]]
|
|
|
|
; check return value ($sp + stack size)
|
|
; CHECK: lui $[[R1:[a-z0-9]+]], 1
|
|
; CHECK: addu $[[R1]], $sp, $[[R1]]
|
|
; CHECK: addiu $2, $[[R1]], 8
|
|
}
|
|
|
|
|
|
define i32 @f3() nounwind {
|
|
entry:
|
|
%x = alloca [32 x i8], align 1
|
|
%0 = call ptr @llvm.eh.dwarf.cfa(i32 0)
|
|
%1 = ptrtoint ptr %0 to i32
|
|
%2 = call ptr @llvm.frameaddress(i32 0)
|
|
%3 = ptrtoint ptr %2 to i32
|
|
%add = add i32 %1, %3
|
|
ret i32 %add
|
|
|
|
; CHECK-LABEL: f3:
|
|
|
|
; CHECK: addiu $sp, $sp, -40
|
|
|
|
; check return value ($fp + stack size + $fp)
|
|
; CHECK: addiu $[[R0:[a-z0-9]+]], $fp, 40
|
|
; CHECK: addu $2, $[[R0]], $fp
|
|
}
|
|
|
|
|
|
define ptr @f4() nounwind {
|
|
entry:
|
|
%x = alloca [32 x i8], align 1
|
|
%0 = call ptr @llvm.eh.dwarf.cfa(i32 0)
|
|
ret ptr %0
|
|
|
|
; CHECK-LABEL: f4:
|
|
|
|
; CHECK-MIPS64: daddiu $sp, $sp, -32
|
|
; CHECK-MIPS64: daddiu $2, $sp, 32
|
|
}
|