[LLVMdev] 65bit integer math

Duncan Sands baldrick at free.fr
Wed Oct 14 03:32:15 CDT 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 LLVMdev mailing list