mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-26 21:06:18 +08:00
Darwin, c++, testsuite - adjust alignas4.C for Darwin's asm syntax.
Darwin produces aligned zerofill directives for the objects represented. We can scan for these using "lp64" and "ilp32" to catch operation on both X86 and PowerPC ports (the test is for the alignment which is the trailing value in the zerofill directive, as a power of two). gcc/testsuite/ChangeLog: 2019-06-06 Iain Sandoe <iain@sandoe.co.uk> * g++.dg/cpp0x/alignas4.C: Amend test to check for zerofill syntax on Darwin. From-SVN: r272018
This commit is contained in:
parent
34a4a9c2b5
commit
89ce70d636
@ -1,3 +1,8 @@
|
||||
2019-06-06 Iain Sandoe <iain@sandoe.co.uk>
|
||||
|
||||
* g++.dg/cpp0x/alignas4.C: Amend test to check for zerofill syntax
|
||||
on Darwin.
|
||||
|
||||
2019-06-06 Martin Jambor <mjambor@suse.cz>
|
||||
|
||||
* gcc.dg/tree-ssa/alias-access-path-1.c: Remove -fno-tree-sra option.
|
||||
|
@ -1,7 +1,13 @@
|
||||
// PR c++/59012
|
||||
// { dg-do compile { target c++11 } }
|
||||
// { dg-final { scan-assembler "align 8" { target { { i?86-*-* x86_64-*-* } && { { ! ia32 } && { ! *-*-darwin* } } } } } }
|
||||
// { dg-final { scan-assembler "align 4" { target ia32 } } }
|
||||
// { dg-final { scan-assembler "align 4" { target { ia32 && { ! *-*-darwin* } } } } }
|
||||
|
||||
// Darwin produces aligned .zerofill directives for these.
|
||||
// { dg-final { scan-assembler {zerofill[^\n\r]+_a,4,2} { target { ilp32 && *-*-darwin* } } } }
|
||||
// { dg-final { scan-assembler {zerofill[^\n\r]+_a,8,3} { target { lp64 && *-*-darwin* } } } }
|
||||
// { dg-final { scan-assembler {zerofill[^\n\r]+_a2,4,2} { target { ilp32 && *-*-darwin* } } } }
|
||||
// { dg-final { scan-assembler {zerofill[^\n\r]+_a2,8,3} { target { lp64 && *-*-darwin* } } } }
|
||||
|
||||
template <class... T>
|
||||
struct A
|
||||
|
Loading…
Reference in New Issue
Block a user