]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/config/rs6000/rs6000.md
rs6000-protos.h (expand_block_clear): Declare.
[thirdparty/gcc.git] / gcc / config / rs6000 / rs6000.md
index dc8ce50b137554e60d9714506cf7e415ca1e76f8..aef44d53e4a8553aed731829b9936ea9cd7b3f49 100644 (file)
   "{stsi|stswi} %2,%1,%O0"
   [(set_attr "type" "store")])
 \f
+(define_expand "clrmemsi"
+  [(parallel [(set (match_operand:BLK 0 "" "")
+                  (const_int 0))
+             (use (match_operand:SI 1 "" ""))
+             (use (match_operand:SI 2 "" ""))])]
+  ""
+  "
+{
+  if (expand_block_clear (operands))
+    DONE;
+  else
+    FAIL;
+}")
+
 ;; String/block move insn.
 ;; Argument 0 is the destination
 ;; Argument 1 is the source