public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [testsuite, i386] Fix for PR50185
@ 2011-08-26 12:46 Kirill Yukhin
  2011-08-26 12:46 ` Kirill Yukhin
  0 siblings, 1 reply; 10+ messages in thread
From: Kirill Yukhin @ 2011-08-26 12:46 UTC (permalink / raw)
  To: gcc-patches List, Uros Bizjak, H.J. Lu

[-- Attachment #1: Type: text/plain, Size: 323 bytes --]

Hi,
Here is a fix for http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50182

testsuite/ChangeLog entry:

2011-08-26  Kirill Yukhin  <kirill.yukhin@intel.com>

	PR testsuite/50185
	* gcc.target/i386/avx2-vmovmskb-2.c: Rename to ...
	* gcc.target/i386/avx2-vpmovmskb-2.c: ... this. Update.

Test passes.
Ok for trunk?

Thanks, K

[-- Attachment #2: pr50185.gcc.patch --]
[-- Type: application/octet-stream, Size: 1640 bytes --]

diff --git a/gcc/testsuite/gcc.target/i386/avx2-vmovmskb-2.c b/gcc/testsuite/gcc.target/i386/avx2-vmovmskb-2.c
deleted file mode 100644
index 6637d0c..0000000
--- a/gcc/testsuite/gcc.target/i386/avx2-vmovmskb-2.c
+++ /dev/null
@@ -1,26 +0,0 @@
-/* { dg-do compile } */
-/* { dg-options "-mavx2 -O2" } */
-/* { dg-final { scan-assembler "vmovmskb" } } */
-
-#include "avx2-check.h"
-
-static void
-avx2_test (void)
-{
-  union256i_b s;
-  int res, res_ref;
-  int i, e = 0;
-
-  s.x = _mm256_set_epi8 (1, 2, 3, 4, 10, 20, 30, 90, -80, -40, -100,
-			 15, 98, 25, 98, 7, 1, 2, 3, 4, 10, 20, 30, 90,
-			 -80, -40, -100, -15, 98, 25, 98, 7);
-
-  res = _mm256_movemask_epi8 (s.x);
-
-  for (i = 0; i < 32; i++)
-    if (s.a[i] & (1 << 7))
-      res_ref = res_ref | (1 << i);
-
-  if (res != res_ref)
-    abort ();
-}
diff --git a/gcc/testsuite/gcc.target/i386/avx2-vpmovmskb-2.c b/gcc/testsuite/gcc.target/i386/avx2-vpmovmskb-2.c
new file mode 100644
index 0000000..838eadb
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/avx2-vpmovmskb-2.c
@@ -0,0 +1,26 @@
+/* { dg-do compile } */
+/* { dg-options "-mavx2 -O2 -dp" } */
+/* { dg-final { scan-assembler "avx2_pmovmskb" } } */
+
+#include "avx2-check.h"
+
+static void
+avx2_test (void)
+{
+  union256i_b s;
+  int res, res_ref;
+  int i, e = 0;
+
+  s.x = _mm256_set_epi8 (1, 2, 3, 4, 10, 20, 30, 90, -80, -40, -100,
+			 15, 98, 25, 98, 7, 1, 2, 3, 4, 10, 20, 30, 90,
+			 -80, -40, -100, -15, 98, 25, 98, 7);
+
+  res = _mm256_movemask_epi8 (s.x);
+
+  for (i = 0; i < 32; i++)
+    if (s.a[i] & (1 << 7))
+      res_ref = res_ref | (1 << i);
+
+  if (res != res_ref)
+    abort ();
+}

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

end of thread, other threads:[~2011-08-30  9:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-26 12:46 [testsuite, i386] Fix for PR50185 Kirill Yukhin
2011-08-26 12:46 ` Kirill Yukhin
2011-08-26 12:59   ` Uros Bizjak
2011-08-26 13:52   ` H.J. Lu
2011-08-26 14:20     ` Kirill Yukhin
2011-08-26 14:25       ` H.J. Lu
2011-08-30  8:25         ` Kirill Yukhin
2011-08-30  9:12           ` Uros Bizjak
2011-08-30 11:58             ` Kirill Yukhin
2011-08-26 14:45     ` Jakub Jelinek

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).