extend-1.c (TEST_CHAR): Use signed char.
authorRichard Sandiford <rdsandiford@googlemail.com>
Mon, 30 Jan 2012 19:21:50 +0000 (19:21 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Mon, 30 Jan 2012 19:21:50 +0000 (19:21 +0000)
gcc/testsuite/
* gcc.target/mips/extend-1.c (TEST_CHAR): Use signed char.
(TEST_SHORT): Reformat in the same way.
* gcc.target/mips/octeon-exts-6.c (TEST_CHAR): Use signed char.
(TEST_SHORT): Reformat in the same way.
* gcc.target/mips/octeon2-lx-1.c (TEST): Make sign explicit.
* gcc.target/mips/pr37362.c: Skip for mips-sde-elf.
* gcc.target/mips/mmcount-ra-address-1.c (bazl): Add NOMIPS16.
* gcc.target/mips/mmcount-ra-address-2.c (bar): Likewise.
* gcc.target/mips/mmcount-ra-address-3.c (bar): Likewise.

From-SVN: r183737

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/extend-1.c
gcc/testsuite/gcc.target/mips/mmcount-ra-address-1.c
gcc/testsuite/gcc.target/mips/mmcount-ra-address-2.c
gcc/testsuite/gcc.target/mips/mmcount-ra-address-3.c
gcc/testsuite/gcc.target/mips/octeon-exts-6.c
gcc/testsuite/gcc.target/mips/octeon2-lx-1.c
gcc/testsuite/gcc.target/mips/pr37362.c

index 00cae86..3c21a5c 100644 (file)
@@ -1,3 +1,15 @@
+2012-01-30  Richard Sandiford  <rdsandiford@googlemail.com>
+
+       * gcc.target/mips/extend-1.c (TEST_CHAR): Use signed char.
+       (TEST_SHORT): Reformat in the same way.
+       * gcc.target/mips/octeon-exts-6.c (TEST_CHAR): Use signed char.
+       (TEST_SHORT): Reformat in the same way.
+       * gcc.target/mips/octeon2-lx-1.c (TEST): Make sign explicit.
+       * gcc.target/mips/pr37362.c: Skip for mips-sde-elf.
+       * gcc.target/mips/mmcount-ra-address-1.c (bazl): Add NOMIPS16.
+       * gcc.target/mips/mmcount-ra-address-2.c (bar): Likewise.
+       * gcc.target/mips/mmcount-ra-address-3.c (bar): Likewise.
+
 2012-01-30  Bin Cheng  <bin.cheng@arm.com>
 
        PR target/51835
index 5e93890..94d199f 100644 (file)
@@ -3,10 +3,18 @@
 /* { dg-final { scan-assembler-times "\tdsra\t" 5 } } */
 /* { dg-final { scan-assembler-not "\tsll\t" } } */
 
-#define TEST_CHAR(T, N)        \
-  NOMIPS16 T f##N (long long d, T *a, T *r) { T b = (char) d;  *r = b + *a; }
-#define TEST_SHORT(T, N) \
-  NOMIPS16 T g##N (long long d, T *a, T *r) { T b = (short) d; *r = b + *a; }
+#define TEST_CHAR(T, N)                                \
+  NOMIPS16 T                                   \
+  f##N (long long d, T *a, T *r)               \
+  {                                            \
+    T b = (signed char) d; *r = b + *a;                \
+  }
+#define TEST_SHORT(T, N)                       \
+  NOMIPS16 T                                   \
+  g##N (long long d, T *a, T *r)               \
+  {                                            \
+    T b = (short) d; *r = b + *a;              \
+  }
 #define TEST(T, N) TEST_CHAR (T, N) TEST_SHORT (T, N)
 
 TEST (int, 1);
index cf5b044..8514ed8 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -pg -mmcount-ra-address -mabi=64" } */
 /* { dg-final { scan-assembler "\tmove\t\\\$12,\\\$0" } } */
-int bazl(int i)
+NOMIPS16 int bazl(int i)
 {
   return i + 2;
 }
index bef9dd9..bb59a18 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-options "-O2 -pg -mmcount-ra-address -mabi=64" } */
 /* { dg-final { scan-assembler "\tdla\t\\\$12,8\\(\\\$sp\\)" } } */
 int foo (int);
-int bar (int i)
+NOMIPS16 int bar (int i)
 {
   return foo (i) + 2;
 }
index 59007e6..8c94c83 100644 (file)
@@ -2,7 +2,7 @@
 /* { dg-options "-O2 -pg -mmcount-ra-address -mabi=64" } */
 /* { dg-final { scan-assembler "\tdla\t\\\$12,200008\\(\\\$sp\\)" } } */
 int foo (int *);
-int bar(int i)
+NOMIPS16 int bar(int i)
 {
   int big[50000];
   return foo (big) + 2;
index d04e273..d37ed95 100644 (file)
@@ -3,10 +3,18 @@
 /* { dg-final { scan-assembler-not "\t(dsll|dsra)\t" } } */
 /* { dg-final { scan-assembler-not "\tsll\t" } } */
 
-#define TEST_CHAR(T, N)        \
-  NOMIPS16 T f##N (long long d, T *a, T *r) { T b = (char) d;  *r = b + *a; }
-#define TEST_SHORT(T, N) \
-  NOMIPS16 T g##N (long long d, T *a, T *r) { T b = (short) d; *r = b + *a; }
+#define TEST_CHAR(T, N)                                \
+  NOMIPS16 T                                   \
+  f##N (long long d, T *a, T *r)               \
+  {                                            \
+    T b = (signed char) d; *r = b + *a;                \
+  }
+#define TEST_SHORT(T, N)                       \
+  NOMIPS16 T                                   \
+  g##N (long long d, T *a, T *r)               \
+  {                                            \
+    T b = (short) d; *r = b + *a;              \
+  }
 #define TEST(T, N) TEST_CHAR (T, N) TEST_SHORT (T, N)
 
 TEST (int, 1);
index 2d8b0c6..34d8af8 100644 (file)
@@ -2,9 +2,9 @@
 /* { dg-options "-march=octeon2 -O -mgp64" } */
 
 #define TEST(N, R, T) \
- T fll##N (T j, R *b, long long i) { return j + b[i]; } \
+ T fll##N (T j, signed R *b, long long i) { return j + b[i]; } \
  T gll##N (T j, unsigned R *b, long long i) { return j + b[i]; } \
- T fi##N (T j, R *b, int i) { return j + b[i]; } \
+ T fi##N (T j, signed R *b, int i) { return j + b[i]; } \
  T gi##N (T j, unsigned R *b, int i) { return j + b[i]; } \
 
 TEST (1, char, int)
index 14e3a75..a378366 100644 (file)
@@ -1,4 +1,5 @@
-/* { dg-do compile } */
+/* mips*-sde-elf doesn't have 128-bit long doubles.  */
+/* { dg-do compile { target { ! mips*-sde-elf } } } */
 /* { dg-options "-march=mips64r2 -mabi=n32" } */
 
 typedef float TFtype __attribute__((mode(TF)));