Darwin, x86, testsuite - adjust tests for Darwin's align syntax.

Darwin has a .align taking a power of 2 by default, so that some
tests expecting a byte count are failing, fixed thus.

gcc/testsuite/

2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>

	* gcc.target/i386/falign-functions-3.c: Adjust align syntax
	and label for Darwin.
	* gcc.target/i386/attr-aligned-2.c: Adjust align syntax for
	Darwin.

From-SVN: r271800
This commit is contained in:
Iain Sandoe 2019-05-31 07:17:11 +00:00 committed by Iain Sandoe
parent eb11a55268
commit 4ef2ef0c03
3 changed files with 14 additions and 6 deletions

View file

@ -1,3 +1,10 @@
2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
* gcc.target/i386/falign-functions-3.c: Adjust align syntax
and label for Darwin.
* gcc.target/i386/attr-aligned-2.c: Adjust align syntax for
Darwin.
2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
* gcc.target/aarch64/sve/fabd_1.c: New.

View file

@ -14,8 +14,8 @@ void f4 (void);
ALIGN (4)
void f4 (void) { }
/* { dg-final { scan-assembler ".align 4\n\t.globl\tf4" } } */
/* { dg-final { scan-assembler ".align 4\n\t.globl\tf4" { target { ! *-*-darwin* } } } } */
/* { dg-final { scan-assembler {.align[ \t]2,0x90\n\t.globl[ \t]_f4} { target *-*-darwin* } } } */
void g (void) { }

View file

@ -9,15 +9,16 @@
ALIGN (4)
void f4 (void) { }
/* { dg-final { scan-assembler ".align 4\n\t.globl\tf4" } } */
/* { dg-final { scan-assembler ".align 4\n\t.globl\tf4" { target { ! *-*-darwin* } } } } */
/* { dg-final { scan-assembler {.align 2,0x90\n\t.globl[ \t]_f4} { target *-*-darwin* } } } */
void f32 (void) { }
/* { dg-final { scan-assembler ".p2align 5\n\t.globl\tf32" } } */
/* { dg-final { scan-assembler {.p2align 5\n\t.globl[ \t]_?f32} } } */
ALIGN (64)
void f64 (void) { }
/* { dg-final { scan-assembler ".align 64\n\t.globl\tf64" } } */
/* { dg-final { scan-assembler ".align 64\n\t.globl\tf64" { target { ! *-*-darwin* } } } } */
/* { dg-final { scan-assembler {.align 6,0x90\n\t.globl[ \t]_f64} { target *-*-darwin* } } } */