diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2019-05-25 19:42:05 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2019-05-25 19:42:05 +0000 |
commit | 262fb6f113b547051cc4f8c6e66040477b47f21b (patch) | |
tree | 9938a40caa7f4cc314c323582364d5e618a09df8 /gcc | |
parent | 8bc49dbc4f896f2b5a39e8ce9effff78afcf7fde (diff) | |
download | gcc-262fb6f113b547051cc4f8c6e66040477b47f21b.zip gcc-262fb6f113b547051cc4f8c6e66040477b47f21b.tar.gz gcc-262fb6f113b547051cc4f8c6e66040477b47f21b.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr89261.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 708c698..14ba78b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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> + * gcc.target/i386/pr82659-3.c: Require alias support. 2019-05-25 Marek Polacek <polacek@redhat.com> diff --git a/gcc/testsuite/gcc.target/i386/pr89261.c b/gcc/testsuite/gcc.target/i386/pr89261.c index 63882c0..c5c4273 100644 --- a/gcc/testsuite/gcc.target/i386/pr89261.c +++ b/gcc/testsuite/gcc.target/i386/pr89261.c @@ -5,5 +5,6 @@ typedef double __v2df __attribute__ ((vector_size (16), aligned (1 << 28))); __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* } } } } */ |