]> granicus.if.org Git - clang/commitdiff
Testcase fixes to reflect instruction table changes in the LLVM backend
authorSean Callanan <scallanan@apple.com>
Fri, 18 Dec 2009 00:04:09 +0000 (00:04 +0000)
committerSean Callanan <scallanan@apple.com>
Fri, 18 Dec 2009 00:04:09 +0000 (00:04 +0000)
(http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20091214/092780.html)
The instruction fixes were checked and approved by Chris Lattner, but
these testcase fixes are mine; please yell at me if there are any
problems with either.

* PR5050-constructor-conversion.cpp
* array-construction.cpp
* constructor-conversion.cpp
* cast-conversion.cpp
* constructor-default-arg.cpp
* derived-to-base-conv.cpp
* ptr-to-member-function.cpp
* call-arg-zero-temp.cpp
* default-destructor-synthesis.cpp
* global-array-destruction.cpp
* array-operator-delete-call.cpp
* decl-ref-init.cpp
* default-constructor-for-members.cpp
* convert-to-fptr.cpp
* constructor-for-array-members.cpp
* conversion-function.cpp
* objc-read-weak-byref.m
Fixed testcase to reflect call qualifier

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91640 91177308-0d34-0410-b5e6-96231b3b80d8

17 files changed:
test/CodeGenCXX/PR5050-constructor-conversion.cpp
test/CodeGenCXX/array-construction.cpp
test/CodeGenCXX/array-operator-delete-call.cpp
test/CodeGenCXX/call-arg-zero-temp.cpp
test/CodeGenCXX/cast-conversion.cpp
test/CodeGenCXX/constructor-conversion.cpp
test/CodeGenCXX/constructor-default-arg.cpp
test/CodeGenCXX/constructor-for-array-members.cpp
test/CodeGenCXX/conversion-function.cpp
test/CodeGenCXX/convert-to-fptr.cpp
test/CodeGenCXX/decl-ref-init.cpp
test/CodeGenCXX/default-constructor-for-members.cpp
test/CodeGenCXX/default-destructor-synthesis.cpp
test/CodeGenCXX/derived-to-base-conv.cpp
test/CodeGenCXX/global-array-destruction.cpp
test/CodeGenCXX/ptr-to-member-function.cpp
test/CodeGenObjC/objc-read-weak-byref.m

index aa7165a1667067ce004a191ee8ff9202717e6330..9103b8321f843df67696c2188207b2f8c5671339 100644 (file)
@@ -11,7 +11,7 @@ A f(const B &b) {
   return b;
 }
 
-// CHECK-LP64: call     __ZN1AC1ERKS_i
+// CHECK-LP64: callq    __ZN1AC1ERKS_i
 
 // CHECK-LP32: call     L__ZN1AC1ERKS_i
 
index 12975fe4f078da5838cf553efda2ef1ca4f85244..ab46be72d87984ff75c264d9c12cc03f70acc065 100644 (file)
@@ -30,7 +30,7 @@ int main() {
               h, i, j, array[h][i][j].i, array[h][i][j].f);
 }
 
-// CHECK-LP64: call     __ZN4xptoC1Ev
+// CHECK-LP64: callq    __ZN4xptoC1Ev
 
 // CHECK-LP32: call     L__ZN4xptoC1Ev
 
index bef514a7be3ef3959b8bf569676bdde748c71b36..acb85d23b3d93ec73ae29abb86f93a562f1fbe79 100644 (file)
@@ -57,7 +57,7 @@ int main()
 }
 COST c2;
 
-// CHECK-LP64: call     __ZdaPv
+// CHECK-LP64: callq    __ZdaPv
 
 // CHECK-LP32: call     L__ZdaPv
 
index 7d99533fec5283f8f0232e63dbb92afe9f5fe144..ed8118e07d929bce8d223a21ce0668bee4113d85 100644 (file)
@@ -17,6 +17,6 @@ int main() {
   foo(obj());
 }
 
-// CHECK-LP64: call     __Z3foo3obj
+// CHECK-LP64: callq    __Z3foo3obj
 
 // CHECK-LP32: call     __Z3foo3obj
index ae43f19ee3be455a9e50cf06d124e76f4df8b378..6dc6de60184859bc44f64aafb2db453d315542f8 100644 (file)
@@ -17,12 +17,12 @@ int main () {
   static_cast<B>(10);
 }
 
-// CHECK-LP64: call     __ZN1AC1Ei
-// CHECK-LP64: call     __ZN1BC1E1A
-// CHECK-LP64: call     __ZN1AC1Ei
-// CHECK-LP64: call     __ZN1BC1E1A
-// CHECK-LP64: call     __ZN1AC1Ei
-// CHECK-LP64: call     __ZN1BC1E1A
+// CHECK-LP64: callq    __ZN1AC1Ei
+// CHECK-LP64: callq    __ZN1BC1E1A
+// CHECK-LP64: callq    __ZN1AC1Ei
+// CHECK-LP64: callq    __ZN1BC1E1A
+// CHECK-LP64: callq    __ZN1AC1Ei
+// CHECK-LP64: callq    __ZN1BC1E1A
 
 // CHECK-LP32: call     L__ZN1AC1Ei
 // CHECK-LP32: call     L__ZN1BC1E1A
