Displaying 3 results from an estimated 3 matches for "mullu".
Did you mean:
mull
2012 Feb 23
1
[LLVMdev] Simple question on sign
...ExtType enum defined, and the use of zext and
sext to differentiate what containers the values are being loaded into in
the IR.
Basically I'm trying to describe patterns for automatically selecting
between various multiplication instructions:
#define MULL(t,s1,s2) t = (s1) * INT16(s2)
#define MULLU(t,s1,s2) t = (s1) * UINT16(s2)
#define MULH(t,s1,s2) t = (s1) * INT16((s2) >> 16)
#define MULHU(t,s1,s2) t = (s1) * UINT16((s2) >> 16)
#define MULHS(t,s1,s2) t = ((s1) * UINT16((s2) >> 16)) << 16
#define MULLL(t,s1,s2) t = INT16(s1) * INT16(s2)
#define MULLLU(t,s1,s2) t = U...
2012 Feb 23
0
[LLVMdev] Simple question on sign
Hi Sam,
I am not a MIPS expert by any means, so YMMV, but: MIPS addu only differs to
"add" in its (non)setting of the overflow flag. Because LLVM doesn't provide
a way via the IR to access the overflow flag, a special notation isn't
required in the IR to distinguish the two operations.
Do you have another example?
Cheers,
James
-----Original Message-----
From:
2012 Feb 23
2
[LLVMdev] Simple question on sign
Thanks for the replies guys but I think I should have phrased my question
better... looking at the Mips backend there are machine instructions that
operate on signed and unsigned data, such as add and addu. And like Mips, I
need to specify unsigned specific instructions, so how do these get chosen
between if the LLVM IR does not carry type data? A very general point in the
right direction is all i