diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-08-29 22:06:20 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-08-29 22:06:20 +0000 |
commit | a0389164113aea7920d479edb0d26d5bf8dc2b44 (patch) | |
tree | bdd4833d7d3787b58c23f0fc6a0206b3a2e71a55 /test/CodeGenCXX/microsoft-abi-virtual-member-pointers.cpp | |
parent | 2b60267fff66d46b1a934a4d575d0a8dc01b2e8b (diff) |
Fix my broken test cases.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@216791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGenCXX/microsoft-abi-virtual-member-pointers.cpp')
-rw-r--r-- | test/CodeGenCXX/microsoft-abi-virtual-member-pointers.cpp | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/test/CodeGenCXX/microsoft-abi-virtual-member-pointers.cpp b/test/CodeGenCXX/microsoft-abi-virtual-member-pointers.cpp index 1880f04576..b5db7c7881 100644 --- a/test/CodeGenCXX/microsoft-abi-virtual-member-pointers.cpp +++ b/test/CodeGenCXX/microsoft-abi-virtual-member-pointers.cpp @@ -18,7 +18,6 @@ struct C { virtual int bar(int, double); virtual S baz(int); virtual S qux(U); - virtual S __fastcall zed(U); }; namespace { @@ -44,9 +43,6 @@ void f() { S (C::*ptr5)(U); ptr5 = &C::qux; - S (__fastcall C::*ptr6)(U); - ptr6 = &C::zed; - // CHECK32-LABEL: define void @"\01?f@@YAXXZ"() // CHECK32: store i8* bitcast (void (%struct.C*, ...)* @"\01??_9C@@$BA@AE" to i8*), i8** %ptr @@ -66,7 +62,7 @@ void f() { // Thunk for calling the 1st virtual function in C with no parameters. // CHECK32-LABEL: define linkonce_odr x86_thiscallcc void @"\01??_9C@@$BA@AE"(%struct.C* %this, ...) -// CHECK32: unnamed_addr +// CHECK32-NOT: unnamed_addr // CHECK32: [[VPTR:%.*]] = getelementptr inbounds void (%struct.C*, ...)** %{{.*}}, i64 0 // CHECK32: [[CALLEE:%.*]] = load void (%struct.C*, ...)** [[VPTR]] // CHECK32: musttail call x86_thiscallcc void (%struct.C*, ...)* [[CALLEE]](%struct.C* %{{.*}}, ...) @@ -74,7 +70,7 @@ void f() { // CHECK32: } // // CHECK64-LABEL: define linkonce_odr void @"\01??_9C@@$BA@AA"(%struct.C* %this, ...) -// CHECK64: unnamed_addr +// CHECK64-NOT: unnamed_addr // CHECK64: [[VPTR:%.*]] = getelementptr inbounds void (%struct.C*, ...)** %{{.*}}, i64 0 // CHECK64: [[CALLEE:%.*]] = load void (%struct.C*, ...)** [[VPTR]] // CHECK64: musttail call void (%struct.C*, ...)* [[CALLEE]](%struct.C* %{{.*}}, ...) @@ -141,19 +137,3 @@ void f() { // CHECK64: musttail call void (%struct.C*, ...)* [[CALLEE]](%struct.C* %{{.*}}, ...) // CHECK64: ret void // CHECK64: } - -// Thunk for calling the fifth virtual function in C, taking a struct parameter -// and returning a struct. -// CHECK32-LABEL: define linkonce_odr x86_fastcallcc void @"\01??_9C@@$BBA@AE"(%struct.C* inreg %this, ...) -// CHECK32: [[VPTR:%.*]] = getelementptr inbounds void (%struct.C*, ...)** %{{.*}}, i64 4 -// CHECK32: [[CALLEE:%.*]] = load void (%struct.C*, ...)** [[VPTR]] -// CHECK32: musttail call x86_fastcallcc void (%struct.C*, ...)* [[CALLEE]](%struct.C* inreg %{{.*}}, ...) -// CHECK32-NEXT: ret void -// CHECK32: } -// -// CHECK64-LABEL: define linkonce_odr void @"\01??_9C@@$BCA@AA"(%struct.C* %this, ...) -// CHECK64: [[VPTR:%.*]] = getelementptr inbounds void (%struct.C*, ...)** %{{.*}}, i64 4 -// CHECK64: [[CALLEE:%.*]] = load void (%struct.C*, ...)** [[VPTR]] -// CHECK64: musttail call void (%struct.C*, ...)* [[CALLEE]](%struct.C* %{{.*}}, ...) -// CHECK64: ret void -// CHECK64: } |