This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[MIPS, committed] Add missing NOMIPS16s to gcc.target/mips


A NOMIPS16 janitorial.

Tested on mipsisa64-elf, mips64-elf and mips64-linux-gnu.  Applied.

Richard


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.

Index: gcc/testsuite/gcc.target/mips/ext_ins.c
===================================================================
--- gcc/testsuite/gcc.target/mips/ext_ins.c	2012-08-26 23:45:07.378888432 +0100
+++ gcc/testsuite/gcc.target/mips/ext_ins.c	2012-08-26 23:45:08.809888391 +0100
@@ -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;
Index: gcc/testsuite/gcc.target/mips/octeon-pop-2.c
===================================================================
--- gcc/testsuite/gcc.target/mips/octeon-pop-2.c	2012-08-26 23:29:27.142915768 +0100
+++ gcc/testsuite/gcc.target/mips/octeon-pop-2.c	2012-08-26 23:45:08.810888391 +0100
@@ -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);
 }
Index: gcc/testsuite/gcc.target/mips/pr54240.c
===================================================================
--- gcc/testsuite/gcc.target/mips/pr54240.c	2012-08-26 23:29:27.000000000 +0100
+++ gcc/testsuite/gcc.target/mips/pr54240.c	2012-08-26 23:45:31.562887727 +0100
@@ -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;
Index: gcc/testsuite/gcc.target/mips/stack-1.c
===================================================================
--- gcc/testsuite/gcc.target/mips/stack-1.c	2012-08-26 23:45:07.000000000 +0100
+++ gcc/testsuite/gcc.target/mips/stack-1.c	2012-08-26 23:59:47.903862830 +0100
@@ -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;
Index: gcc/testsuite/gcc.target/mips/unaligned-1.c
===================================================================
--- gcc/testsuite/gcc.target/mips/unaligned-1.c	2012-08-26 23:45:07.386888432 +0100
+++ gcc/testsuite/gcc.target/mips/unaligned-1.c	2012-08-26 23:45:08.810888391 +0100
@@ -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;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]