OSDN Git Service

2003-05-23 Eric Christopher <echristo@redhat.com>
authorechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 May 2003 22:19:16 +0000 (22:19 +0000)
committerechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 23 May 2003 22:19:16 +0000 (22:19 +0000)
        * config/mips/mips.md (clzsi, clzdi): New patterns.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67142 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/mips.md

index d433452..f06c767 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-23  Eric Christopher  <echristo@redhat.com>
+
+       * config/mips/mips.md (clzsi, clzdi): New patterns.
+
 2003-05-23  Geoffrey Keating  <geoffk@apple.com>
 
        * gcc.c (default_compilers): Use -o to specify preprocessor's output
@@ -7,7 +11,7 @@
 2003-05-23  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        * fixinc/Makefile.in: Correct description.
-       * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c, 
+       * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
        fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
        fixinc/genfixes: Replace "GNU CC" with "GCC".
 
index c91d27f..7fff5a3 100644 (file)
@@ -3594,6 +3594,31 @@ move\\t%0,%z4\\n\\
    (set_attr "length"  "24")])
 
 \f
+
+;;
+;;  ...................
+;;
+;;  Count leading zeroes.
+;;
+;;  ...................
+;;
+
+(define_insn "clzsi2"
+  [(set (match_operand:SI 0 "register_operand" "=d")
+       (clz:SI (match_operand:SI 1 "register_operand" "d")))]
+  "ISA_HAS_CLZ_CLO"
+  "clz\\t%0,%1"
+  [(set_attr "type" "arith")
+   (set_attr "mode" "SI")])
+
+(define_insn "clzdi2"
+  [(set (match_operand:DI 0 "register_operand" "=d")
+       (clz:DI (match_operand:DI 1 "register_operand" "d")))]
+  "ISA_HAS_DCLZ_DCLO"
+  "dclz\\t%0,%1"
+  [(set_attr "type" "arith")
+   (set_attr "mode" "DI")])
+
 ;;
 ;;  ....................
 ;;