(cmpdi): Change patterns to allocate scratch register at RTL generation time.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 11 Sep 1995 20:54:24 +0000 (16:54 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 11 Sep 1995 20:54:24 +0000 (16:54 -0400)
(tstdi): Likewise.

From-SVN: r10307

gcc/config/m68k/m68k.md

index 2b2ed04ac2c910d8806f0ae6370f3a10f47c334e..4664f201e5b92b709a3efc4bdade3a565a914028 100644 (file)
   [(parallel
     [(set (cc0)
          (match_operand:DI 0 "nonimmediate_operand" "d"))
-   (clobber (scratch:DI))])]
+     (clobber (match_dup 1))])]
   ""
-  "")
+  "operands[1] = gen_reg_rtx (DImode);")
 
 (define_insn ""
   [(set (cc0)
        (match_operand:DI 1 "nonimmediate_operand" "0"))
-   (clobber (match_scratch:DI 0 "=d"))]
+   (clobber (match_operand:DI 0 "register_operand" "=d"))]
   ""
   "*
 {
     [(set (cc0)
          (compare (match_operand:DI 0 "nonimmediate_operand" "")
                   (match_operand:DI 1 "general_operand" "")))
-     (clobber (scratch:DI))])]
+     (clobber (match_dup 2))])]
   ""
-  "")
+  "operands[2] = gen_reg_rtx (DImode);")
 
 (define_insn ""
   [(set (cc0)
        (compare (match_operand:DI 1 "nonimmediate_operand" "0,d")
                 (match_operand:DI 2 "general_operand" "d,0")))
-   (clobber (match_scratch:DI 0 "=d,d"))]
+   (clobber (match_operand:DI 0 "register_operand" "=d,d"))]
   ""
   "*
 {