index b680bca181fdf980f4fc2e9bff57ad0e69ec716c..f135da5e85db3fb86718caa941fd4061a9c11154 100644 (file)
@@ -45,9 +45,9 @@ int main() {
   g(3);           // g(X(3))
 }
 
-// CHECK-LP64: call     __ZN1XC1Ei
-// CHECK-LP64: call     __ZN1XC1EPKci
-// CHECK-LP64: call     __ZN1XC1Ev
+// CHECK-LP64: callq    __ZN1XC1Ei
+// CHECK-LP64: callq    __ZN1XC1EPKci
+// CHECK-LP64: callq    __ZN1XC1Ev
 
 // CHECK-LP32: call     L__ZN1XC1Ei
 // CHECK-LP32: call     L__ZN1XC1EPKci
index bf3106d065b25bfbc29dfb57a0c2a4d2b5088f0e..ec0b8da69b3de8349f91e2189901b3f60e32efcf 100644 (file)
@@ -30,9 +30,9 @@ int main() {
   X d(a, 5, 6);
 }
 
-// CHECK-LP64: call __ZN1XC1ERKS_iii
-// CHECK-LP64: call __ZN1XC1ERKS_iii
-// CHECK-LP64: call __ZN1XC1ERKS_iii
+// CHECK-LP64: callq __ZN1XC1ERKS_iii
+// CHECK-LP64: callq __ZN1XC1ERKS_iii
+// CHECK-LP64: callq __ZN1XC1ERKS_iii
 
 // CHECK-LP32: call L__ZN1XC1ERKS_iii
 // CHECK-LP32: call L__ZN1XC1ERKS_iii
index 3f16ba1ec81b23d242152fea4b644449bcc8728f..b981da497364161f3398df6ad0f906795c68e568 100644 (file)
@@ -38,6 +38,6 @@ int main() {
   m1.pr();
 }
 
-// CHECK-LP64: call __ZN1SC1Ev
+// CHECK-LP64: callq __ZN1SC1Ev
 
 // CHECK-LP32: call L__ZN1SC1Ev
index 9ba94a90268fbd990e16613b53ae4b647e513d17..ef45fc234242b03519f3e6910836300f58b0a3ec 100644 (file)
@@ -97,12 +97,12 @@ void f(Yb& a) {
 
 // CHECK-LP64: .globl __ZN1ScviEv
 // CHECK-LP64-NEXT: __ZN1ScviEv:
-// CHECK-LP64: call __ZN1Ycv1ZEv
-// CHECK-LP64: call __ZN1Zcv1XEv
-// CHECK-LP64: call __ZN1XcviEv
-// CHECK-LP64: call __ZN1XcvfEv
-// CHECK-LP64: call __ZN2XBcviEv
-// CHECK-LP64: call __ZN2YbcvcEv
+// CHECK-LP64: callq __ZN1Ycv1ZEv
+// CHECK-LP64: callq __ZN1Zcv1XEv
+// CHECK-LP64: callq __ZN1XcviEv
+// CHECK-LP64: callq __ZN1XcvfEv
+// CHECK-LP64: callq __ZN2XBcviEv
+// CHECK-LP64: callq __ZN2YbcvcEv
 
 // CHECK-LP32: .globl  __ZN1ScviEv
 // CHECK-LP32-NEXT: __ZN1ScviEv:
index 2812b0e002dced5219728644f6a7c525cf81efbc..dc49401af9295a3a8edb63e3ac7474946e2d7793 100644 (file)
@@ -38,8 +38,8 @@ int main()
  return 0;
 }
 
-// CHECK-LP64: call __ZN1AcvPFiiEEv
-// CHECK-LP64: call __ZN1BcvRFiiEEv
+// CHECK-LP64: callq __ZN1AcvPFiiEEv
+// CHECK-LP64: callq __ZN1BcvRFiiEEv
 
 // CHECK-LP32: call L__ZN1AcvPFiiEEv
 // CHECK-LP32: call L__ZN1BcvRFiiEEv
index 50ac49d8d2e15337617aa3b23760ed220909f803..c215b1b9be67980b21d0a5b5bfa0be5b3ad92d55 100644 (file)
@@ -23,8 +23,8 @@ int main() {
        const A& rca2 = d();
 }
 
-// CHECK-LP64: call     __ZN1BcvR1AEv
-// CHECK-LP64: call     __ZN1BcvR1AEv
+// CHECK-LP64: callq    __ZN1BcvR1AEv
+// CHECK-LP64: callq    __ZN1BcvR1AEv
 
 // CHECK-LP32: call     L__ZN1BcvR1AEv
 // CHECK-LP32: call     L__ZN1BcvR1AEv
