[LLVMdev] 65bit integer math

Duncan Sands baldrick at free.fr
Wed Oct 14 01:32:15 PDT 2009


Villmow, Micah wrote:
> What does nsw nuw do?

It means it doesn't overflow whether considered signed or unsigned.  For
example, in i8 arithmetic, 255+1 overflows in the unsigned sense, while
127+1 overflows in the signed sense.  nsw nuw means neither of these
happens.

Ciao,

Duncan.



More information about the llvm-dev mailing list