re PR target/91931 (ICE in decompose, at rtl.h:2277)
authorJakub Jelinek <jakub@gcc.gnu.org>
Mon, 30 Sep 2019 07:26:58 +0000 (09:26 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 30 Sep 2019 07:26:58 +0000 (09:26 +0200)
PR target/91931
* config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
gen_int_mode instead of GEN_INT.

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

From-SVN: r276294

gcc/ChangeLog
gcc/config/i386/i386-expand.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr91931.c [new file with mode: 0644]

index 864dc694e54d176b7096b3fd1a7c6844ad954528..c93ea904c08710c73b4e57d3c6fb4c170ddd52fa 100644 (file)
@@ -1,6 +1,12 @@
+2019-09-30  Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/91931
+       * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
+       gen_int_mode instead of GEN_INT.
+
 2019-09-29  Iain Sandoe  <iain@sandoe.co.uk>
 
-       * config/darwin.c (gen_macho_low):Amend to include the mode
+       * config/darwin.c (gen_macho_low): Amend to include the mode
        argument.
        (machopic_indirect_data_reference): Amend gen_macho_low call
        to include mode argument
index 22c2823c549f7b0f5644c80536b0576228b09d11..5e377d6dc5f0e7e79290521ea418ff79c77083cf 100644 (file)
@@ -1694,7 +1694,7 @@ ix86_expand_adjust_ufix_to_sfix_si (rtx val, rtx *xorp)
                                 OPTAB_DIRECT);
   else
     {
-      rtx two31 = GEN_INT (HOST_WIDE_INT_1U << 31);
+      rtx two31 = gen_int_mode (HOST_WIDE_INT_1U << 31, SImode);
       two31 = ix86_build_const_vector (intmode, 1, two31);
       *xorp = expand_simple_binop (intmode, AND,
                                   gen_lowpart (intmode, tmp[0]),
index 43dc4ce65ea23217c63cf4e20f7e4af6cd2deafb..85e718ebe66e6dc8f3060951306d8326138a9da5 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-30  Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/91931
+       * gcc.target/i386/pr91931.c: New test.
+
 2019-09-29  Steven G. Kargl  <kargl@gcc.gnu.org>
 
        PR fortran/91641
diff --git a/gcc/testsuite/gcc.target/i386/pr91931.c b/gcc/testsuite/gcc.target/i386/pr91931.c
new file mode 100644 (file)
index 0000000..f39b22e
--- /dev/null
@@ -0,0 +1,5 @@
+/* PR target/91931 */
+/* { dg-do compile } */
+/* { dg-options "-O1 -ftree-loop-vectorize -mavx -mno-avx2" } */
+
+#include "../../gcc.dg/vect/pr32216.c"