]> granicus.if.org Git - clang/commitdiff
The optimizers figured out how to make this store 6.
authorNick Lewycky <nicholas@mxc.ca>
Tue, 15 Nov 2011 00:19:16 +0000 (00:19 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Tue, 15 Nov 2011 00:19:16 +0000 (00:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144597 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGenObjC/exceptions.m

index 2472869ff58b5b907dd7b603d8f5cc78a814cfa1..24fb6575e4403fd7d0eeff06531498f7726d2899 100644 (file)
@@ -53,11 +53,7 @@ int f2() {
   // CHECK-NEXT:   [[CAUGHT:%.*]] = icmp eq i32 [[SETJMP]], 0
   // CHECK-NEXT:   br i1 [[CAUGHT]]
   @try {
-    // If the optimizers ever figure out how to make this store 6,
-    // that's okay.
-    // CHECK:      [[T1:%.*]] = load i32* [[X]]
-    // CHECK-NEXT: [[T2:%.*]] = add nsw i32 [[T1]], 1
-    // CHECK-NEXT: store i32 [[T2]], i32* [[X]]
+    // CHECK: store i32 6, i32* [[X]]
     x++;
     // CHECK-NEXT: call void asm sideeffect "", "*m,*m"(i32* [[X]]
     // CHECK-NEXT: call void @foo()