[LLVMbugs] [Bug 6192] New: [mips] wrong instruction selection for multiplication

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jan 31 18:45:03 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6192

           Summary: [mips] wrong instruction selection for multiplication
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: ASSIGNED
          Keywords: miscompilation
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: bruno.cardoso at gmail.com
        ReportedBy: zhou_shuchang at sina.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4155)
 --> (http://llvm.org/bugs/attachment.cgi?id=4155)
wrong instruction selection for multiplication

In assembly generated for following file
#include<stdio.h>
int main(){
        int i;
        scanf("%d",&i);
        printf("i*i=%d\n",i*i);
        return 0;       
}

we see instruction sequence below generated
        mult    $2, $2
        mfhi    $2
        ~~~~ should be mflo


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list