aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-02-17 02:02:42 +0000
committerChris Lattner <sabre@nondot.org>2011-02-17 02:02:42 +0000
commit45d246f9f60b86ca583da461dcfb28af314a7332 (patch)
treedde72a32017eddd81f18134c37380c226c29ede1
parent834945c19cfb87fc21dfb6980a0980618655d79d (diff)
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
-rw-r--r--test/CodeGenObjC/exceptions.m4
1 files changed, 2 insertions, 2 deletions
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]]