Skip to contentSkip to conversation

why gcc 2.95.3 generate different result with option -mips2 and -mips3 for the same code

DISCUSSION glame 2 participants 2 messages Sep 14, 2004 MIPS

lore
Share & tools
lore

glame

author
#0 lore raw

hi,
when i disassemble the code, the result is as the following

-ffffffff80010b8c:  01001021    move    $v0,$t0  (-mips2)
+ffffffff80010b8c:  0100102d    move    $v0,$t0  (-mips3)

why?

best regards
        glame

#1 lore raw
Quoted 7 lines · glame

hi,
when i disassemble the code, the result is as the following

(quoted diff) +1 -1
-ffffffff80010b8c:  01001021    move    $v0,$t0  (-mips2)
+ffffffff80010b8c:  0100102d    move    $v0,$t0  (-mips3)

why?

Because you told it to do so. :-)
The 32bit move is "addu v0, $0, t0", the 64bit move "daddu ...".

Thiemo