summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/integer-overflow.c
Commit message (Collapse)AuthorAgeFilesLines
* PR9350: increment/decrement of char (and anything else narrower than int)Eli Friedman2011-03-021-1/+7
| | | | | | can't overflow due to promotion rules; emit a wrapping add for those cases. llvm-svn: 126816
* -fwrapv should turn off the inbounds markers from geps used for pointerChris Lattner2011-03-011-0/+8
| | | | | | | arithmetic. This is part of PR9256, it would be great if someone else wired up -fno-strict-overflow in the driver to -fwrapv. llvm-svn: 126718
* Add a -ftrapv-handler= option which allows a handler to invoke instead of ↵David Chisnall2010-09-171-0/+7
| | | | | | simply aborting when a signed operation overflows. This mirrors the (GCC-incompatible) behaviour from clang 1.0 and 1.1 when -ftrapv was specified, but allows the handler to be defined for each compilation unit. llvm-svn: 114192
* fix inc/dec to honor -fwrapv and -ftrapv, implementing PR7426.Chris Lattner2010-06-261-5/+17
| | | | llvm-svn: 106962
* Fix unary minus to trap on overflow with -ftrapv, refactoring binopChris Lattner2010-06-261-1/+1
| | | | | | code so we can use it from VisitUnaryMinus. llvm-svn: 106957
* Implement support for -fwrapv, rdar://7221421Chris Lattner2010-06-261-0/+33
As part of this, pull together trapv handling into the same enum. This also add support for NSW multiplies. This also makes PCH disagreement on overflow behavior silent, since it really doesn't matter except for warnings and codegen (no macros get defined etc). llvm-svn: 106956
OpenPOWER on IntegriCloud