re PR target/91919 (arm-linux-eabi ICE with building kernel)
authorJakub Jelinek <jakub@redhat.com>
Fri, 27 Sep 2019 15:48:51 +0000 (17:48 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 27 Sep 2019 15:48:51 +0000 (17:48 +0200)
PR target/91919
* config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
of SImode MULT.

* gcc.c-torture/compile/pr91919.c: New.test

From-SVN: r276183

gcc/ChangeLog
gcc/config/arm/arm.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr91919.c [new file with mode: 0644]

index 0258bfc..8e4e143 100644 (file)
@@ -1,3 +1,9 @@
+2019-09-27  Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/91919
+       * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
+       of SImode MULT.
+
 2019-09-27  Richard Biener  <rguenther@suse.de>
 
        * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
index d3ee59a..f861c72 100644 (file)
   [(set (match_operand:SI 0 "s_register_operand" "=r,&r")
        (plus:SI
         (mult:SI
-         (SE:DI (match_operand:SI 4 "s_register_operand" "%r,r"))
-         (SE:DI (match_operand:SI 5 "s_register_operand" "r,r")))
+         (match_operand:SI 4 "s_register_operand" "%r,r")
+         (match_operand:SI 5 "s_register_operand" "r,r"))
         (match_operand:SI 1 "s_register_operand" "0,0")))
    (set (match_operand:SI 2 "s_register_operand" "=r,&r")
        (plus:SI
index d53d67a..8386c33 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-27  Jakub Jelinek  <jakub@redhat.com>
+
+       PR target/91919
+       * gcc.c-torture/compile/pr91919.c: New.test
+
 2019-09-27  Manfred Schwarb  <manfred99@gmx.ch>
 
        * gfortran.dg/associate_48.f90: Fix a dg directive.
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr91919.c b/gcc/testsuite/gcc.c-torture/compile/pr91919.c
new file mode 100644 (file)
index 0000000..9d0c95e
--- /dev/null
@@ -0,0 +1,7 @@
+/* PR target/91919 */
+
+unsigned int
+foo (unsigned int x, int y)
+{
+  return (x * 3355443200ULL + (y * 1801439851ULL >> 29) >> 25);
+}