Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-7]: src/external/gpl3/gcc/dist/gcc/config/m68k Revert to revision...



details:   https://anonhg.NetBSD.org/src/rev/4c88d209a35a
branches:  netbsd-7
changeset: 800419:4c88d209a35a
user:      snj <snj%NetBSD.org@localhost>
date:      Mon Feb 19 19:22:22 2018 +0000

description:
Revert to revision 1.1.1.2, as requested by mlelstv in ticket #1533:
Undo the attempt to figure out mult clobbering.

diffstat:

 external/gpl3/gcc/dist/gcc/config/m68k/m68k.md |  49 +++++--------------------
 1 files changed, 10 insertions(+), 39 deletions(-)

diffs (75 lines):

diff -r 7c21acfdb991 -r 4c88d209a35a external/gpl3/gcc/dist/gcc/config/m68k/m68k.md
--- a/external/gpl3/gcc/dist/gcc/config/m68k/m68k.md    Fri Feb 16 16:39:48 2018 +0000
+++ b/external/gpl3/gcc/dist/gcc/config/m68k/m68k.md    Mon Feb 19 19:22:22 2018 +0000
@@ -3124,33 +3124,16 @@
 ;; We need a separate DEFINE_EXPAND for u?mulsidi3 to be able to use the
 ;; proper matching constraint.  This is because the matching is between
 ;; the high-numbered word of the DImode operand[0] and operand[1].
-;;
-;; Note: life_analysis() does not keep track of the individual halves of the
-;; DImode register.  To prevent spurious liveness before the u?mulsidi3 insn
-;; (which causes "uninitialized variable" warnings), we explicitly clobber
-;; the DImode register.
 (define_expand "umulsidi3"
-  [(set (match_operand:DI 0 "register_operand" "")
-       (mult:DI (zero_extend:DI (match_operand:SI 1 "register_operand" ""))
-                (zero_extend:DI (match_operand:SI 2 "register_operand" ""))))]
-  "TARGET_68020 && !TUNE_68060 && !TARGET_COLDFIRE"
-  "")
-
-(define_insn_and_split "*umulsidi3_split"
-  [(set (match_operand:DI 0 "register_operand" "")
-       (mult:DI (zero_extend:DI (match_operand:SI 1 "register_operand" ""))
-                (zero_extend:DI (match_operand:SI 2 "register_operand" ""))))]
-  "TARGET_68020 && !TUNE_68060 && !TARGET_COLDFIRE"
-  "#"
-  "TARGET_68020 && !TUNE_68060 && !TARGET_COLDFIRE"
-  [(clobber (match_dup 0))
-   (parallel
-    [(set (subreg:SI (match_dup 0) 4)
-         (mult:SI (match_dup 1) (match_dup 2)))
+  [(parallel
+    [(set (subreg:SI (match_operand:DI 0 "register_operand" "") 4)
+         (mult:SI (match_operand:SI 1 "register_operand" "")
+                  (match_operand:SI 2 "register_operand" "")))
      (set (subreg:SI (match_dup 0) 0)
          (truncate:SI (lshiftrt:DI (mult:DI (zero_extend:DI (match_dup 1))
                                             (zero_extend:DI (match_dup 2)))
                                    (const_int 32))))])]
+  "TARGET_68020 && !TUNE_68060 && !TARGET_COLDFIRE"
   "")
 
 (define_insn ""
@@ -3181,27 +3164,15 @@
   "mulu%.l %2,%3:%0")
 
 (define_expand "mulsidi3"
-  [(set (match_operand:DI 0 "register_operand" "")
-       (mult:DI (sign_extend:DI (match_operand:SI 1 "register_operand" ""))
-                (sign_extend:DI (match_operand:SI 2 "register_operand" ""))))]
-  "TARGET_68020 && !TUNE_68060 && !TARGET_COLDFIRE"
-  "")
-
-(define_insn_and_split "*mulsidi3_split"
-  [(set (match_operand:DI 0 "register_operand" "")
-       (mult:DI (sign_extend:DI (match_operand:SI 1 "register_operand" ""))
-                (sign_extend:DI (match_operand:SI 2 "register_operand" ""))))]
-  "TARGET_68020 && !TUNE_68060 && !TARGET_COLDFIRE"
-  "#"
-  "TARGET_68020 && !TUNE_68060 && !TARGET_COLDFIRE"
-  [(clobber (match_dup 0))
-   (parallel
-    [(set (subreg:SI (match_dup 0) 4)
-         (mult:SI (match_dup 1) (match_dup 2)))
+  [(parallel
+    [(set (subreg:SI (match_operand:DI 0 "register_operand" "") 4)
+         (mult:SI (match_operand:SI 1 "register_operand" "")
+                  (match_operand:SI 2 "register_operand" "")))
      (set (subreg:SI (match_dup 0) 0)
          (truncate:SI (lshiftrt:DI (mult:DI (sign_extend:DI (match_dup 1))
                                             (sign_extend:DI (match_dup 2)))
                                    (const_int 32))))])]
+  "TARGET_68020 && !TUNE_68060 && !TARGET_COLDFIRE"
   "")
 
 (define_insn ""



Home | Main Index | Thread Index | Old Index