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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to