diff options
author | Toma Tabacu <toma.tabacu@imgtec.com> | 2016-12-23 09:52:43 +0000 |
---|---|---|
committer | Toma Tabacu <tomtab@gcc.gnu.org> | 2016-12-23 09:52:43 +0000 |
commit | cca8d0b26549b5f3813178443a3a600aef104181 (patch) | |
tree | 9d3e31683bf74b8739bd14e38fde71879c22332d /gcc | |
parent | 1693722010e4b1f947356279fefc90112eb23716 (diff) | |
download | gcc-cca8d0b26549b5f3813178443a3a600aef104181.zip gcc-cca8d0b26549b5f3813178443a3a600aef104181.tar.gz gcc-cca8d0b26549b5f3813178443a3a600aef104181.tar.bz2 |
MIPS: Cleanup the forcing of assembly output in error tests.
gcc/testsuite
* gcc.target/mips/oddspreg-2.c (dg-options): Remove dg-skip-if for
-fno-fat-lto-objects and add the -ffat-lto-objects option, along with
an explanation for its purpose.
* gcc.target/mips/oddspreg-3.c (dg-options): Likewise.
* gcc.target/mips/oddspreg-6.c (dg-options): Likewise.
* gcc.target/mips/no-dsp-1.c: Add an explanation for the purpose of
-ffat-lto-objects.
* gcc.target/mips/pr54240.c: Likewise.
* gcc.target/mips/r10k-cache-barrier-14.c: Likewise.
* gcc.target/mips/soft-float-1.c: Likewise.
From-SVN: r243908
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 13 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/no-dsp-1.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/oddspreg-2.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/oddspreg-3.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/oddspreg-6.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/pr54240.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/r10k-cache-barrier-14.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/soft-float-1.c | 3 |
8 files changed, 37 insertions, 6 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index c8b5544..f208f08 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,16 @@ +2016-12-23 Toma Tabacu <toma.tabacu@imgtec.com> + + * gcc.target/mips/oddspreg-2.c (dg-options): Remove dg-skip-if for + -fno-fat-lto-objects and add the -ffat-lto-objects option, along with + an explanation for its purpose. + * gcc.target/mips/oddspreg-3.c (dg-options): Likewise. + * gcc.target/mips/oddspreg-6.c (dg-options): Likewise. + * gcc.target/mips/no-dsp-1.c: Add an explanation for the purpose of + -ffat-lto-objects. + * gcc.target/mips/pr54240.c: Likewise. + * gcc.target/mips/r10k-cache-barrier-14.c: Likewise. + * gcc.target/mips/soft-float-1.c: Likewise. + 2016-12-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> * gcc.dg/gimplefe-20.c: New test-case. diff --git a/gcc/testsuite/gcc.target/mips/no-dsp-1.c b/gcc/testsuite/gcc.target/mips/no-dsp-1.c index c4a7b0a..f03f239 100644 --- a/gcc/testsuite/gcc.target/mips/no-dsp-1.c +++ b/gcc/testsuite/gcc.target/mips/no-dsp-1.c @@ -1,4 +1,7 @@ /* { dg-options "-mno-dsp -ffat-lto-objects" } */ +/* This is testing for errors which can only happen in assembly generation. + dg-error does not guarantee assembly generation, so we need to do it + manually by using -ffat-lto-objects. */ void foo (void) diff --git a/gcc/testsuite/gcc.target/mips/oddspreg-2.c b/gcc/testsuite/gcc.target/mips/oddspreg-2.c index efeb0af..1a85737 100644 --- a/gcc/testsuite/gcc.target/mips/oddspreg-2.c +++ b/gcc/testsuite/gcc.target/mips/oddspreg-2.c @@ -1,6 +1,8 @@ /* Check that we disable odd-numbered single precision registers. */ -/* { dg-skip-if "needs asm output" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */ -/* { dg-options "-mabi=32 -mno-odd-spreg -mhard-float" } */ +/* { dg-options "-mabi=32 -mno-odd-spreg -mhard-float -ffat-lto-objects" } */ +/* This is testing for errors which can only happen in assembly generation. + dg-error does not guarantee assembly generation, so we need to do it + manually by using -ffat-lto-objects. */ NOMIPS16 void foo () diff --git a/gcc/testsuite/gcc.target/mips/oddspreg-3.c b/gcc/testsuite/gcc.target/mips/oddspreg-3.c index 8a0d85c..16a2f03 100644 --- a/gcc/testsuite/gcc.target/mips/oddspreg-3.c +++ b/gcc/testsuite/gcc.target/mips/oddspreg-3.c @@ -1,6 +1,8 @@ /* Check that we disable odd-numbered single precision registers. */ -/* { dg-skip-if "needs asm output" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */ -/* { dg-options "-mabi=32 -mfp32 -march=loongson3a -mhard-float" } */ +/* { dg-options "-mabi=32 -mfp32 -march=loongson3a -mhard-float -ffat-lto-objects" } */ +/* This is testing for errors which can only happen in assembly generation. + dg-error does not guarantee assembly generation, so we need to do it + manually by using -ffat-lto-objects. */ NOMIPS16 void foo () diff --git a/gcc/testsuite/gcc.target/mips/oddspreg-6.c b/gcc/testsuite/gcc.target/mips/oddspreg-6.c index eb376c6..53ac076 100644 --- a/gcc/testsuite/gcc.target/mips/oddspreg-6.c +++ b/gcc/testsuite/gcc.target/mips/oddspreg-6.c @@ -1,6 +1,8 @@ /* Check that we disable odd-numbered single precision registers for FPXX. */ -/* { dg-skip-if "needs asm output" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */ -/* { dg-options "-mabi=32 -mfpxx -mhard-float" } */ +/* { dg-options "-mabi=32 -mfpxx -mhard-float -ffat-lto-objects" } */ +/* This is testing for errors which can only happen in assembly generation. + dg-error does not guarantee assembly generation, so we need to do it + manually by using -ffat-lto-objects. */ NOMIPS16 void foo () diff --git a/gcc/testsuite/gcc.target/mips/pr54240.c b/gcc/testsuite/gcc.target/mips/pr54240.c index 2d55b82..d3976f6 100644 --- a/gcc/testsuite/gcc.target/mips/pr54240.c +++ b/gcc/testsuite/gcc.target/mips/pr54240.c @@ -1,6 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-fdump-tree-phiopt-details -ffat-lto-objects isa>=4" } */ /* { dg-skip-if "code quality test" { *-*-* } { "-O0" "-O1" } { "" } } */ +/* This is testing for errors which can only happen in assembly generation. + dg-error does not guarantee assembly generation, so we need to do it + manually by using -ffat-lto-objects. */ typedef struct s { int v; diff --git a/gcc/testsuite/gcc.target/mips/r10k-cache-barrier-14.c b/gcc/testsuite/gcc.target/mips/r10k-cache-barrier-14.c index 92c37f4..ecb4158 100644 --- a/gcc/testsuite/gcc.target/mips/r10k-cache-barrier-14.c +++ b/gcc/testsuite/gcc.target/mips/r10k-cache-barrier-14.c @@ -1,5 +1,8 @@ /* { dg-options "(-mips16) -mr10k-cache-barrier=store -ffat-lto-objects" } */ /* Test that indirect calls are protected. */ +/* This is testing for errors which can only happen in assembly generation. + dg-error does not guarantee assembly generation, so we need to do it + manually by using -ffat-lto-objects. */ MIPS16 void foo (void) { } /* { dg-message "sorry, unimplemented" } */ diff --git a/gcc/testsuite/gcc.target/mips/soft-float-1.c b/gcc/testsuite/gcc.target/mips/soft-float-1.c index 855ff8e..e6db3e2 100644 --- a/gcc/testsuite/gcc.target/mips/soft-float-1.c +++ b/gcc/testsuite/gcc.target/mips/soft-float-1.c @@ -1,4 +1,7 @@ /* { dg-options "-msoft-float -ffat-lto-objects" } */ +/* This is testing for errors which can only happen in assembly generation. + dg-error does not guarantee assembly generation, so we need to do it + manually by using -ffat-lto-objects. */ void foo (void) |