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 864dc69..c93ea90 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 22c2823..5e377d6 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 43dc4ce..85e718e 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"