Commit 5b51970b by Richard Sandiford Committed by Richard Sandiford

ext_ins.c, [...]: Add NOMIPS16.

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.

From-SVN: r190720
parent b6289055
2012-08-27 Richard Sandiford <rdsandiford@googlemail.com> 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/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/branch-2.c, gcc.target/mips/branch-3.c,
gcc.target/mips/clear-cache-1.c, gcc.target/mips/const-anchor-1.c, gcc.target/mips/clear-cache-1.c, gcc.target/mips/const-anchor-1.c,
......
...@@ -13,12 +13,12 @@ struct A ...@@ -13,12 +13,12 @@ struct A
void func (struct A); void func (struct A);
unsigned int f1 (struct A a) NOMIPS16 unsigned int f1 (struct A a)
{ {
return a.j; return a.j;
} }
void f2 (int i) NOMIPS16 void f2 (int i)
{ {
struct A c; struct A c;
c.j = i; c.j = i;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
/* The pop instruction does not depend on the word value to be sign extended. */ /* The pop instruction does not depend on the word value to be sign extended. */
/* { dg-final { scan-assembler-not "sll\t" } } */ /* { dg-final { scan-assembler-not "sll\t" } } */
long long f(long long i) NOMIPS16 long long f(long long i)
{ {
return __builtin_popcount (i); return __builtin_popcount (i);
} }
......
...@@ -9,8 +9,8 @@ typedef struct s { ...@@ -9,8 +9,8 @@ typedef struct s {
struct s *r; struct s *r;
} S; } S;
/* Test requires conditional moves. */
int foo(S *s) NOMIPS16 int foo(S *s)
{ {
S *this; S *this;
S *next; S *next;
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
/* { dg-final { scan-assembler "\tlw\t" } } */ /* { dg-final { scan-assembler "\tlw\t" } } */
/* { dg-final { scan-assembler-not "\td?addiu\t(\\\$sp,)?\\\$sp,\[1-9\].*\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 a = y;
volatile int *volatile b = &a; volatile int *volatile b = &a;
......
...@@ -20,25 +20,25 @@ struct s ...@@ -20,25 +20,25 @@ struct s
long long l; long long l;
} __attribute__ ((packed)) s __attribute__((aligned(1) )); } __attribute__ ((packed)) s __attribute__((aligned(1) ));
void NOMIPS16 void
sd (long long l) sd (long long l)
{ {
s.l = l; s.l = l;
} }
long long NOMIPS16 long long
ld () ld ()
{ {
return s.l; return s.l;
} }
void NOMIPS16 void
sw (int i) sw (int i)
{ {
s.i = i; s.i = i;
} }
int NOMIPS16 int
lw () lw ()
{ {
return s.i; return s.i;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment