aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/integer-overflow.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-06-26 21:48:21 +0000
committerChris Lattner <sabre@nondot.org>2010-06-26 21:48:21 +0000
commit0bf27620f0cd12ba436ae698645cce079611cfb2 (patch)
tree96d9b2d811f475095ff1b4dd06be7c96669cda48 /clang/test/CodeGen/integer-overflow.c
parent51924e517bd2d25faea6ef873db3c59ec4d09bf8 (diff)
downloadllvm-0bf27620f0cd12ba436ae698645cce079611cfb2.zip
llvm-0bf27620f0cd12ba436ae698645cce079611cfb2.tar.gz
llvm-0bf27620f0cd12ba436ae698645cce079611cfb2.tar.bz2
Fix unary minus to trap on overflow with -ftrapv, refactoring binop
code so we can use it from VisitUnaryMinus. llvm-svn: 106957
Diffstat (limited to 'clang/test/CodeGen/integer-overflow.c')
-rw-r--r--clang/test/CodeGen/integer-overflow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/CodeGen/integer-overflow.c b/clang/test/CodeGen/integer-overflow.c
index 7969216..dea3d0a 100644
--- a/clang/test/CodeGen/integer-overflow.c
+++ b/clang/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