mirror of
https://github.com/n64decomp/sm64.git
synced 2024-11-16 06:15:11 -05:00
29 lines
423 B
C
29 lines
423 B
C
// COMPILE-FLAGS: -O0
|
|
|
|
int a(void) { return 1; }
|
|
GLOBAL_ASM(
|
|
glabel foo
|
|
addiu $a0, $a0, 1
|
|
addiu $a0, $a0, 2
|
|
addiu $a0, $a0, 3
|
|
jr $ra
|
|
addiu $a0, $a0, 4
|
|
)
|
|
float b(void) { return 1.2f; }
|
|
GLOBAL_ASM(
|
|
.late_rodata
|
|
glabel float1
|
|
.float 12.34
|
|
|
|
.text
|
|
glabel bar
|
|
addiu $a0, $a0, 5
|
|
addiu $a0, $a0, 6
|
|
addiu $a0, $a0, 7
|
|
addiu $a0, $a0, 8
|
|
lui $v0, %hi(float1 + 1)
|
|
jr $ra
|
|
addiu $v0, $v0, %lo(float1 + 1)
|
|
)
|
|
float c(void) { return 1.3f; }
|