[cfe-commits] r91640 - in /cfe/trunk/test: CodeGenCXX/ CodeGenObjC/
Chris Lattner
clattner at apple.com
Thu Dec 17 20:14:03 PST 2009
On Dec 17, 2009, at 4:04 PM, Sean Callanan wrote:
> Author: spyffe
> Date: Thu Dec 17 18:04:09 2009
> New Revision: 91640
>
> URL: http://llvm.org/viewvc/llvm-project?rev=91640&view=rev
> Log:
> 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.
Thanks Sean,
Incidentally, these are all tests that would be better checked by grepping LLVM IR than the generated .s file. It should be possible to run clang regtests without building the X86 backend.
-Chris
>
> * 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
>
> Modified:
> cfe/trunk/test/CodeGenCXX/PR5050-constructor-conversion.cpp
> cfe/trunk/test/CodeGenCXX/array-construction.cpp
> cfe/trunk/test/CodeGenCXX/array-operator-delete-call.cpp
> cfe/trunk/test/CodeGenCXX/call-arg-zero-temp.cpp
> cfe/trunk/test/CodeGenCXX/cast-conversion.cpp
> cfe/trunk/test/CodeGenCXX/constructor-conversion.cpp
> cfe/trunk/test/CodeGenCXX/constructor-default-arg.cpp
> cfe/trunk/test/CodeGenCXX/constructor-for-array-members.cpp
> cfe/trunk/test/CodeGenCXX/conversion-function.cpp
> cfe/trunk/test/CodeGenCXX/convert-to-fptr.cpp
> cfe/trunk/test/CodeGenCXX/decl-ref-init.cpp
> cfe/trunk/test/CodeGenCXX/default-constructor-for-members.cpp
> cfe/trunk/test/CodeGenCXX/default-destructor-synthesis.cpp
> cfe/trunk/test/CodeGenCXX/derived-to-base-conv.cpp
> cfe/trunk/test/CodeGenCXX/global-array-destruction.cpp
> cfe/trunk/test/CodeGenCXX/ptr-to-member-function.cpp
> cfe/trunk/test/CodeGenObjC/objc-read-weak-byref.m
>
> Modified: cfe/trunk/test/CodeGenCXX/PR5050-constructor-conversion.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/PR5050-constructor-conversion.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/PR5050-constructor-conversion.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/PR5050-constructor-conversion.cpp Thu Dec 17 18:04:09 2009
> @@ -11,7 +11,7 @@
> return b;
> }
>
> -// CHECK-LP64: call __ZN1AC1ERKS_i
> +// CHECK-LP64: callq __ZN1AC1ERKS_i
>
> // CHECK-LP32: call L__ZN1AC1ERKS_i
>
>
> Modified: cfe/trunk/test/CodeGenCXX/array-construction.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/array-construction.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/array-construction.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/array-construction.cpp Thu Dec 17 18:04:09 2009
> @@ -30,7 +30,7 @@
> 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
>
>
> Modified: cfe/trunk/test/CodeGenCXX/array-operator-delete-call.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/array-operator-delete-call.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/array-operator-delete-call.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/array-operator-delete-call.cpp Thu Dec 17 18:04:09 2009
> @@ -57,7 +57,7 @@
> }
> COST c2;
>
> -// CHECK-LP64: call __ZdaPv
> +// CHECK-LP64: callq __ZdaPv
>
> // CHECK-LP32: call L__ZdaPv
>
>
> Modified: cfe/trunk/test/CodeGenCXX/call-arg-zero-temp.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/call-arg-zero-temp.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/call-arg-zero-temp.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/call-arg-zero-temp.cpp Thu Dec 17 18:04:09 2009
> @@ -17,6 +17,6 @@
> foo(obj());
> }
>
> -// CHECK-LP64: call __Z3foo3obj
> +// CHECK-LP64: callq __Z3foo3obj
>
> // CHECK-LP32: call __Z3foo3obj
>
> Modified: cfe/trunk/test/CodeGenCXX/cast-conversion.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/cast-conversion.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/cast-conversion.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/cast-conversion.cpp Thu Dec 17 18:04:09 2009
> @@ -17,12 +17,12 @@
> 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
>
> Modified: cfe/trunk/test/CodeGenCXX/constructor-conversion.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/constructor-conversion.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/constructor-conversion.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/constructor-conversion.cpp Thu Dec 17 18:04:09 2009
> @@ -45,9 +45,9 @@
> 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
>
> Modified: cfe/trunk/test/CodeGenCXX/constructor-default-arg.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/constructor-default-arg.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/constructor-default-arg.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/constructor-default-arg.cpp Thu Dec 17 18:04:09 2009
> @@ -30,9 +30,9 @@
> 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
>
> Modified: cfe/trunk/test/CodeGenCXX/constructor-for-array-members.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/constructor-for-array-members.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/constructor-for-array-members.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/constructor-for-array-members.cpp Thu Dec 17 18:04:09 2009
> @@ -38,6 +38,6 @@
> m1.pr();
> }
>
> -// CHECK-LP64: call __ZN1SC1Ev
> +// CHECK-LP64: callq __ZN1SC1Ev
>
> // CHECK-LP32: call L__ZN1SC1Ev
>
> Modified: cfe/trunk/test/CodeGenCXX/conversion-function.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/conversion-function.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/conversion-function.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/conversion-function.cpp Thu Dec 17 18:04:09 2009
> @@ -97,12 +97,12 @@
>
> // 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:
>
> Modified: cfe/trunk/test/CodeGenCXX/convert-to-fptr.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/convert-to-fptr.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/convert-to-fptr.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/convert-to-fptr.cpp Thu Dec 17 18:04:09 2009
> @@ -38,8 +38,8 @@
> 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
>
> Modified: cfe/trunk/test/CodeGenCXX/decl-ref-init.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/decl-ref-init.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/decl-ref-init.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/decl-ref-init.cpp Thu Dec 17 18:04:09 2009
> @@ -23,8 +23,8 @@
> 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
>
> Modified: cfe/trunk/test/CodeGenCXX/default-constructor-for-members.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/default-constructor-for-members.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/default-constructor-for-members.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/default-constructor-for-members.cpp Thu Dec 17 18:04:09 2009
> @@ -18,6 +18,6 @@
> M m1;
> }
>
> -// CHECK-LP64: call __ZN1SC1Ev
> +// CHECK-LP64: callq __ZN1SC1Ev
>
> // CHECK-LP32: call L__ZN1SC1Ev
>
> Modified: cfe/trunk/test/CodeGenCXX/default-destructor-synthesis.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/default-destructor-synthesis.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/default-destructor-synthesis.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/default-destructor-synthesis.cpp Thu Dec 17 18:04:09 2009
> @@ -45,8 +45,8 @@
>
> 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:
>
> Modified: cfe/trunk/test/CodeGenCXX/derived-to-base-conv.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/derived-to-base-conv.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/derived-to-base-conv.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/derived-to-base-conv.cpp Thu Dec 17 18:04:09 2009
> @@ -65,12 +65,12 @@
>
> 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_
>
> Modified: cfe/trunk/test/CodeGenCXX/global-array-destruction.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/global-array-destruction.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/global-array-destruction.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/global-array-destruction.cpp Thu Dec 17 18:04:09 2009
> @@ -23,11 +23,11 @@
> 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
>
> Modified: cfe/trunk/test/CodeGenCXX/ptr-to-member-function.cpp
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/ptr-to-member-function.cpp?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenCXX/ptr-to-member-function.cpp (original)
> +++ cfe/trunk/test/CodeGenCXX/ptr-to-member-function.cpp Thu Dec 17 18:04:09 2009
> @@ -63,8 +63,8 @@
> 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
>
> Modified: cfe/trunk/test/CodeGenObjC/objc-read-weak-byref.m
> URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/objc-read-weak-byref.m?rev=91640&r1=91639&r2=91640&view=diff
>
> ==============================================================================
> --- cfe/trunk/test/CodeGenObjC/objc-read-weak-byref.m (original)
> +++ cfe/trunk/test/CodeGenObjC/objc-read-weak-byref.m Thu Dec 17 18:04:09 2009
> @@ -18,8 +18,8 @@
> 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
>
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
More information about the cfe-commits
mailing list