This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: odd things in md files
Richard Henderson wrote:
> On Sat, Sep 11, 1999 at 09:15:47PM -0700, Zack Weinberg wrote:
> > Both of them appear to be ill-formed since the modes of SET's first
> > and second operand don't match. Anyone know what was going on here?
>
> They are typos. The genfoo check for matching dest+src is
> relatively new.
For i370 I believe the appended patch fixes it. I'm not sure what to
do with the gmicro.
zw
1999-09-11 23:26 -0700 Zack Weinberg <zack@bitmover.com>
* i370.md (mulsi, divsi, modsi anonymous insns): Use DImode
operation.
===================================================================
Index: i370.md
--- i370.md 1999/09/08 06:23:46 1.6
+++ i370.md 1999/09/12 06:24:32
@@ -2453,7 +2453,7 @@ check_label_emit ();
;; XXX see comments in mulsi above.
(define_insn ""
[(set (match_operand:DI 0 "register_operand" "=d")
- (mult:SI (match_operand:DI 1 "general_operand" "%0")
+ (mult:DI (match_operand:DI 1 "general_operand" "%0")
;; XXX see above (match_operand:SI 2 "general_operand" "g")))]
(match_operand:SI 2 "general_operand" "di")))]
""
@@ -2617,7 +2617,7 @@ check_label_emit ();
(define_insn ""
[(set (match_operand:DI 0 "register_operand" "=d")
- (div:SI (match_operand:DI 1 "register_operand" "0")
+ (div:DI (match_operand:DI 1 "register_operand" "0")
(match_operand:SI 2 "general_operand" "dm")))]
""
"*
@@ -2784,7 +2784,7 @@ check_label_emit ();
(define_insn ""
[(set (match_operand:DI 0 "register_operand" "=d")
- (mod:SI (match_operand:DI 1 "register_operand" "0")
+ (mod:DI (match_operand:DI 1 "register_operand" "0")
(match_operand:SI 2 "general_operand" "dm")))]
""
"*