.text .set noreorder #ifdef __sgi .ent incrementSequence #endif .globl incrementSequence /* MIPS n32/n64 ABI for both endians */ incrementSequence: move $2,$0 move $3,$0 daddiu $5, $0, 1 .loop: dsubu $4, $4, $5 #ifdef __sgi .repeat 64 #else .rept 64 #endif daddu $2, $2, $5 .endr bne $4,$0,.loop daddu $2, $2, $5 j $31 daddu $2, $2, $5 #ifdef __sgi .end incrementSequence #endif