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 0258bfc43ad9f00c47b2393d9db8dfdee62af0b3..8e4e143edc4e98e499a07bceec4dc0c7bfabbe5f 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 d3ee59a37ade9c2921fb8895543a143b74d7bbdf..f861c72ccfc895405f0fa8afa4fe827bbad41a0d 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 d53d67afbe48ecb452b78aec02d259b8fe329806..8386c33770b42465c8163da7ceab2dd5753e0b4a 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);
+}