mirror of
https://github.com/n64decomp/sm64.git
synced 2024-11-15 22:05:03 -05:00
87 lines
838 B
C
87 lines
838 B
C
// COMPILE-FLAGS: -O2
|
|
// COMPILE-ISET: -mips1
|
|
// exact copy of late_rodata_doubles.c except for the -mips1 -O2 additions
|
|
GLOBAL_ASM(
|
|
.late_rodata
|
|
.float 4.1
|
|
.text
|
|
glabel a
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
)
|
|
|
|
float foo(void) {
|
|
return 4.15f;
|
|
}
|
|
|
|
GLOBAL_ASM(
|
|
.late_rodata
|
|
.float 4.2
|
|
.word 0
|
|
.double 4.3
|
|
.text
|
|
glabel b
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
)
|
|
|
|
float bar(void) {
|
|
return 4.4f;
|
|
}
|
|
|
|
GLOBAL_ASM(
|
|
.late_rodata
|
|
.float 4.55
|
|
.double 4.6
|
|
.text
|
|
glabel c
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
nop
|
|
)
|
|
|
|
float baz(void) {
|
|
return 4.6f;
|
|
}
|