darwin, x86, testsuite - Check for an expected error on Darwin.

The test requests an alignment which exceeds the maximum object
file aligment for Darwin, rather than skipping it - test that we
see the expected error.

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

	* gcc.target/i386/pr89261.c: Test that the alignment required
	by the test correctly produces the expected error on Darwin.

From-SVN: r271622
This commit is contained in:
Iain Sandoe 2019-05-25 19:42:05 +00:00 committed by Iain Sandoe
parent 8bc49dbc4f
commit 262fb6f113
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2019-05-25 Iain Sandoe <iain@sandoe.co.uk>
* gcc.target/i386/pr89261.c: Test that the alignment required
by the test correctly produces the expected error on Darwin.
2019-05-25 Iain Sandoe <iain@sandoe.co.uk> 2019-05-25 Iain Sandoe <iain@sandoe.co.uk>
* gcc.target/i386/pr82659-3.c: Require alias support. * gcc.target/i386/pr82659-3.c: Require alias support.

View file

@ -5,5 +5,6 @@
typedef double __v2df __attribute__ ((vector_size (16), aligned (1 << 28))); typedef double __v2df __attribute__ ((vector_size (16), aligned (1 << 28)));
__v2df foo = { 1.0, 2.0 }; __v2df foo = { 1.0, 2.0 };
/* { dg-error {alignment of 'foo' is greater than maximum object file alignment 32768} "" { target *-*-darwin* } .-1 } */
/* { dg-final { scan-assembler "\.align\[ \t]+268435456" } } */ /* { dg-final { scan-assembler "\.align\[ \t]+268435456" { target { ! *-*-darwin* } } } } */