r175053 - Fix the microsoft-abi-structors test expectations to match both Release and Release+Asserts builds

Timur Iskhodzhanov timurrrr at google.com
Wed Feb 13 04:14:25 PST 2013


Author: timurrrr
Date: Wed Feb 13 06:14:25 2013
New Revision: 175053

URL: http://llvm.org/viewvc/llvm-project?rev=175053&view=rev
Log:
Fix the microsoft-abi-structors test expectations to match both Release and Release+Asserts builds

Modified:
    cfe/trunk/test/CodeGenCXX/microsoft-abi-structors.cpp

Modified: cfe/trunk/test/CodeGenCXX/microsoft-abi-structors.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/microsoft-abi-structors.cpp?rev=175053&r1=175052&r2=175053&view=diff
==============================================================================
--- cfe/trunk/test/CodeGenCXX/microsoft-abi-structors.cpp (original)
+++ cfe/trunk/test/CodeGenCXX/microsoft-abi-structors.cpp Wed Feb 13 06:14:25 2013
@@ -30,16 +30,22 @@ struct B {
   virtual ~B() {
 // Complete destructor first:
 // DTORS: define {{.*}} x86_thiscallcc void @"\01??1B@@UAE at XZ"(%struct.B* %this)
-//
+
 // Then, the scalar deleting destructor (used in the vtable):
 // DTORS:      define {{.*}} x86_thiscallcc void @"\01??_GB@@UAEPAXI at Z"(%struct.B* %this, i1 zeroext %should_call_delete)
-// DTORS:        %0 = icmp eq i8 %should_call_delete{{.*}}, 0
-// DTORS-NEXT:   br i1 %0, label %dtor.continue, label %dtor.call_delete
-// DTORS:      dtor.call_delete:
-// DTORS-NEXT:   %1 = bitcast %struct.B* %this1 to i8*
-// DTORS-NEXT:   call void @"\01??3 at YAXPAX@Z"(i8* %1) nounwind
-// DTORS-NEXT:   br label %dtor.continue
-// DTORS:      dtor.continue:
+// DTORS:        %[[FROMBOOL:[0-9a-z]+]] = zext i1 %should_call_delete to i8
+// DTORS-NEXT:   store i8 %[[FROMBOOL]], i8* %[[SHOULD_DELETE_VAR:[0-9a-z]+]], align 1
+// DTORS:        %[[SHOULD_DELETE_VALUE:[0-9a-z]+]] = load i8* %[[SHOULD_DELETE_VAR]]
+// DTORS:        call x86_thiscallcc void @"\01??1B@@UAE at XZ"(%struct.B* %[[THIS:[0-9a-z]+]])
+// DTORS-NEXT:   %[[CONDITION:[0-9]+]] = icmp eq i8 %[[SHOULD_DELETE_VALUE]], 0
+// DTORS-NEXT:   br i1 %[[CONDITION]], label %[[CONTINUE_LABEL:[0-9a-z._]+]], label %[[CALL_DELETE_LABEL:[0-9a-z._]+]]
+//
+// DTORS:      [[CALL_DELETE_LABEL]]
+// DTORS-NEXT:   %[[THIS_AS_VOID:[0-9a-z]+]] = bitcast %struct.B* %[[THIS]] to i8*
+// DTORS-NEXT:   call void @"\01??3 at YAXPAX@Z"(i8* %[[THIS_AS_VOID]]) nounwind
+// DTORS-NEXT:   br label %[[CONTINUE_LABEL]]
+//
+// DTORS:      [[CONTINUE_LABEL]]
 // DTORS-NEXT:   ret void
   }
   virtual void foo();





More information about the cfe-commits mailing list