From 51924e517bd2d25faea6ef873db3c59ec4d09bf8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 26 Jun 2010 21:25:03 +0000 Subject: Implement support for -fwrapv, rdar://7221421 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 --- clang/test/CodeGen/exprs.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'clang/test/CodeGen/exprs.c') diff --git a/clang/test/CodeGen/exprs.c b/clang/test/CodeGen/exprs.c index a90ae58dc3f..d182ce81cab 100644 --- a/clang/test/CodeGen/exprs.c +++ b/clang/test/CodeGen/exprs.c @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s +// RUN: %clang_cc1 %s -emit-llvm -o - // PR1895 // sizeof function @@ -119,16 +119,3 @@ void f9(struct S *x) { void f10() { __builtin_sin(0); } - -// Tests for signed integer overflow stuff. -// rdar://7432000 -void f11() { - // CHECK: define void @f11 - extern volatile int f11G, a, b; - // CHECK: add nsw i32 - f11G = a + b; - // CHECK: sub nsw i32 - f11G = a - b; - // CHECK: sub nsw i32 0, - f11G = -a; -} -- cgit v1.2.3