[llvm-dev] Question regarding nuw and nsw (original) (raw)
via llvm-dev llvm-dev at lists.llvm.org
Sun Dec 2 07:30:21 PST 2018
- Previous message: [llvm-dev] SmallVector error in loop analysis pass
- Next message: [llvm-dev] Question regarding nuw and nsw
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
in the language reference some instructions have the following note : ´nuw and nsw stand for “No Unsigned Wrap” and “No Signed Wrap”, respectively. If the nuw and/or nsw keywords are present, the result value of the add is a poison value if unsigned and/or signed overflow, respectively, occurs.´
I understand how integer overflow works generally but i am not sure whats the difference between Unsigned and Signed Wrap. Could someone explain this ?
Thank you
- Previous message: [llvm-dev] SmallVector error in loop analysis pass
- Next message: [llvm-dev] Question regarding nuw and nsw
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]