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
76 lines
1.2 KiB
Smarty
Vendored
76 lines
1.2 KiB
Smarty
Vendored
/*
|
|
* Copyright 2022-2025 Yury Gribov
|
|
*
|
|
* The MIT License (MIT)
|
|
*
|
|
* Use of this source code is governed by MIT license that can be
|
|
* found in the LICENSE.txt file.
|
|
*/
|
|
|
|
.globl $sym
|
|
.p2align 4
|
|
.type $sym, %function
|
|
#ifndef IMPLIB_EXPORT_SHIMS
|
|
.hidden $sym
|
|
#endif
|
|
$sym:
|
|
.cfi_startproc
|
|
|
|
.set noreorder
|
|
.cpload $$25
|
|
|
|
.set nomacro
|
|
.set noat
|
|
|
|
1:
|
|
// Load address
|
|
#if $offset < 32768
|
|
lw $$AT, %got(_${lib_suffix}_tramp_table)($$gp)
|
|
lw $$AT, $offset($$AT)
|
|
#else
|
|
PUSH_REG($$2)
|
|
lw $$AT, %got(_${lib_suffix}_tramp_table)($$gp)
|
|
.set macro
|
|
.set at=$$2
|
|
lw $$AT, $offset($$AT)
|
|
.set nomacro
|
|
.set noat
|
|
POP_REG($$2)
|
|
#endif
|
|
|
|
beqz $$AT, 3f
|
|
nop
|
|
|
|
2:
|
|
// Fast path
|
|
j $$AT
|
|
move $$25, $$AT
|
|
|
|
3:
|
|
// Slow path
|
|
|
|
PUSH_REG($$25)
|
|
PUSH_REG($$ra)
|
|
|
|
// Reserve space for 4 operands according to ABI
|
|
addiu $$sp, $$sp, -16; .cfi_adjust_cfa_offset 16
|
|
|
|
li $$AT, $number
|
|
lw $$25, %call16(_${lib_suffix}_save_regs_and_resolve)($$gp)
|
|
.reloc 4f, R_MIPS_JALR, _${lib_suffix}_save_regs_and_resolve
|
|
4: jalr $$25
|
|
nop
|
|
|
|
addiu $$sp, $$sp, 16; .cfi_adjust_cfa_offset -16
|
|
|
|
POP_REG($$ra)
|
|
POP_REG($$25)
|
|
|
|
j $$v0
|
|
move $$25, $$v0
|
|
|
|
.set macro
|
|
.set reorder
|
|
|
|
.cfi_endproc
|