Commit b0d1803a by Steve Ellcey Committed by Steve Ellcey

covariant1.C: Fix scan-assembler.

2010-11-08  Steve Ellcey  <sje@cup.hp.com>

	* gcc/testsuite/g++.dg/abi/covariant1.C: Fix scan-assembler.
	* gcc/testsuite/g++.dg/abi/covariant6.C: Ditto.

From-SVN: r166440
parent 6684c443
2010-11-08 Steve Ellcey <sje@cup.hp.com>
* gcc/testsuite/g++.dg/abi/covariant1.C: Fix scan-assembler.
* gcc/testsuite/g++.dg/abi/covariant6.C: Ditto.
2010-11-08 Kai Tietz <kai.tietz@onevision.com> 2010-11-08 Kai Tietz <kai.tietz@onevision.com>
PR target/28627 PR target/28627
......
...@@ -20,7 +20,7 @@ struct c14 : ...@@ -20,7 +20,7 @@ struct c14 :
void c14::f() { } 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-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" } } // { dg-final { scan-assembler-not "_ZTch0_v0_n32_N3c143f17Ev" } }
...@@ -16,10 +16,10 @@ struct C: B ...@@ -16,10 +16,10 @@ struct C: B
C* C::f() { return 0; } C* C::f() { return 0; }
// When we emit C::f, we should emit both thunks: one for B and one for A. // 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_n16_N1C1fEv" { target { ilp32 && { ! { ia64-*-hpux* } } } } } }
// { dg-final { scan-assembler "_ZTch0_v0_n32_N1C1fEv" { target lp64 } } } // { dg-final { scan-assembler "_ZTch0_v0_n32_N1C1fEv" { target { lp64 || { ia64-*-hpux* } } } } }
// { dg-final { scan-assembler "_ZTcv0_n12_v0_n16_N1C1fEv" { target ilp32 } } } // { dg-final { scan-assembler "_ZTcv0_n12_v0_n16_N1C1fEv" { target { ilp32 && { ! { ia64-*-hpux* } } } } } }
// { dg-final { scan-assembler "_ZTcv0_n24_v0_n32_N1C1fEv" { target lp64 } } } // { dg-final { scan-assembler "_ZTcv0_n24_v0_n32_N1C1fEv" { target { lp64 || { ia64-*-hpux* } } } } }
struct D: B struct D: B
{ {
...@@ -30,5 +30,5 @@ struct D: B ...@@ -30,5 +30,5 @@ struct D: B
void D::dummy() { } void D::dummy() { }
// When we emit the D vtable, it should refer to the thunk for B. // 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_n16_N1D1fEv" { target { ilp32 && { ! { ia64-*-hpux* } } } } } }
// { dg-final { scan-assembler "_ZTch0_v0_n32_N1D1fEv" { target lp64 } } } // { dg-final { scan-assembler "_ZTch0_v0_n32_N1D1fEv" { target { lp64 || { ia64-*-hpux* } } } } }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment