diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-26 21:48:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-26 21:48:21 +0000 |
commit | 9a20723df5904f2da9e4da14bf127366609b5cd8 (patch) | |
tree | 2579878aa92ae894f22bb9d03e9c19fc4da1e7a9 /test/CodeGen/integer-overflow.c | |
parent | a4d71455f0d418e16cc0c5c5aa55a3bad3494aee (diff) |
Fix unary minus to trap on overflow with -ftrapv, refactoring binop
code so we can use it from VisitUnaryMinus.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106957 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/integer-overflow.c')
-rw-r--r-- | test/CodeGen/integer-overflow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/integer-overflow.c b/test/CodeGen/integer-overflow.c index 7969216104..dea3d0a1a3 100644 --- a/test/CodeGen/integer-overflow.c +++ b/test/CodeGen/integer-overflow.c @@ -23,7 +23,7 @@ void test1() { // DEFAULT: sub nsw i32 0, // WRAPV: sub i32 0, - // TRAPV: sub nsw i32 0, + // TRAPV: llvm.ssub.with.overflow.i32 f11G = -a; // DEFAULT: mul nsw i32 |