]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: re PR target/64387 (ICE: in extract_insn, at recog.c:2327 (unrecognizable...
authorIlya Tocar <ilya.tocar@intel.com>
Tue, 17 Feb 2015 11:41:55 +0000 (11:41 +0000)
committerIlya Tocar <tocarip@gcc.gnu.org>
Tue, 17 Feb 2015 11:41:55 +0000 (14:41 +0300)
Backported from mainline
2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>

PR target/64387
* config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
(vec_unpacks_hi_v16sf): Ditto.

* gcc.target/i386/pr64387.c: New test.

From-SVN: r220756

gcc/ChangeLog
gcc/config/i386/sse.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr64387.c [new file with mode: 0644]

index 1b2bd46fe77f31f8dd5d710631360a814f146af3..88ed21d8f5165edae6ce601069147ee792ade6ff 100644 (file)
@@ -1,3 +1,12 @@
+2015-02-17  Ilya Tocar  <ilya.tocar@intel.com>
+
+       Backported from mainline
+       2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
+
+       PR target/64387
+       * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
+       (vec_unpacks_hi_v16sf): Ditto.
+
 2015-02-15  John David Anglin  <danglin@gcc.gnu.org>
 
        * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
index 5a62572b0cd78e490b94003c27a05e95b2d08e10..439ced0dde57f380f0cc02f09a4631faba46b9fb 100644 (file)
 (define_expand "vec_unpacks_hi_v8sf"
   [(set (match_dup 2)
        (vec_select:V4SF
-         (match_operand:V8SF 1 "nonimmediate_operand")
+         (match_operand:V8SF 1 "register_operand")
          (parallel [(const_int 4) (const_int 5)
                     (const_int 6) (const_int 7)])))
    (set (match_operand:V4DF 0 "register_operand")
 (define_expand "vec_unpacks_hi_v16sf"
   [(set (match_dup 2)
        (vec_select:V8SF
-         (match_operand:V16SF 1 "nonimmediate_operand")
+         (match_operand:V16SF 1 "register_operand")
          (parallel [(const_int 8) (const_int 9)
                     (const_int 10) (const_int 11)
                     (const_int 12) (const_int 13)
index f83330a406491240b18757ea2a50463b0aa03da6..ec65640a10990acb46d207f0b24444cc36bcdf58 100644 (file)
@@ -1,3 +1,11 @@
+2015-02-17  Ilya Tocar  <ilya.tocar@intel.com>
+
+       Backport from mainline
+       2015-01-14  Ilya Tocar  <ilya.tocar@intel.com>
+
+       PR target/64387
+       * gcc.target/i386/pr64387.c: New test.
+
 2015-02-13  Mikael Morin  <mikael@gcc.gnu.org>
 
        PR fortran/63744
diff --git a/gcc/testsuite/gcc.target/i386/pr64387.c b/gcc/testsuite/gcc.target/i386/pr64387.c
new file mode 100644 (file)
index 0000000..dd38142
--- /dev/null
@@ -0,0 +1,15 @@
+/* { dg-do compile } */
+/* { dg-options "-O2 -ftree-vectorize -ffloat-store -mavx512er" } */
+
+float x[256];
+
+double *
+foo (void)
+{
+  double *z = __builtin_malloc (sizeof (double) * 256);
+  int i;
+  for (i = 0; i < 256; ++i)
+    z[i] = x[i] + 1.0f;
+  foo ();
+  return 0;
+}