sm64/tools/asm-processor/tests/late_rodata_doubles_mips1.c
2023-08-17 08:56:02 -04:00

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;
}