(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
return b;
}
-// CHECK-LP64: call __ZN1AC1ERKS_i
+// CHECK-LP64: callq __ZN1AC1ERKS_i
// CHECK-LP32: call L__ZN1AC1ERKS_i
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
}
COST c2;
-// CHECK-LP64: call __ZdaPv
+// CHECK-LP64: callq __ZdaPv
// CHECK-LP32: call L__ZdaPv
foo(obj());
}
-// CHECK-LP64: call __Z3foo3obj
+// CHECK-LP64: callq __Z3foo3obj
// CHECK-LP32: call __Z3foo3obj
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
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
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
m1.pr();
}
-// CHECK-LP64: call __ZN1SC1Ev
+// CHECK-LP64: callq __ZN1SC1Ev
// CHECK-LP32: call L__ZN1SC1Ev
// 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:
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
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
M m1;
}
-// CHECK-LP64: call __ZN1SC1Ev
+// CHECK-LP64: callq __ZN1SC1Ev
// CHECK-LP32: call L__ZN1SC1Ev
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:
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_
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
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
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