2016-04-05  Uros Bizjak  <ubiz...@gmail.com>

    PR target/70510
    * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.

testsuite/ChangeLog:

2016-04-05  Uros Bizjak  <ubiz...@gmail.com>

    PR target/70510
    * gcc.target/i386/pr70510.c: New test.

Bootstrapped and regression tested on x86_64-linux-gnu {,-m32}.
Committed to mainline, will be backported to release branches.

Uros.
Index: config/i386/sse.md
===================================================================
--- config/i386/sse.md  (revision 234749)
+++ config/i386/sse.md  (working copy)
@@ -705,7 +705,8 @@
 
 ;; Pointer size override for scalar modes (Intel asm dialect)
 (define_mode_attr iptr
-  [(V32QI "b") (V16HI "w") (V8SI "k") (V4DI "q")
+  [(V64QI "b") (V32HI "w") (V16SI "k") (V8DI "q")
+   (V32QI "b") (V16HI "w") (V8SI "k") (V4DI "q")
    (V16QI "b") (V8HI "w") (V4SI "k") (V2DI "q")
    (V8SF "k") (V4DF "q")
    (V4SF "k") (V2DF "q")
Index: testsuite/gcc.target/i386/pr70510.c
===================================================================
--- testsuite/gcc.target/i386/pr70510.c (nonexistent)
+++ testsuite/gcc.target/i386/pr70510.c (working copy)
@@ -0,0 +1,14 @@
+/* PR target/70510 */
+/* { dg-do assemble { target avx512bw } } */
+/* { dg-require-effective-target masm_intel } */
+/* { dg-options "-Og -mavx512bw -masm=intel" } */
+
+typedef int V __attribute__ ((vector_size (64)));
+
+V
+foo (V u, V v)
+{
+  v[0] |= v[u[0]];
+  u /= ((V)v)[0];
+  return u;
+}

Reply via email to