CHAPTER 24. 64-BIT VALUES IN 32-BIT ENVIRONMENT CHAPTER 24. 64-BIT VALUES IN 32-BIT ENVIRONMENT
24.5.3 MIPS.
GCC for MIPS does the same as Keil did for ARM mode:
Listing 24.21: Optimizing GCC 4.4.5 (IDA)
f:
sra $v0, $a0, 31
jr $ra
move $v1, $a0
CHAPTER 24. 64-BIT VALUES IN 32-BIT ENVIRONMENT CHAPTER 24. 64-BIT VALUES IN 32-BIT ENVIRONMENT
GCC for MIPS does the same as Keil did for ARM mode:
Listing 24.21: Optimizing GCC 4.4.5 (IDA)
f:
sra $v0, $a0, 31
jr $ra
move $v1, $a0