Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/Mips/naked-fn-with-frame-pointer.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

88 lines
3.0 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
; RUN: llc < %s -mtriple mips | FileCheck %s -check-prefixes=CHECK-32-BE
; RUN: llc < %s -mtriple mipsel | FileCheck %s -check-prefixes=CHECK-32-LE
; RUN: llc < %s -mtriple mips64 | FileCheck %s -check-prefixes=CHECK-64-BE
; RUN: llc < %s -mtriple mips64el | FileCheck %s -check-prefixes=CHECK-64-LE
declare dso_local void @main()
define dso_local void @naked() naked "frame-pointer"="all" {
; CHECK-32-BE-LABEL: naked:
; CHECK-32-BE: # %bb.0:
; CHECK-32-BE-NEXT: jal main
; CHECK-32-BE-NEXT: nop
;
; CHECK-32-LE-LABEL: naked:
; CHECK-32-LE: # %bb.0:
; CHECK-32-LE-NEXT: jal main
; CHECK-32-LE-NEXT: nop
;
; CHECK-64-BE-LABEL: naked:
; CHECK-64-BE: # %bb.0:
; CHECK-64-BE-NEXT: jal main
; CHECK-64-BE-NEXT: nop
;
; CHECK-64-LE-LABEL: naked:
; CHECK-64-LE: # %bb.0:
; CHECK-64-LE-NEXT: jal main
; CHECK-64-LE-NEXT: nop
call void @main()
unreachable
}
define dso_local void @normal() "frame-pointer"="all" {
; CHECK-32-BE-LABEL: normal:
; CHECK-32-BE: # %bb.0:
; CHECK-32-BE-NEXT: addiu $sp, $sp, -24
; CHECK-32-BE-NEXT: .cfi_def_cfa_offset 24
; CHECK-32-BE-NEXT: sw $ra, 20($sp) # 4-byte Folded Spill
; CHECK-32-BE-NEXT: sw $fp, 16($sp) # 4-byte Folded Spill
; CHECK-32-BE-NEXT: .cfi_offset 31, -4
; CHECK-32-BE-NEXT: .cfi_offset 30, -8
; CHECK-32-BE-NEXT: move $fp, $sp
; CHECK-32-BE-NEXT: .cfi_def_cfa_register 30
; CHECK-32-BE-NEXT: jal main
; CHECK-32-BE-NEXT: nop
;
; CHECK-32-LE-LABEL: normal:
; CHECK-32-LE: # %bb.0:
; CHECK-32-LE-NEXT: addiu $sp, $sp, -24
; CHECK-32-LE-NEXT: .cfi_def_cfa_offset 24
; CHECK-32-LE-NEXT: sw $ra, 20($sp) # 4-byte Folded Spill
; CHECK-32-LE-NEXT: sw $fp, 16($sp) # 4-byte Folded Spill
; CHECK-32-LE-NEXT: .cfi_offset 31, -4
; CHECK-32-LE-NEXT: .cfi_offset 30, -8
; CHECK-32-LE-NEXT: move $fp, $sp
; CHECK-32-LE-NEXT: .cfi_def_cfa_register 30
; CHECK-32-LE-NEXT: jal main
; CHECK-32-LE-NEXT: nop
;
; CHECK-64-BE-LABEL: normal:
; CHECK-64-BE: # %bb.0:
; CHECK-64-BE-NEXT: daddiu $sp, $sp, -16
; CHECK-64-BE-NEXT: .cfi_def_cfa_offset 16
; CHECK-64-BE-NEXT: sd $ra, 8($sp) # 8-byte Folded Spill
; CHECK-64-BE-NEXT: sd $fp, 0($sp) # 8-byte Folded Spill
; CHECK-64-BE-NEXT: .cfi_offset 31, -8
; CHECK-64-BE-NEXT: .cfi_offset 30, -16
; CHECK-64-BE-NEXT: move $fp, $sp
; CHECK-64-BE-NEXT: .cfi_def_cfa_register 30
; CHECK-64-BE-NEXT: jal main
; CHECK-64-BE-NEXT: nop
;
; CHECK-64-LE-LABEL: normal:
; CHECK-64-LE: # %bb.0:
; CHECK-64-LE-NEXT: daddiu $sp, $sp, -16
; CHECK-64-LE-NEXT: .cfi_def_cfa_offset 16
; CHECK-64-LE-NEXT: sd $ra, 8($sp) # 8-byte Folded Spill
; CHECK-64-LE-NEXT: sd $fp, 0($sp) # 8-byte Folded Spill
; CHECK-64-LE-NEXT: .cfi_offset 31, -8
; CHECK-64-LE-NEXT: .cfi_offset 30, -16
; CHECK-64-LE-NEXT: move $fp, $sp
; CHECK-64-LE-NEXT: .cfi_def_cfa_register 30
; CHECK-64-LE-NEXT: jal main
; CHECK-64-LE-NEXT: nop
call void @main()
unreachable
}