[LLVMdev] signedess of operands
Duncan Sands
baldrick at free.fr
Wed Apr 13 07:52:21 PDT 2011
Hi Jonas,
> As my target supports signed / unsigned interpretation of operands, I was a bit
> startled to find that the LLVM I/R does not express this info of the integer
> operands. I want to create an eg unsigned mul if the operands are unsigned,
> using an intrinsic.
there is no difference between a signed and an unsigned multiplication: suppose
x and y are two signed integers, and X and Y are two unsigned integers with the
same bit pattern. Then x*y and X*Y have the same bit pattern.
Ciao, Duncan.
More information about the llvm-dev
mailing list