From 043488129fa55b02a25ff1d54603397c164c4c06 Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 11 Aug 2010 02:06:44 +0000 Subject: [PATCH] Make this test a little less dependent on exact optimizer results. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110770 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/CodeGenObjC/exceptions.m | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/CodeGenObjC/exceptions.m b/test/CodeGenObjC/exceptions.m index f8292dc7f1..b431e37124 100644 --- a/test/CodeGenObjC/exceptions.m +++ b/test/CodeGenObjC/exceptions.m @@ -119,14 +119,14 @@ void f3() { // duplicating the finally block. while (x) f3_helper(3, &x); - // It's okay for this to turn into a test against 0. - // CHECK: icmp eq i32 [[DEST2]], 5 - // CHECK: br i1 + // This is a switch or maybe some chained branches, but relying + // on a specific result from the optimizer is really unstable. + // CHECK: [[DEST2]] } - // It's okay for this to turn into a test against 0. - // CHECK: icmp eq i32 [[DEST1]], 3 - // CHECK: br i1 + // This is a switch or maybe some chained branches, but relying + // on a specific result from the optimizer is really unstable. + // CHECK: [[DEST1]] } // CHECK: call void @f3_helper(i32 4, i32* [[X]]) -- 2.40.0