index cbd119bd2246f39af292efa58981dfa7551c88fa..1f177460236c47a3120181ed80feb75e69eda085 100644 (file)
@@ -18,6 +18,6 @@ int main() {
   M m1;
 }
 
-// CHECK-LP64: call __ZN1SC1Ev
+// CHECK-LP64: callq __ZN1SC1Ev
 
 // CHECK-LP32: call L__ZN1SC1Ev
index 0c937bf8a6e77bc52ae551e4f65d682fd093fa70..098458d35d5c6486d51ecdba14213d4604f74dc3 100644 (file)
@@ -45,8 +45,8 @@ M gm;
 
 int main() {M m1;}
 
-// CHECK-LP64: call __ZN1MC1Ev
-// CHECK-LP64: call __ZN1MD1Ev
+// CHECK-LP64: callq __ZN1MC1Ev
+// CHECK-LP64: callq __ZN1MD1Ev
 // CHECK-LP64: .globl __ZN1MD1Ev
 // CHECK-LP64-NEXT: .weak_definition __ZN1MD1Ev
 // CHECK-LP64-NEXT: __ZN1MD1Ev:
index 0a29d45e723b0b1162364cf54ba6828051f6a6d9..c1a0caa7584f521e6dffcb207ad02c9f68c228d5 100644 (file)
@@ -65,12 +65,12 @@ void foo(Base) {}
 
 void test(Derived bb)
 {
-       // CHECK-LP64-NOT: call     __ZN4BasecvR7DerivedEv
-       // CHECK-LP32-NOT: call     L__ZN4BasecvR7DerivedEv
+       // CHECK-LP64-NOT: callq    __ZN4BasecvR7DerivedEv
+       // CHECK-LP32-NOT: callq    L__ZN4BasecvR7DerivedEv
         foo(bb);
 }
-// CHECK-LP64: call     __ZN1XcvR1BEv
-// CHECK-LP64: call     __ZN1AC1ERKS_
+// CHECK-LP64: callq    __ZN1XcvR1BEv
+// CHECK-LP64: callq    __ZN1AC1ERKS_
 
 // CHECK-LP32: call     L__ZN1XcvR1BEv
 // CHECK-LP32: call     L__ZN1AC1ERKS_
index 7b1566af8c48f81fdc32f1195d1d5284ad30b85a..c77551cb32d1fa6b52b719fefa561b1d4d49e3d8 100644 (file)
@@ -23,11 +23,11 @@ static S sarr1[4];
 S s2;
 S arr3[3];
 
-// CHECK-LP64: call     ___cxa_atexit
-// CHECK-LP64: call     ___cxa_atexit
-// CHECK-LP64: call     ___cxa_atexit
-// CHECK-LP64: call     ___cxa_atexit
-// CHECK-LP64: call     ___cxa_atexit
-// CHECK-LP64: call     ___cxa_atexit
-// CHECK-LP64: call     ___cxa_atexit
-// CHECK-LP64: call     ___cxa_atexit
+// CHECK-LP64: callq    ___cxa_atexit
+// CHECK-LP64: callq    ___cxa_atexit
+// CHECK-LP64: callq    ___cxa_atexit
+// CHECK-LP64: callq    ___cxa_atexit
+// CHECK-LP64: callq    ___cxa_atexit
+// CHECK-LP64: callq    ___cxa_atexit
+// CHECK-LP64: callq    ___cxa_atexit
+// CHECK-LP64: callq    ___cxa_atexit
index f6e5a2b5114a199c269bc632a268ab383c67e051..e3912fe9081c99642bc810084e0fcb2c398bfd14 100644 (file)
@@ -63,8 +63,8 @@ int main()
        B1 c = B1(2);
 }
 
-// CHECK-LP64: call    __ZN1XcvM1BFvvEEv
-// CHECK-LP64: call    __Z1gM1CFvvE
+// CHECK-LP64: callq   __ZN1XcvM1BFvvEEv
+// CHECK-LP64: callq   __Z1gM1CFvvE
 
 // CHECK-LP32: call    L__ZN1XcvM1BFvvEEv
 // CHECK-LP32: call    __Z1gM1CFvvE
index 62b1fb38383208ed1cd50ac7371f33f6196dffb1..1ddbcaffac6f7a2af50d02538eb651f114d60520 100644 (file)
@@ -18,8 +18,8 @@ int main() {
     return 0;
 }
 
-// CHECK-LP64: call     _objc_read_weak
-// CHECK-LP64: call     _objc_read_weak
+// CHECK-LP64: callq    _objc_read_weak
+// CHECK-LP64: callq    _objc_read_weak
 
 // CHECK-LP32: call     L_objc_read_weak
 // CHECK-LP32: call     L_objc_read_weak