Update labels for better support with latest splat/spimdisasm (#190)

This commit is contained in:
Anghelo Carvajal authored and GitHub committed 2025-09-03 00:12:29 +02:00
1 parent 333b0c716c
commit 45981f9c46
1 file changed
+39 -11
+39 -11
View File
@@ -1,22 +1,50 @@
.set noat
.set noreorder
.set gp=64
.macro glabel label
.global \label
.macro glabel label, visibility=global
.\visibility \label
.type \label, @function
\label:
.endm
.macro dlabel label
.global \label
\label:
.endm
.macro jlabel label
\label:
.endm
.macro endlabel label
.size \label, . - \label
.endm
.macro alabel label, visibility=global
.\visibility \label
.type \label, @function
\label:
.endm
.macro ehlabel label, visibility=global
.\visibility \label
\label:
.endm
.macro jlabel label, visibility=local
\label:
.endm
.macro dlabel label, visibility=global
.\visibility \label
.type \label, @object
\label:
.endm
.macro enddlabel label
.size \label, . - \label
.endm
.macro nonmatching label, size=1
.global \label\().NON_MATCHING
.type \label\().NON_MATCHING, @object
.size \label\().NON_MATCHING, \size
\label\().NON_MATCHING:
.endm
# Float register aliases (o32 ABI)