This is the mail archive of the
mailing list for the GCC project.
why mult generated for unsigned int multiply on mips?
- From: "Amker.Cheng" <amker dot cheng at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 7 Apr 2010 14:45:55 +0800
- Subject: why mult generated for unsigned int multiply on mips?
I noticed that on mips, the signed form instruction of multiply is
unsigned integer multiply operation.
for example, mult is used, rather than multu for following codes:
unsigned int x, y, z;
x = y * z;
Is it reasonable to do so? Thanks.