From 9a20723df5904f2da9e4da14bf127366609b5cd8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 26 Jun 2010 21:48:21 +0000 Subject: 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 --- test/CodeGen/integer-overflow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/CodeGen/integer-overflow.c') 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 -- cgit v1.2.3-70-g09d2