public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH][Testsuite] Fix mips dsp testsuite mistakes
@ 2016-05-21  6:41 Paul Hua
  2016-05-21  7:05 ` Maciej W. Rozycki
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Hua @ 2016-05-21  6:41 UTC (permalink / raw)
  To: gcc-patches; +Cc: catherine_moore, matthew.fortune

Hi,

There are some mistakes in mips dsp testsuite.

This patch fixing it.

Ok to commit?


[mips] Fix mips dsp testsuite mistake.

        gcc/testsuite/gcc.target/mips/
        *mips32-dsp-run.c: Fix mistake.

Index: gcc/testsuite/ChangeLog
===================================================================
--- gcc/testsuite/ChangeLog     (revision 236553)
+++ gcc/testsuite/ChangeLog     (working copy)
@@ -1,3 +1,7 @@
+2016-05-21  Chenghua Xu  <paul.hua.gm@gmail.com>
+
+       * gcc.target/mips/mips32-dsp-run.c: Fix mistake.
+
 2016-05-20  Martin Sebor  <msebor@redhat.com>

        PR c/71115
Index: gcc/testsuite/gcc.target/mips/mips32-dsp-run.c
===================================================================
--- gcc/testsuite/gcc.target/mips/mips32-dsp-run.c      (revision 236553)
+++ gcc/testsuite/gcc.target/mips/mips32-dsp-run.c      (working copy)
@@ -394,7 +394,7 @@ NOMIPS16 void test_MIPS_DSP ()

   v2q15_a = (v2q15) {0x1234, 0x5678};
   i32_b = 1;
-  v2q15_s = (v2q15) {0x2468, 0x7fff};
+  v2q15_s = (v2q15) {0x2468, 0xacf0};
   v2q15_r = __builtin_mips_shll_s_ph (v2q15_a, i32_b);
   r = (int) v2q15_r;
   s = (int) v2q15_s;
@@ -409,7 +409,7 @@ NOMIPS16 void test_MIPS_DSP ()

   q31_a = 0x70000000;
   i32_b = 1;
-  q31_s = 0x7fffffff;
+  q31_s = 0xe0000000;
   q31_r = __builtin_mips_shll_s_w (q31_a, i32_b);
   if (q31_r != q31_s)
     abort ();
@@ -961,9 +961,9 @@ NOMIPS16 void test_MIPS_DSP ()
     abort ();
 #endif

-  i32_a = 0x1357a468;
+  i32_a = 0x13572468;
   __builtin_mips_wrdsp (i32_a, 63);
-  i32_s = 0x03572428;
+  i32_s = 0x13572468;
   i32_r = __builtin_mips_rddsp (63);
   if (i32_r != i32_s)
     abort ();



Regards,
Chenghua

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-05-27 12:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-21  6:41 [PATCH][Testsuite] Fix mips dsp testsuite mistakes Paul Hua
2016-05-21  7:05 ` Maciej W. Rozycki
2016-05-27 13:46   ` Paul Hua

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).