[cfe-commits] r125705 - /cfe/trunk/test/CodeGenObjC/exceptions.m

Chris Lattner sabre at nondot.org
Wed Feb 16 18:02:43 PST 2011


Author: lattner
Date: Wed Feb 16 20:02:42 2011
New Revision: 125705

URL: http://llvm.org/viewvc/llvm-project?rev=125705&view=rev
Log:
update this test now that reassociate isn't stripping nsw's pointlessly.

Modified:
    cfe/trunk/test/CodeGenObjC/exceptions.m

Modified: cfe/trunk/test/CodeGenObjC/exceptions.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/exceptions.m?rev=125705&r1=125704&r2=125705&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenObjC/exceptions.m (original)
+++ cfe/trunk/test/CodeGenObjC/exceptions.m Wed Feb 16 20:02:42 2011
@@ -56,7 +56,7 @@
     // 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 @@
     // 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]]





More information about the cfe-commits mailing list