* config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
authorPaul Koning <ni1d@arrl.net>
Fri, 29 Oct 2010 20:38:04 +0000 (16:38 -0400)
committerPaul Koning <pkoning@gcc.gnu.org>
Fri, 29 Oct 2010 20:38:04 +0000 (16:38 -0400)
From-SVN: r166075

gcc/ChangeLog
gcc/config/pdp11/pdp11.md

index 3e44032..8f75b0d 100644 (file)
@@ -1,5 +1,9 @@
 2010-10-29  Paul Koning  <ni1d@arrl.net>
 
+       * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
+
+2010-10-29  Paul Koning  <ni1d@arrl.net>
+
        PR/41822
        * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
 
index 9cb4ef1..4c8cd8e 100644 (file)
         
 (define_expand "divhi3"
   [(set (subreg:HI (match_dup 1) 0)
-       (div:HI (match_operand:SI 1 "general_operand" "0")
+       (div:HI (match_operand:SI 1 "register_operand" "0")
                (match_operand:HI 2 "general_operand" "g")))
-   (set (match_operand:HI 0 "general_operand" "=r")
+   (set (match_operand:HI 0 "register_operand" "=r")
         (subreg:HI (match_dup 1) 0))]
   "TARGET_40_PLUS"
   "")
 
 (define_expand "modhi3"
   [(set (subreg:HI (match_dup 1) 2)
-       (mod:HI (match_operand:SI 1 "general_operand" "0")
+       (mod:HI (match_operand:SI 1 "register_operand" "0")
                (match_operand:HI 2 "general_operand" "g")))
-   (set (match_operand:HI 0 "general_operand" "=r")
+   (set (match_operand:HI 0 "register_operand" "=r")
         (subreg:HI (match_dup 1) 2))]
   "TARGET_40_PLUS"
   "")
 
 ;(define_expand "divmodhi4"
 ;  [(parallel [(set (subreg:HI (match_dup 1) 0)
-;                 (div:HI (match_operand:SI 1 "general_operand" "0")
+;                 (div:HI (match_operand:SI 1 "register_operand" "0")
 ;                         (match_operand:HI 2 "general_operand" "g")))
 ;              (set (subreg:HI (match_dup 1) 2)
 ;                 (mod:HI (match_dup 1)
 ;                         (match_dup 2)))])
-;   (set (match_operand:HI 3 "general_operand" "=r")
+;   (set (match_operand:HI 3 "register_operand" "=r")
 ;        (subreg:HI (match_dup 1) 2))
-;   (set (match_operand:HI 0 "general_operand" "=r")
+;   (set (match_operand:HI 0 "register_operand" "=r")
 ;        (subreg:HI (match_dup 1) 0))]
 ;  "TARGET_40_PLUS"
 ;  "")