]> gcc.gnu.org Git - gcc.git/commitdiff
Added DLB/DSTB peepholes for HFmode.
authorRichard Kenner <kenner@gcc.gnu.org>
Mon, 11 Sep 1995 22:58:21 +0000 (18:58 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 11 Sep 1995 22:58:21 +0000 (18:58 -0400)
Corrected mnemonics for HImode DSTB peephole.

From-SVN: r10314

gcc/config/1750a/1750a.md

index 02e64699c0679d45f9546e475bd5e0ef631f2a4b..bcfc64eb4d475b3e22920038f43cbf315187ec2f 100644 (file)
     && INTVAL(operands[2]) <= 255"
   "dlb r%1,%2")
 
+(define_peephole 
+  [(set (match_operand:HF 0 "register_operand" "=r")
+        (mem:HF (plus:QI (match_operand:QI 1 "register_operand" "x")
+                         (match_operand:QI 2 "immediate_operand" "L"))))
+   ]
+  "REGNO(operands[0]) == 0 && REGNO(operands[1]) >= 12
+    && INTVAL(operands[2]) <= 255"
+  "dlb r%1,%2")
+
 ;; Store Base
 (define_peephole 
   [(set (mem:QI (plus:QI (match_operand:QI 0 "register_operand" "x")
    ]
   "REGNO(operands[2]) == 0 && REGNO(operands[0]) >= 12
     && INTVAL(operands[1]) <= 255"
-  "stb r%0,%1")
+  "dstb r%0,%1")
+
+(define_peephole 
+  [(set (mem:HF (plus:QI (match_operand:QI 0 "register_operand" "x")
+                         (match_operand:QI 1 "immediate_operand" "L")))
+       (match_operand:HF 2 "register_operand" "r"))
+   ]
+  "REGNO(operands[2]) == 0 && REGNO(operands[0]) >= 12
+    && INTVAL(operands[1]) <= 255"
+  "dstb r%0,%1")
 
 ;; Eliminate the redundant load in a store/load sequence
 (define_peephole 
This page took 0.066974 seconds and 5 git commands to generate.