diff options
author | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-27 16:31:46 +0000 |
---|---|---|
committer | rsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-08-27 16:31:46 +0000 |
commit | 741886e35838dfea27450df5eafd06104ab9e493 (patch) | |
tree | 01e7f993e66bc99dab744420a3e35e9c75c684df | |
parent | c61209b3bee855bc3afb1e525afeb85149c0dde2 (diff) | |
download | gcc-741886e35838dfea27450df5eafd06104ab9e493.tar.gz |
gcc/testsuite/
* gcc.target/mips/ext_ins.c, gcc.target/mips/octeon-pop-2.c,
gcc.target/mips/pr54240.c, gcc.target/mips/stack-1.c,
gcc.target/mips/unaligned-1.c: Add NOMIPS16.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190720 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/ext_ins.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/octeon-pop-2.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/pr54240.c | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/stack-1.c | 3 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/unaligned-1.c | 8 |
6 files changed, 17 insertions, 10 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index bdd48330006..1306ba61dd8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,11 @@ 2012-08-27 Richard Sandiford <rdsandiford@googlemail.com> + * gcc.target/mips/ext_ins.c, gcc.target/mips/octeon-pop-2.c, + gcc.target/mips/pr54240.c, gcc.target/mips/stack-1.c, + gcc.target/mips/unaligned-1.c: Add NOMIPS16. + +2012-08-27 Richard Sandiford <rdsandiford@googlemail.com> + * gcc.target/mips/20020620-1.c, gcc.target/mips/atomic-memory-2.c, gcc.target/mips/branch-2.c, gcc.target/mips/branch-3.c, gcc.target/mips/clear-cache-1.c, gcc.target/mips/const-anchor-1.c, diff --git a/gcc/testsuite/gcc.target/mips/ext_ins.c b/gcc/testsuite/gcc.target/mips/ext_ins.c index 6f96961b40c..f0169bc4114 100644 --- a/gcc/testsuite/gcc.target/mips/ext_ins.c +++ b/gcc/testsuite/gcc.target/mips/ext_ins.c @@ -13,12 +13,12 @@ struct A void func (struct A); -unsigned int f1 (struct A a) +NOMIPS16 unsigned int f1 (struct A a) { return a.j; } -void f2 (int i) +NOMIPS16 void f2 (int i) { struct A c; c.j = i; diff --git a/gcc/testsuite/gcc.target/mips/octeon-pop-2.c b/gcc/testsuite/gcc.target/mips/octeon-pop-2.c index 63a73b34836..d6d2a7afb3f 100644 --- a/gcc/testsuite/gcc.target/mips/octeon-pop-2.c +++ b/gcc/testsuite/gcc.target/mips/octeon-pop-2.c @@ -4,7 +4,7 @@ /* The pop instruction does not depend on the word value to be sign extended. */ /* { dg-final { scan-assembler-not "sll\t" } } */ -long long f(long long i) +NOMIPS16 long long f(long long i) { return __builtin_popcount (i); } diff --git a/gcc/testsuite/gcc.target/mips/pr54240.c b/gcc/testsuite/gcc.target/mips/pr54240.c index 65088b52ccd..c2674b1fe4b 100644 --- a/gcc/testsuite/gcc.target/mips/pr54240.c +++ b/gcc/testsuite/gcc.target/mips/pr54240.c @@ -9,8 +9,8 @@ typedef struct s { struct s *r; } S; - -int foo(S *s) +/* Test requires conditional moves. */ +NOMIPS16 int foo(S *s) { S *this; S *next; diff --git a/gcc/testsuite/gcc.target/mips/stack-1.c b/gcc/testsuite/gcc.target/mips/stack-1.c index 67117b7bef5..a28e4bf2075 100644 --- a/gcc/testsuite/gcc.target/mips/stack-1.c +++ b/gcc/testsuite/gcc.target/mips/stack-1.c @@ -2,7 +2,8 @@ /* { dg-final { scan-assembler "\tlw\t" } } */ /* { dg-final { scan-assembler-not "\td?addiu\t(\\\$sp,)?\\\$sp,\[1-9\].*\tlw\t" } } */ -int foo (int y) +/* Avoid use of SAVE and RESTORE. */ +NOMIPS16 int foo (int y) { volatile int a = y; volatile int *volatile b = &a; diff --git a/gcc/testsuite/gcc.target/mips/unaligned-1.c b/gcc/testsuite/gcc.target/mips/unaligned-1.c index 375c8c2d135..938f52d21f2 100644 --- a/gcc/testsuite/gcc.target/mips/unaligned-1.c +++ b/gcc/testsuite/gcc.target/mips/unaligned-1.c @@ -20,25 +20,25 @@ struct s long long l; } __attribute__ ((packed)) s __attribute__((aligned(1) )); -void +NOMIPS16 void sd (long long l) { s.l = l; } -long long +NOMIPS16 long long ld () { return s.l; } -void +NOMIPS16 void sw (int i) { s.i = i; } -int +NOMIPS16 int lw () { return s.i; |