summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2009-12-18 00:04:09 +0000
committerSean Callanan <scallanan@apple.com>2009-12-18 00:04:09 +0000
commit12ca3f46d871daec9d05fc15d29432c3cea96b75 (patch)
tree85accf6c9ae75871c3b7ebe450cdee64e7e6bfdf
parentdcdd3a54774632a6a6b7670b0ece03ec6b2cbd4e (diff)
downloadbcm5719-llvm-12ca3f46d871daec9d05fc15d29432c3cea96b75.tar.gz
bcm5719-llvm-12ca3f46d871daec9d05fc15d29432c3cea96b75.zip
Testcase fixes to reflect instruction table changes in the LLVM backend
(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 llvm-svn: 91640
-rw-r--r--clang/test/CodeGenCXX/PR5050-constructor-conversion.cpp2
-rw-r--r--clang/test/CodeGenCXX/array-construction.cpp2
-rw-r--r--clang/test/CodeGenCXX/array-operator-delete-call.cpp2
-rw-r--r--clang/test/CodeGenCXX/call-arg-zero-temp.cpp2
-rw-r--r--clang/test/CodeGenCXX/cast-conversion.cpp12
-rw-r--r--clang/test/CodeGenCXX/constructor-conversion.cpp6
-rw-r--r--clang/test/CodeGenCXX/constructor-default-arg.cpp6
-rw-r--r--clang/test/CodeGenCXX/constructor-for-array-members.cpp2
-rw-r--r--clang/test/CodeGenCXX/conversion-function.cpp12
-rw-r--r--clang/test/CodeGenCXX/convert-to-fptr.cpp4
-rw-r--r--clang/test/CodeGenCXX/decl-ref-init.cpp4
-rw-r--r--clang/test/CodeGenCXX/default-constructor-for-members.cpp2
-rw-r--r--clang/test/CodeGenCXX/default-destructor-synthesis.cpp4
-rw-r--r--clang/test/CodeGenCXX/derived-to-base-conv.cpp8
-rw-r--r--clang/test/CodeGenCXX/global-array-destruction.cpp16
-rw-r--r--clang/test/CodeGenCXX/ptr-to-member-function.cpp4
-rw-r--r--clang/test/CodeGenObjC/objc-read-weak-byref.m4
17 files changed, 46 insertions, 46 deletions
diff --git a/clang/test/CodeGenCXX/PR5050-constructor-conversion.cpp b/clang/test/CodeGenCXX/PR5050-constructor-conversion.cpp
index aa7165a1667..9103b8321f8 100644
--- a/clang/test/CodeGenCXX/PR5050-constructor-conversion.cpp
+++ b/clang/test/CodeGenCXX/PR5050-constructor-conversion.cpp
@@ -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
diff --git a/clang/test/CodeGenCXX/array-construction.cpp b/clang/test/CodeGenCXX/array-construction.cpp
index 12975fe4f07..ab46be72d87 100644
--- a/clang/test/CodeGenCXX/array-construction.cpp
+++ b/clang/test/CodeGenCXX/array-construction.cpp
@@ -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
diff --git a/clang/test/CodeGenCXX/array-operator-delete-call.cpp b/clang/test/CodeGenCXX/array-operator-delete-call.cpp
index bef514a7be3..acb85d23b3d 100644
--- a/clang/test/CodeGenCXX/array-operator-delete-call.cpp
+++ b/clang/test/CodeGenCXX/array-operator-delete-call.cpp
@@ -57,7 +57,7 @@ int main()
}
COST c2;
-// CHECK-LP64: call __ZdaPv
+// CHECK-LP64: callq __ZdaPv
// CHECK-LP32: call L__ZdaPv
diff --git a/clang/test/CodeGenCXX/call-arg-zero-temp.cpp b/clang/test/CodeGenCXX/call-arg-zero-temp.cpp
index 7d99533fec5..ed8118e07d9 100644
--- a/clang/test/CodeGenCXX/call-arg-zero-temp.cpp
+++ b/clang/test/CodeGenCXX/call-arg-zero-temp.cpp
@@ -17,6 +17,6 @@ int main() {
foo(obj());
}
-// CHECK-LP64: call __Z3foo3obj
+// CHECK-LP64: callq __Z3foo3obj
// CHECK-LP32: call __Z3foo3obj
diff --git a/clang/test/CodeGenCXX/cast-conversion.cpp b/clang/test/CodeGenCXX/cast-conversion.cpp
index ae43f19ee3b..6dc6de60184 100644
--- a/clang/test/CodeGenCXX/cast-conversion.cpp
+++ b/clang/test/CodeGenCXX/cast-conversion.cpp
@@ -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
diff --git a/clang/test/CodeGenCXX/constructor-conversion.cpp b/clang/test/CodeGenCXX/constructor-conversion.cpp
index b680bca181f..f135da5e85d 100644
--- a/clang/test/CodeGenCXX/constructor-conversion.cpp
+++ b/clang/test/CodeGenCXX/constructor-conversion.cpp
@@ -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
diff --git a/clang/test/CodeGenCXX/constructor-default-arg.cpp b/clang/test/CodeGenCXX/constructor-default-arg.cpp
index bf3106d065b..ec0b8da69b3 100644
--- a/clang/test/CodeGenCXX/constructor-default-arg.cpp
+++ b/clang/test/CodeGenCXX/constructor-default-arg.cpp
@@ -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
diff --git a/clang/test/CodeGenCXX/constructor-for-array-members.cpp b/clang/test/CodeGenCXX/constructor-for-array-members.cpp
index 3f16ba1ec81..b981da49736 100644
--- a/clang/test/CodeGenCXX/constructor-for-array-members.cpp
+++ b/clang/test/CodeGenCXX/constructor-for-array-members.cpp
@@ -38,6 +38,6 @@ int main() {
m1.pr();
}
-// CHECK-LP64: call __ZN1SC1Ev
+// CHECK-LP64: callq __ZN1SC1Ev
// CHECK-LP32: call L__ZN1SC1Ev
diff --git a/clang/test/CodeGenCXX/conversion-function.cpp b/clang/test/CodeGenCXX/conversion-function.cpp
index 9ba94a90268..ef45fc23424 100644
--- a/clang/test/CodeGenCXX/conversion-function.cpp
+++ b/clang/test/CodeGenCXX/conversion-function.cpp
@@ -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:
diff --git a/clang/test/CodeGenCXX/convert-to-fptr.cpp b/clang/test/CodeGenCXX/convert-to-fptr.cpp
index 2812b0e002d..dc49401af92 100644
--- a/clang/test/CodeGenCXX/convert-to-fptr.cpp
+++ b/clang/test/CodeGenCXX/convert-to-fptr.cpp
@@ -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
diff --git a/clang/test/CodeGenCXX/decl-ref-init.cpp b/clang/test/CodeGenCXX/decl-ref-init.cpp
index 50ac49d8d2e..c215b1b9be6 100644
--- a/clang/test/CodeGenCXX/decl-ref-init.cpp
+++ b/clang/test/CodeGenCXX/decl-ref-init.cpp
@@ -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
diff --git a/clang/test/CodeGenCXX/default-constructor-for-members.cpp b/clang/test/CodeGenCXX/default-constructor-for-members.cpp
index cbd119bd224..1f177460236 100644
--- a/clang/test/CodeGenCXX/default-constructor-for-members.cpp
+++ b/clang/test/CodeGenCXX/default-constructor-for-members.cpp
@@ -18,6 +18,6 @@ int main() {
M m1;
}
-// CHECK-LP64: call __ZN1SC1Ev
+// CHECK-LP64: callq __ZN1SC1Ev
// CHECK-LP32: call L__ZN1SC1Ev
diff --git a/clang/test/CodeGenCXX/default-destructor-synthesis.cpp b/clang/test/CodeGenCXX/default-destructor-synthesis.cpp
index 0c937bf8a6e..098458d35d5 100644
--- a/clang/test/CodeGenCXX/default-destructor-synthesis.cpp
+++ b/clang/test/CodeGenCXX/default-destructor-synthesis.cpp
@@ -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:
diff --git a/clang/test/CodeGenCXX/derived-to-base-conv.cpp b/clang/test/CodeGenCXX/derived-to-base-conv.cpp
index 0a29d45e723..c1a0caa7584 100644
--- a/clang/test/CodeGenCXX/derived-to-base-conv.cpp
+++ b/clang/test/CodeGenCXX/derived-to-base-conv.cpp
@@ -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_
diff --git a/clang/test/CodeGenCXX/global-array-destruction.cpp b/clang/test/CodeGenCXX/global-array-destruction.cpp
index 7b1566af8c4..c77551cb32d 100644
--- a/clang/test/CodeGenCXX/global-array-destruction.cpp
+++ b/clang/test/CodeGenCXX/global-array-destruction.cpp
@@ -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
diff --git a/clang/test/CodeGenCXX/ptr-to-member-function.cpp b/clang/test/CodeGenCXX/ptr-to-member-function.cpp
index f6e5a2b5114..e3912fe9081 100644
--- a/clang/test/CodeGenCXX/ptr-to-member-function.cpp
+++ b/clang/test/CodeGenCXX/ptr-to-member-function.cpp
@@ -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
diff --git a/clang/test/CodeGenObjC/objc-read-weak-byref.m b/clang/test/CodeGenObjC/objc-read-weak-byref.m
index 62b1fb38383..1ddbcaffac6 100644
--- a/clang/test/CodeGenObjC/objc-read-weak-byref.m
+++ b/clang/test/CodeGenObjC/objc-read-weak-byref.m
@@ -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
OpenPOWER on IntegriCloud