From: Chris Lattner Date: Thu, 17 Feb 2011 02:02:42 +0000 (+0000) Subject: update this test now that reassociate isn't stripping nsw's pointlessly. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45d246f9f60b86ca583da461dcfb28af314a7332;p=clang update this test now that reassociate isn't stripping nsw's pointlessly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125705 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGenObjC/exceptions.m b/test/CodeGenObjC/exceptions.m index b9d0093ea5..31805cb8df 100644 --- a/test/CodeGenObjC/exceptions.m +++ b/test/CodeGenObjC/exceptions.m @@ -56,7 +56,7 @@ int f2() { // If the optimizers ever figure out how to make this store 6, // that's okay. // CHECK: [[T1:%.*]] = load i32* [[X]] - // CHECK-NEXT: [[T2:%.*]] = add i32 [[T1]], 1 + // CHECK-NEXT: [[T2:%.*]] = add nsw i32 [[T1]], 1 // CHECK-NEXT: store i32 [[T2]], i32* [[X]] x++; // CHECK-NEXT: call void asm sideeffect "", "*m,*m"(i32* [[X]] @@ -69,7 +69,7 @@ int f2() { // CHECK: call void asm sideeffect "", "=*m,=*m"(i32* [[X]] // CHECK-NEXT: call i8* @objc_exception_extract // CHECK-NEXT: [[T1:%.*]] = load i32* [[X]] - // CHECK-NEXT: [[T2:%.*]] = add i32 [[T1]], -1 + // CHECK-NEXT: [[T2:%.*]] = add nsw i32 [[T1]], -1 // This store is dead. // CHECK-NEXT: store i32 [[T2]], i32* [[X]]