From: Steve Ellcey Date: Mon, 8 Nov 2010 16:37:36 +0000 (+0000) Subject: covariant1.C: Fix scan-assembler. X-Git-Tag: releases/gcc-4.6.0~2828 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0d1803aff339e17bba2464ef72e7f7c1979f70b;p=thirdparty%2Fgcc.git covariant1.C: Fix scan-assembler. 2010-11-08 Steve Ellcey * gcc/testsuite/g++.dg/abi/covariant1.C: Fix scan-assembler. * gcc/testsuite/g++.dg/abi/covariant6.C: Ditto. From-SVN: r166440 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3cbb7a9c7c56..30e0dad1da2d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-11-08 Steve Ellcey + + * gcc/testsuite/g++.dg/abi/covariant1.C: Fix scan-assembler. + * gcc/testsuite/g++.dg/abi/covariant6.C: Ditto. + 2010-11-08 Kai Tietz PR target/28627 diff --git a/gcc/testsuite/g++.dg/abi/covariant1.C b/gcc/testsuite/g++.dg/abi/covariant1.C index ae8c5e603da7..97737ddb94ce 100644 --- a/gcc/testsuite/g++.dg/abi/covariant1.C +++ b/gcc/testsuite/g++.dg/abi/covariant1.C @@ -20,7 +20,7 @@ struct c14 : void c14::f() { } -// { dg-final { scan-assembler "_ZTcv0_n12_v0_n16_N3c143f17Ev" { target ilp32 } } } +// { dg-final { scan-assembler "_ZTcv0_n12_v0_n16_N3c143f17Ev" { target { ilp32 && { ! { ia64-*-hpux* } } } } } } // { dg-final { scan-assembler-not "_ZTch0_v0_n16_N3c143f17Ev" } } -// { dg-final { scan-assembler "_ZTcv0_n24_v0_n32_N3c143f17Ev" { target lp64 } } } +// { dg-final { scan-assembler "_ZTcv0_n24_v0_n32_N3c143f17Ev" { target { lp64 || { ia64-*-hpux* } } } } } // { dg-final { scan-assembler-not "_ZTch0_v0_n32_N3c143f17Ev" } } diff --git a/gcc/testsuite/g++.dg/abi/covariant6.C b/gcc/testsuite/g++.dg/abi/covariant6.C index 9dfc5ba74ab9..143b4ad36cbb 100644 --- a/gcc/testsuite/g++.dg/abi/covariant6.C +++ b/gcc/testsuite/g++.dg/abi/covariant6.C @@ -16,10 +16,10 @@ struct C: B C* C::f() { return 0; } // When we emit C::f, we should emit both thunks: one for B and one for A. -// { dg-final { scan-assembler "_ZTch0_v0_n16_N1C1fEv" { target ilp32 } } } -// { dg-final { scan-assembler "_ZTch0_v0_n32_N1C1fEv" { target lp64 } } } -// { dg-final { scan-assembler "_ZTcv0_n12_v0_n16_N1C1fEv" { target ilp32 } } } -// { dg-final { scan-assembler "_ZTcv0_n24_v0_n32_N1C1fEv" { target lp64 } } } +// { dg-final { scan-assembler "_ZTch0_v0_n16_N1C1fEv" { target { ilp32 && { ! { ia64-*-hpux* } } } } } } +// { dg-final { scan-assembler "_ZTch0_v0_n32_N1C1fEv" { target { lp64 || { ia64-*-hpux* } } } } } +// { dg-final { scan-assembler "_ZTcv0_n12_v0_n16_N1C1fEv" { target { ilp32 && { ! { ia64-*-hpux* } } } } } } +// { dg-final { scan-assembler "_ZTcv0_n24_v0_n32_N1C1fEv" { target { lp64 || { ia64-*-hpux* } } } } } struct D: B { @@ -30,5 +30,5 @@ struct D: B void D::dummy() { } // When we emit the D vtable, it should refer to the thunk for B. -// { dg-final { scan-assembler "_ZTch0_v0_n16_N1D1fEv" { target ilp32 } } } -// { dg-final { scan-assembler "_ZTch0_v0_n32_N1D1fEv" { target lp64 } } } +// { dg-final { scan-assembler "_ZTch0_v0_n16_N1D1fEv" { target { ilp32 && { ! { ia64-*-hpux* } } } } } } +// { dg-final { scan-assembler "_ZTch0_v0_n32_N1D1fEv" { target { lp64 || { ia64-*-hpux* } } } } }